webhooks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(secret, timestamp string, body []byte) string

Types

type Service

type Service struct {
	App        core.App
	Config     config.Config
	HTTPClient *http.Client
	Logger     *slog.Logger
	Now        func() time.Time
	// contains filtered or unexported fields
}

func NewService

func NewService(app core.App, cfg config.Config) *Service

func (*Service) Enabled

func (s *Service) Enabled() bool

func (*Service) Run

func (s *Service) Run(ctx context.Context)

func (*Service) Schedule

func (s *Service) Schedule(app core.App, event string, payment *core.Record, at time.Time) error

func (*Service) ScheduleRefund

func (s *Service) ScheduleRefund(app core.App, event string, payment, refund *core.Record, at time.Time) error

func (*Service) SendPending

func (s *Service) SendPending(ctx context.Context) (int, error)

func (*Service) Wake

func (s *Service) Wake()

Jump to

Keyboard shortcuts

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