events

package
v0.0.0-...-1354829 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

ErrInternal indicates some unexpected internal failure.

View Source
var ErrInvalid = errors.New("events: invalid request")

Functions

func NewPublisherMock

func NewPublisherMock() model.MessagesWriter

Types

type Service

type Service interface {
	SetStream(ctx context.Context, topic string, limit uint32) (err error)
	NewPublisher(ctx context.Context, topic string) (p model.MessagesWriter, 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