pub

package
v0.0.0-...-906d962 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalid = errors.New("invalid request")
View Source
var ErrLimitReached = errors.New("publishing limit reached")
View Source
var ErrNoAck = errors.New("publishing is not acknowledged")
View Source
var ErrNoAuth = errors.New("unauthenticated request")

Functions

func MarshalEvent

func MarshalEvent(src *pb.CloudEvent) (data []byte, err error)

Types

type Service

type Service interface {
	Publish(ctx context.Context, evt *pb.CloudEvent, groupId, userId string) (err error)
}

func NewLogging

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

func NewMock

func NewMock(chEvt chan<- *pb.CloudEvent) Service

func NewService

func NewService(clientHttp *http.Client, url, token string, timeout time.Duration) Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳