webhook

package
v0.0.0-...-0250509 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Webhook

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

func NewWebhook

func NewWebhook(log *slog.Logger) (fcm *Webhook, err error)

func (*Webhook) ConvertMessage

func (wh *Webhook) ConvertMessage(data []byte) (smsg services.ServiceMessage, err error)

func (*Webhook) ID

func (fcm *Webhook) ID() string

ID ...

func (*Webhook) Logger

func (fcm *Webhook) Logger() *slog.Logger

func (*Webhook) NewClient

func (fcm *Webhook) NewClient() (services.PumpClient, error)

func (*Webhook) PushMessage

func (*Webhook) String

func (fcm *Webhook) String() string

String ...

func (*Webhook) Validate

func (wh *Webhook) Validate(data []byte) error

Validate ...

Jump to

Keyboard shortcuts

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