subscriptions

package
v0.0.71 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2019 License: MPL-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSubscriptionNotFound = errors.New("subscription not found")
)

Functions

func New added in v0.0.64

func New(id string, logger *zap.Logger) *server

func TenantTopicIndexer

func TenantTopicIndexer() *topicIndexer

Types

type Channel added in v0.0.39

type Channel interface {
	Broadcast([]byte)
}

type SessionStore added in v0.0.65

type SessionStore interface {
	ByID(ctx context.Context, id string) (*sessions.Session, error)
}

type Store

type Store interface {
	ByTopic(tenant string, pattern []byte) (*pb.SubscriptionMetadataList, error)
	ByID(id string) (*pb.Subscription, error)
	All() (*pb.SubscriptionMetadataList, error)
	BySession(id string) (*pb.SubscriptionMetadataList, error)
	Create(message *pb.Subscription) error
	Delete(id string) error
}

func NewSubscriptionStore added in v0.0.71

func NewSubscriptionStore(mesh types.GossipServiceLayer, logger *zap.Logger) Store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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