reader

package
v0.0.0-...-b743e6f Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const FmtJson = "json"
View Source
const KeyHubMode = "hub.mode"
View Source
const KeyHubTopic = "hub.topic"
View Source
const QueryParamFollower = "follower"

Variables

View Source
var ErrConflict = errors.New("conflict")
View Source
var ErrInternal = errors.New("internal failure")
View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Callback

type Callback struct {
	Url    string `json:"url"`
	Format string `json:"fmt"`
}

type CallbackList

type CallbackList struct {
	Count int64 `json:"count"`
}

type Service

type Service interface {
	CreateCallback(ctx context.Context, subId, url string) (err error)
	GetCallback(ctx context.Context, subId, url string) (cb Callback, err error)
	DeleteCallback(ctx context.Context, subId, url string) (err error)
	CountByInterest(ctx context.Context, interestId string) (count int64, err error)
	Read(ctx context.Context, interestId string, limit int) (last []*pb.CloudEvent, err error)
}

func NewService

func NewService(clientHttp *http.Client, uriBase string) Service

func NewServiceLogging

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

func NewServiceMock

func NewServiceMock() Service

Jump to

Keyboard shortcuts

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