push

package
v0.0.0-...-a4e98f0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(method string, publisher Publisher, logger *slog.Logger) *pushHandler

NewHandler is a cpnstructor function for the authHandler type

Types

type Publisher

type Publisher interface {
	Verify(signature, clientID string) (bool, error)
	Publish(ctx context.Context, clientID, message string) error
}

Jump to

Keyboard shortcuts

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