Documentation
¶
Index ¶
- Variables
- type EnqueueInput
- type OutboxWorker
- type SendInput
- type Service
- func (s *Service) Enqueue(ctx context.Context, input EnqueueInput) (model.Message, error)
- func (s *Service) List(ctx context.Context, instanceID string) ([]model.Message, error)
- func (s *Service) ResolveJID(ctx context.Context, client *whatsmeow.Client, phone string) (types.JID, error)
- func (s *Service) Send(ctx context.Context, input SendInput) (model.Message, error)
- type SessionManager
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EnqueueInput ¶
type OutboxWorker ¶ added in v1.0.10
type OutboxWorker struct {
// contains filtered or unexported fields
}
func NewOutboxWorker ¶ added in v1.0.10
func (*OutboxWorker) Start ¶ added in v1.0.10
func (w *OutboxWorker) Start(ctx context.Context)
func (*OutboxWorker) Stop ¶ added in v1.0.10
func (w *OutboxWorker) Stop()
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo storage.MessageRepository, q queue.Queue, cfg config.WhatsAppConfig, log *zap.Logger) *Service
func NewServiceWithSession ¶
func NewServiceWithSession(repo storage.MessageRepository, sessionMgr SessionManager, instanceRepo storage.InstanceRepository, contactRepo storage.ContactRepository, q queue.Queue, cfg config.WhatsAppConfig, log *zap.Logger) *Service
func (*Service) ResolveJID ¶ added in v1.0.11
type SessionManager ¶
Click to show internal directories.
Click to hide internal directories.