Documentation ¶
Index ¶
- Constants
- type Codec
- type Store
- func (s *Store) Keys() []string
- func (s *Store) RemoveFunction(cid string) error
- func (s *Store) RemovePeer(id peer.ID) error
- func (s *Store) RetrieveFunction(cid string) (blockless.FunctionRecord, error)
- func (s *Store) RetrieveFunctions() ([]blockless.FunctionRecord, error)
- func (s *Store) RetrievePeer(id peer.ID) (blockless.Peer, error)
- func (s *Store) RetrievePeers() ([]blockless.Peer, error)
- func (s *Store) SaveFunction(function blockless.FunctionRecord) error
- func (s *Store) SavePeer(peer blockless.Peer) error
Constants ¶
View Source
const ( PrefixPeer = 1 PrefixFunction = 2 )
View Source
const (
Separator = ':'
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store enables interaction with a database.
func (*Store) RemoveFunction ¶ added in v0.6.1
func (*Store) RetrieveFunction ¶ added in v0.6.1
func (s *Store) RetrieveFunction(cid string) (blockless.FunctionRecord, error)
func (*Store) RetrieveFunctions ¶ added in v0.6.1
func (s *Store) RetrieveFunctions() ([]blockless.FunctionRecord, error)
func (*Store) RetrievePeer ¶ added in v0.6.1
func (*Store) RetrievePeers ¶ added in v0.6.1
func (*Store) SaveFunction ¶ added in v0.6.1
func (s *Store) SaveFunction(function blockless.FunctionRecord) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.