store

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyStore

type DummyStore struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewDummyStore

func NewDummyStore() DummyStore

func (*DummyStore) Add

func (ds *DummyStore) Add(message protobuf.Message) error

func (*DummyStore) Get

func (*DummyStore) Has

func (ds *DummyStore) Has(id state.MessageID) bool

type MessageStore

type MessageStore interface {
	Has(id state.MessageID) bool
	Get(id state.MessageID) (protobuf.Message, error)
	Add(message protobuf.Message) error
}

Jump to

Keyboard shortcuts

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