matches

package
v0.0.0-...-71fdf4a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInternal = errors.New("matches: internal failure")

ErrInternal indicates some unexpected internal failure.

Functions

This section is empty.

Types

type Service

type Service interface {

	// Search finds all matching subscription ids and supplies them to the specified consume function.
	Search(ctx context.Context, msgId string, consume util.ConsumeFunc[string]) (n uint32, err error)
}

func NewLoggingMiddleware

func NewLoggingMiddleware(svc Service, log *slog.Logger) Service

func NewService

func NewService(client ServiceClient) Service

func NewServiceMock

func NewServiceMock() Service

Jump to

Keyboard shortcuts

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