Documentation ¶
Index ¶
- type Store
- func (b *Store) CreateStream(name string, s *stream.Stream) (err error)
- func (b *Store) DeleteStream(name string) (err error)
- func (b *Store) GetStream(name string) (s *stream.Stream, err error)
- func (b *Store) ListStreams(pageNum, pageSize int) (s []*stream.Stream, err error)
- func (b *Store) UpdateStream(name string, s *stream.Stream) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store wraps a bolt DB and fulfills the store.StreamStore interface.
func (*Store) CreateStream ¶
CreateStream saves the provided stream at name, returns an error if a stream already exists at that address.
func (*Store) DeleteStream ¶
DeleteStream deletes the stream stored at name, or returns an error if no such stream exists.
func (*Store) GetStream ¶
GetStream returns the stream stored at name, or an error if the stream does not exist, or has corrupted data.
func (*Store) ListStreams ¶
ListStreams returns a paged list of streams, or an error if none are found.
Click to show internal directories.
Click to hide internal directories.