subscriber_manager

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Verbose bool
}

func NewOptions

func NewOptions() *Options

type Subscriber

type Subscriber struct {
	ID        string
	Name      string
	Component string
	Type      subscriber_manager_pb.SubscriberType
	LastCheck time.Time
}

type SubscriberManager

type SubscriberManager struct {
	// contains filtered or unexported fields
}

func NewSubscriberManager

func NewSubscriberManager(options *Options) *SubscriberManager

func NewSubscriberManagerWithClient

func NewSubscriberManagerWithClient(client *core.Client, options *Options) *SubscriberManager

func (*SubscriberManager) Connect

func (sm *SubscriberManager) Connect(host string, options *core.Options) error

func (*SubscriberManager) Disconnect

func (sm *SubscriberManager) Disconnect()

func (*SubscriberManager) GetSubscribers

func (sm *SubscriberManager) GetSubscribers() ([]*Subscriber, error)

func (*SubscriberManager) SubscribeToCollections added in v0.0.6

func (sm *SubscriberManager) SubscribeToCollections(subscriberID string, collections []string) error

Jump to

Keyboard shortcuts

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