Documentation
¶
Index ¶
- type BadgerDataStore
- type Client
- func (c *Client) Addrs() []string
- func (c *Client) Advertise(serviceName string)
- func (c *Client) Bootstrap() error
- func (c *Client) Close() error
- func (c *Client) FindPeers(serviceName string) (<-chan peer.AddrInfo, error)
- func (c *Client) GetConfig() *config.HostConfig
- func (c *Client) ID() string
- func (c *Client) Peers() []peer.ID
- type DataStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerDataStore ¶
type BadgerDataStore struct {
// contains filtered or unexported fields
}
func NewBadgerDataStore ¶
func NewBadgerDataStore(dsPath string, encKey []byte) (*BadgerDataStore, error)
func (*BadgerDataStore) Close ¶
func (ds *BadgerDataStore) Close() error
func (*BadgerDataStore) Delete ¶
func (ds *BadgerDataStore) Delete(key []byte) error
func (*BadgerDataStore) ListPrefix ¶
func (ds *BadgerDataStore) ListPrefix(prefix []byte) ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.