webpush

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebPush

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

WebPush ...

func NewWebPush

func NewWebPush(vapidPub, vapidPvt string, log *slog.Logger) (wp *WebPush, err error)

NewWebPush ...

func (*WebPush) ConvertMessage

func (wp *WebPush) ConvertMessage(data []byte) (services.ServiceMessage, error)

func (*WebPush) ID

func (wp *WebPush) ID() string

ID ...

func (*WebPush) Logger

func (wp *WebPush) Logger() *slog.Logger

func (*WebPush) NewClient

func (wp *WebPush) NewClient() (services.PumpClient, error)

func (*WebPush) PushMessage

func (*WebPush) SquashAndPushMessage

func (wp *WebPush) SquashAndPushMessage(client services.PumpClient, smsgs []services.ServiceMessage, fc services.FeedbackCollector) services.PushStatus

func (*WebPush) String

func (wp *WebPush) String() string

String ...

func (*WebPush) Validate

func (wp *WebPush) Validate(data []byte) error

Validate ...

Jump to

Keyboard shortcuts

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