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 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 NewServiceMock ¶
func NewServiceMock() Service
Click to show internal directories.
Click to hide internal directories.