subscriber_manager

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 10 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 {
	Endpoint string
	Domain   string
	Key      *keyring.KeyInfo
	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
	AppID       string
	AccessKey   string
	Permissions []string
	Collections []string
	Pipelines   []uint64
}

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) GetEndpoint added in v0.0.18

func (sm *SubscriberManager) GetEndpoint() (*core.Endpoint, error)

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

func (*SubscriberManager) UpdateSubscriberPipelines added in v1.0.1

func (sm *SubscriberManager) UpdateSubscriberPipelines(subscriberID string, pipelines []uint64) error

Jump to

Keyboard shortcuts

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