Documentation ¶
Index ¶
- type CommandClient
- type Context
- func (c *Context) Delete(stream string) (bool, error)
- func (c *Context) EList(stream, offset, index string) ([]SimpleEvent, error)
- func (c *Context) Exists(stream string) (bool, error)
- func (c *Context) Publish(stream, version, event string) (bool, error)
- func (c *Context) SList() ([]Stream, error)
- func (c *Context) Subscribe(inc chan<- FullEvent, errc chan<- error, stream, offset string)
- func (c *Context) SubscribeAll(inc chan<- FullEvent, errc chan<- error, offset string)
- type FullEvent
- type SimpleEvent
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandClient ¶
type CommandClient interface { // stream Delete(stream string) (bool, error) Exists(stream string) (bool, error) SList() ([]Stream, error) // events EList(stream string, offset string, index string) ([]SimpleEvent, error) // pubsub Publish(stream string, version string, event string) (bool, error) Subscribe(inc chan<- FullEvent, errc chan<- error, stream string, offset string) SubscribeAll(inc chan<- FullEvent, errc chan<- error, offset string) }
CommandClient - interface to define the client implementation
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context - holds the client connection
func (*Context) EList ¶
func (c *Context) EList(stream, offset, index string) ([]SimpleEvent, error)
EList - list all events in a stream
type SimpleEvent ¶
SimpleEvent - defines an event on a stream without metadata
Click to show internal directories.
Click to hide internal directories.