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) (bls.FunctionRecord, error)
- func (s *Store) RetrieveFunctions(_ context.Context) ([]bls.FunctionRecord, error)
- func (s *Store) RetrievePeer(_ context.Context, id peer.ID) (bls.Peer, error)
- func (s *Store) RetrievePeers(_ context.Context) ([]bls.Peer, error)
- func (s *Store) SaveFunction(_ context.Context, function bls.FunctionRecord) error
- func (s *Store) SavePeer(_ context.Context, peer bls.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) RetrieveFunction ¶
func (*Store) RetrieveFunctions ¶
func (*Store) RetrievePeer ¶
func (*Store) SaveFunction ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.