Documentation ¶
Index ¶
- type Service
- func (s *Service) AddWebhook(_ context.Context, webhook ports.Webhook) (string, error)
- func (s *Service) AddWebhookWithID(_ context.Context, webhook ports.Webhook) (string, error)
- func (s *Service) Close()
- func (s *Service) ListWebhooks(_ context.Context, event ports.WebhookEvent) ([]ports.WebhookInfo, error)
- func (s *Service) PublisAccountDepositEvent(accountName string, accountBalance map[string]ports.Balance, ...) error
- func (s *Service) PublisAccountLowBalanceEvent(accountName string, accountBalance map[string]ports.Balance, ...) error
- func (s *Service) PublisAccountWithdrawEvent(accountName string, accountBalance map[string]ports.Balance, ...) error
- func (s *Service) PublishTradeSettledEvent(accountName string, accountBalance map[string]ports.Balance, ...) error
- func (s *Service) RemoveWebhook(_ context.Context, id string) error
- func (s *Service) SecurePubSub() ports.SecurePubSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(pubsub ports.SecurePubSub) *Service
func (*Service) AddWebhook ¶
func (*Service) AddWebhookWithID ¶
func (*Service) ListWebhooks ¶
func (s *Service) ListWebhooks( _ context.Context, event ports.WebhookEvent, ) ([]ports.WebhookInfo, error)
func (*Service) PublisAccountDepositEvent ¶
func (*Service) PublisAccountLowBalanceEvent ¶
func (*Service) PublisAccountWithdrawEvent ¶
func (*Service) PublishTradeSettledEvent ¶
func (*Service) SecurePubSub ¶
func (s *Service) SecurePubSub() ports.SecurePubSub
Click to show internal directories.
Click to hide internal directories.