Documentation ¶
Index ¶
- Constants
- type Config
- type EtcdPubSub
- func (ps *EtcdPubSub) Publish(ctx context.Context, topic string, msg Msg) error
- func (ps *EtcdPubSub) Reset(ctx context.Context, topic string) error
- func (ps *EtcdPubSub) Subscribe(ctx context.Context, topic string) (<-chan Msg, error)
- func (ps *EtcdPubSub) SubscribeFromRev(ctx context.Context, topic string, rev int64) (<-chan Msg, error)
- func (ps *EtcdPubSub) SubscribeFromStart(ctx context.Context, topic string) (<-chan Msg, error)
- type Msg
Constants ¶
View Source
const DefaultTTLSeconds = 7 * 24 * 3600
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdPubSub ¶
type EtcdPubSub struct {
Config
}
func New ¶
func New(config Config) (*EtcdPubSub, error)
func (*EtcdPubSub) SubscribeFromRev ¶
func (*EtcdPubSub) SubscribeFromStart ¶
Subscribe a topic from start
Click to show internal directories.
Click to hide internal directories.