types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingReadOptions = errors.New("read options cannot be nil")
	ErrMissingPlumberID   = errors.New("plumber id cannot be empty")
)

Functions

This section is empty.

Types

type AttachedStream

type AttachedStream struct {
	MessageCh chan *records.ReadRecord
}

type Read

type Read struct {
	AttachedClientsMutex *sync.RWMutex
	AttachedClients      map[string]*AttachedStream
	PlumberID            string
	ReadOptions          *opts.ReadOptions
	ContextCxl           context.Context
	CancelFunc           context.CancelFunc
	Backend              backends.Backend
	MessageDescriptors   map[pb.MDType]*desc.MessageDescriptor
	Log                  *logrus.Entry
}

func NewRead added in v1.0.4

func NewRead(cfg *ReadConfig) (*Read, error)

type ReadConfig added in v1.0.4

type ReadConfig struct {
	ReadOptions *opts.ReadOptions
	PlumberID   string
	Backend     backends.Backend
}

type Relay

type Relay struct {
	Active     bool               `json:"-"`
	Id         string             `json:"-"`
	CancelCtx  context.Context    `json:"-"`
	CancelFunc context.CancelFunc `json:"-"`
	RelayCh    chan interface{}   `json:"-"`
	Backend    backends.Backend   `json:"-"`
	Options    *opts.RelayOptions `json:"config"`
	// contains filtered or unexported fields
}

func (*Relay) StartRelay

func (r *Relay) StartRelay() error

StartRelay starts a configured relay, it's workers, and the GRPC workers

Jump to

Keyboard shortcuts

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