Documentation ¶
Index ¶
- Constants
- type Codec
- type Store
- func (s *Store) Keys() []string
- func (s *Store) RemoveFunction(_ context.Context, cid string) error
- func (s *Store) RemovePeer(_ context.Context, id peer.ID) error
- func (s *Store) RetrieveFunction(_ context.Context, cid string) (blockless.FunctionRecord, error)
- func (s *Store) RetrieveFunctions(_ context.Context) ([]blockless.FunctionRecord, error)
- func (s *Store) RetrievePeer(_ context.Context, id peer.ID) (blockless.Peer, error)
- func (s *Store) RetrievePeers(_ context.Context) ([]blockless.Peer, error)
- func (s *Store) SaveFunction(_ context.Context, function blockless.FunctionRecord) error
- func (s *Store) SavePeer(_ context.Context, 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) RemovePeer ¶ added in v0.6.1
func (*Store) RetrieveFunction ¶ added in v0.6.1
func (*Store) RetrieveFunctions ¶ added in v0.6.1
func (*Store) RetrievePeer ¶ added in v0.6.1
func (*Store) RetrievePeers ¶ added in v0.6.1
func (*Store) SaveFunction ¶ added in v0.6.1
Source Files ¶
Click to show internal directories.
Click to hide internal directories.