Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyStoreName = errors.New("Sorry, you must provide a valid store name") ErrInvalidURL = errors.New("Sorry, you must provide a valid store URL") ErrInvalidTlsConfiguration = errors.New("Sorry, you have provided an invalid tls configuration") ErrCloseConn = errors.New("connection closed") )
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler func() error
func (EventHandler) Run ¶
func (f EventHandler) Run()
type EventStore ¶
type EventStore interface { Publish(topic string, data []byte, opts ...options.PublisherOption) error Subscribe(topic string, handler SubscriptionHandler, opts ...options.SubscriptionOption) error Request(topic string, params []byte, opts ...options.PublisherOption) (*messages.Message, error) Reply(topic string, handler ReplyHandler, opts ...options.SubscriptionOption) error GetServiceName() string Run(ctx context.Context, handlers ...EventHandler) NewKVStore(opts ...options.KVOption) (KVStore, error) NewStreamer(opts ...options.StreamerOption) (Streamer, error) Close() }
type StreamHandler ¶ added in v2.0.9
type StreamReceiver ¶ added in v2.0.9
type Streamer ¶ added in v2.0.9
type Streamer interface { Run() NewStream(handler StreamHandler) Stream JoinStream(id string) (Stream, error) Close() }
type SubscriptionHandler ¶
type SubscriptionHandler func(event Event)
Directories ¶
Path | Synopsis |
---|---|
_lab
|
|
Package codec is an interface for encoding messages
|
Package codec is an interface for encoding messages |
bytes
Package bytes provides a bytes codec which does not encode or decode anything
|
Package bytes provides a bytes codec which does not encode or decode anything |
msgpack
Package msgpack provides a msgpack codec
|
Package msgpack provides a msgpack codec |
text
Package text reads any text/* content-type
|
Package text reads any text/* content-type |
systems
|
|
Click to show internal directories.
Click to hide internal directories.