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 ¶
StartRelay starts a configured relay, it's workers, and the GRPC workers
Click to show internal directories.
Click to hide internal directories.