Documentation ¶
Index ¶
- func PrintNode(output io.Writer, node *bcgo.Node) error
- type BCClient
- func (c *BCClient) Alias(alias string) (string, error)
- func (c *BCClient) Block(channel string, hash []byte) (*bcgo.Block, error)
- func (c *BCClient) Chain(channel string, callback func([]byte, *bcgo.Block) error) error
- func (c *BCClient) ExportKeys(peer, alias string, password []byte) (string, error)
- func (c *BCClient) GetCache() (bcgo.Cache, error)
- func (c *BCClient) GetNetwork() (bcgo.Network, error)
- func (c *BCClient) GetNode() (*bcgo.Node, error)
- func (c *BCClient) GetPeers() ([]string, error)
- func (c *BCClient) GetRoot() (string, error)
- func (c *BCClient) Head(channel string) ([]byte, error)
- func (c *BCClient) ImportKeys(peer, alias, accessCode string) error
- func (c *BCClient) Init(listener bcgo.MiningListener) (*bcgo.Node, error)
- func (c *BCClient) Mine(channel string, threshold uint64, listener bcgo.MiningListener) ([]byte, error)
- func (c *BCClient) Pull(channel string) error
- func (c *BCClient) Purge() error
- func (c *BCClient) Push(channel string) error
- func (c *BCClient) Read(channel string, blockHash, recordHash []byte, output io.Writer) error
- func (c *BCClient) ReadKey(channel string, blockHash, recordHash []byte, output io.Writer) error
- func (c *BCClient) ReadPayload(channel string, blockHash, recordHash []byte, output io.Writer) error
- func (c *BCClient) Record(channel string, hash []byte) (*bcgo.Record, error)
- func (c *BCClient) SetCache(cache bcgo.Cache)
- func (c *BCClient) SetNetwork(network bcgo.Network)
- func (c *BCClient) SetNode(node *bcgo.Node)
- func (c *BCClient) SetPeers(peers ...string)
- func (c *BCClient) SetRoot(root string)
- func (c *BCClient) Write(channel string, accesses []string, input io.Reader) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BCClient ¶
type BCClient struct { Root string Peers []string Cache bcgo.Cache Network bcgo.Network Node *bcgo.Node }
func NewBCClient ¶
func (*BCClient) ExportKeys ¶
func (*BCClient) ImportKeys ¶
func (*BCClient) ReadPayload ¶
func (*BCClient) SetNetwork ¶
Click to show internal directories.
Click to hide internal directories.