handler

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 23 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITokenHandler

type APITokenHandler struct {
	// contains filtered or unexported fields
}

func NewAPITokenHandler

func NewAPITokenHandler(service *apiTokenSvc.Service) *APITokenHandler

func (*APITokenHandler) Register

func (h *APITokenHandler) Register(r *gin.RouterGroup)

type AuthHandler

type AuthHandler struct {
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(service *authSvc.Service) *AuthHandler

func (*AuthHandler) Register

func (h *AuthHandler) Register(r *gin.RouterGroup)

type HealthHandler

type HealthHandler struct{}

func NewHealthHandler

func NewHealthHandler() *HealthHandler

func (*HealthHandler) Register

func (h *HealthHandler) Register(r *gin.RouterGroup)

type InstanceHandler

type InstanceHandler struct {
	// contains filtered or unexported fields
}

func NewInstanceHandler

func NewInstanceHandler(service *instanceSvc.Service, log *zap.Logger) *InstanceHandler

func NewInstanceHandlerWithSession

func NewInstanceHandlerWithSession(service *instanceSvc.Service, log *zap.Logger, sessionManager SessionManager) *InstanceHandler

func (*InstanceHandler) Register

func (h *InstanceHandler) Register(r *gin.RouterGroup)

type MediaHandler

type MediaHandler struct {
	// contains filtered or unexported fields
}

MediaHandler lida com requisições de mídia

func NewMediaHandler

func NewMediaHandler(storage *media.Storage) *MediaHandler

NewMediaHandler cria um novo handler de mídia

func (*MediaHandler) GetMedia

func (h *MediaHandler) GetMedia(c *gin.Context)

GetMedia serve uma mídia pelo ID GET /api/media/:instanceId/:mediaId

type MessageHandler

type MessageHandler struct {
	// contains filtered or unexported fields
}

func NewMessageHandler

func NewMessageHandler(service *messageSvc.Service) *MessageHandler

func (*MessageHandler) Register

func (h *MessageHandler) Register(r *gin.RouterGroup)

type SessionManager

type SessionManager interface {
	GetClient(instanceID string) (*whatsmeow.Client, error)
}

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

UserHandler expõe endpoints de gerenciamento de usuários.

func NewUserHandler

func NewUserHandler(service *userSvc.Service) *UserHandler

NewUserHandler cria um novo handler de usuários.

func (*UserHandler) Register

func (h *UserHandler) Register(r *gin.RouterGroup)

Register registra os endpoints protegidos.

type WhatsAppHandler

type WhatsAppHandler struct {
	// contains filtered or unexported fields
}

func NewWhatsAppHandler

func NewWhatsAppHandler(sessionManager WhatsAppSessionManager) *WhatsAppHandler

func (*WhatsAppHandler) Register

func (h *WhatsAppHandler) Register(r *gin.RouterGroup)

type WhatsAppSessionManager

type WhatsAppSessionManager interface {
	GetClient(instanceID string) (*whatsmeow.Client, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL