inmemstore

package
v2.4.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2019 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() stream.Store

New initializes a new store struct.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store hold the in-memory representation of a data storage service.

func (*Store) Add

func (s *Store) Add(msg stream.Message) error

Add adds a stream.Message to the store.

func (*Store) Del

func (s *Store) Del(msg stream.Message) error

Del deletes a stream.Message from the store.

func (*Store) Flush

func (s *Store) Flush() error

Flush clears the store's contents.

func (*Store) Messages

func (s *Store) Messages() []stream.Message

Messages returns all messages in the store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL