Documentation
¶
Index ¶
- type Input
- type Service
- func (s *Service) CheckCapacity(snapshot payments.CapacitySnapshot) error
- func (s *Service) CheckConnector(status gmessages.Status) error
- func (s *Service) CheckWebhookExhaustion() error
- func (s *Service) ConfigureWebhook(url, secret string)
- func (s *Service) NotificationsEnabled() bool
- func (s *Service) Open(input Input) (string, bool, error)
- func (s *Service) OpenCount() (int64, error)
- func (s *Service) Resolve(dedupeKey string) error
- func (s *Service) Run(ctx context.Context)
- func (s *Service) SendPending(ctx context.Context) (int, error)
- func (s *Service) Wake()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
App core.App
Now func() time.Time
WebhookURL string
WebhookSecret string
HTTPClient *http.Client
Logger *slog.Logger
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CheckCapacity ¶
func (s *Service) CheckCapacity(snapshot payments.CapacitySnapshot) error
func (*Service) CheckWebhookExhaustion ¶
func (*Service) ConfigureWebhook ¶
func (*Service) NotificationsEnabled ¶
Click to show internal directories.
Click to hide internal directories.