listen

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(method string, listener Listener, logger *slog.Logger) *listenHandler

NewHandler is a cpnstructor function for the listenHandler type

Types

type Listener

type Listener interface {
	Verify(signature, clientID string) (bool, error)
	ReadMessages(ctx context.Context, clientID string) chan string
}

Jump to

Keyboard shortcuts

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