Documentation ¶
Index ¶
- Constants
- func New(tree config.Tree) (stream.Stream, error)
- type Config
- type Inmem
- func (ps *Inmem) Close() error
- func (ps *Inmem) Drain()
- func (ps *Inmem) Publish(ctx context.Context, ch string, data []byte) error
- func (ps *Inmem) Start(ctx context.Context) error
- func (ps *Inmem) Subscribe(q, ch string, h stream.MsgHandler, opts ...stream.SubscriptionOption) (stream.Subscription, error)
Constants ¶
View Source
const (
Name = "inmem"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Inmem ¶
type Inmem struct { Config Config // contains filtered or unexported fields }
func (*Inmem) Subscribe ¶
func (ps *Inmem) Subscribe( q, ch string, h stream.MsgHandler, opts ...stream.SubscriptionOption, ) (stream.Subscription, error)
Click to show internal directories.
Click to hide internal directories.