Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, envs *env.Map, stdLogger *stdLog.Logger) (webhooks.Service, error)
- type Service
- func (s *Service) Flush(_ context.Context, payload *webhooks.FlushPayload) (res string, err error)
- func (s *Service) HealthCheck(_ context.Context) (res string, err error)
- func (s *Service) Import(ctx context.Context, payload *webhooks.ImportPayload, bodyStream io.ReadCloser) (res *webhooks.ImportResult, err error)
- func (s *Service) IndexRoot(_ context.Context) (res *webhooks.Index, err error)
- func (s *Service) Register(_ context.Context, payload *webhooks.RegisterPayload) (res *webhooks.RegistrationResult, err error)
- func (s *Service) StartCron()
- func (s *Service) Update(_ context.Context, payload *webhooks.UpdatePayload) (res *webhooks.UpdateResult, err error)
Constants ¶
View Source
const ( WebhookCheckInterval = 15 * time.Second HeadersCtxKey = ctxKey("headers") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HealthCheck ¶
func (*Service) Import ¶
func (s *Service) Import(ctx context.Context, payload *webhooks.ImportPayload, bodyStream io.ReadCloser) (res *webhooks.ImportResult, err error)
func (*Service) Register ¶
func (s *Service) Register(_ context.Context, payload *webhooks.RegisterPayload) (res *webhooks.RegistrationResult, err error)
func (*Service) Update ¶
func (s *Service) Update(_ context.Context, payload *webhooks.UpdatePayload) (res *webhooks.UpdateResult, err error)
Click to show internal directories.
Click to hide internal directories.