service

package
v0.0.0-...-4845449 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebhookCheckInterval = 15 * time.Second
	HeadersCtxKey        = ctxKey("headers")
)

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, envs *env.Map, stdLogger *stdLog.Logger) (webhooks.Service, error)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func (*Service) Flush

func (s *Service) Flush(_ context.Context, payload *webhooks.FlushPayload) (res string, err error)

func (*Service) HealthCheck

func (s *Service) HealthCheck(_ context.Context) (res string, err error)

func (*Service) Import

func (s *Service) Import(ctx context.Context, payload *webhooks.ImportPayload, bodyStream io.ReadCloser) (res *webhooks.ImportResult, err error)

func (*Service) IndexRoot

func (s *Service) IndexRoot(_ context.Context) (res *webhooks.Index, err error)

func (*Service) Register

func (s *Service) Register(_ context.Context, payload *webhooks.RegisterPayload) (res *webhooks.RegistrationResult, err error)

func (*Service) StartCron

func (s *Service) StartCron()

func (*Service) Update

func (s *Service) Update(_ context.Context, payload *webhooks.UpdatePayload) (res *webhooks.UpdateResult, err error)

Jump to

Keyboard shortcuts

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