Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BCClient ¶
type BCClient interface {
Root() (string, error)
Peers() []string
Cache() (bcgo.Cache, error)
Network() (bcgo.Network, error)
Account() (bcgo.Account, error)
Node() (bcgo.Node, error)
HasCache() bool
HasNetwork() bool
HasAccount() bool
HasNode() bool
PublicKey(string) (cryptogo.PublicKeyFormat, []byte, error)
Head(string) ([]byte, error)
Chain(string, func([]byte, *bcgo.Block) error) error
Block(string, []byte) (*bcgo.Block, error)
Record(string, []byte) (*bcgo.Record, error)
Read(string, []byte, []byte, io.Writer) error
ReadKey(string, []byte, []byte, io.Writer) error
ReadPayload(string, []byte, []byte, io.Writer) error
Write(string, []string, io.Reader) (int, error)
Mine(string, uint64, bcgo.MiningListener) ([]byte, error)
Pull(string) error
Push(string) error
Purge() error
ImportKeys(string, string, string) error
ExportKeys(string, string, []byte) (string, error)
SetRoot(string)
SetPeers(...string)
SetCache(bcgo.Cache)
SetNetwork(bcgo.Network)
SetAccount(bcgo.Account)
SetNode(bcgo.Node)
}
func NewBCClient ¶
Click to show internal directories.
Click to hide internal directories.