Documentation ¶
Index ¶
- Constants
- Variables
- type Broadcaster
- func (b *Broadcaster) Broadcast(upd model.Update) (subscribersNotified int)
- func (b *Broadcaster) Close(ctx context.Context) (err error)
- func (b *Broadcaster) Ping(ctx context.Context) (err error)
- func (b *Broadcaster) Start(ctx context.Context) (err error)
- func (b *Broadcaster) StartWriters(ctx context.Context) (err error)
- func (b *Broadcaster) Subscribe(ctx context.Context, name string) (chan model.Update, error)
Constants ¶
View Source
const DefaultChannelBuffer = 100
View Source
const (
DefaultSubscriptionChannelChannelDepth = 10
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type Broadcaster struct { FigiName map[string]string FigiChannel map[string]string Cord chan model.Update Readers []reader.StocksReader Writers []writer.StocksWriter // contains filtered or unexported fields }
func (*Broadcaster) Broadcast ¶
func (b *Broadcaster) Broadcast(upd model.Update) (subscribersNotified int)
func (*Broadcaster) StartWriters ¶
func (b *Broadcaster) StartWriters(ctx context.Context) (err error)
Click to show internal directories.
Click to hide internal directories.