Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { Block() Block MinedBlock() MinedBlock Link() Link MinedLink() MinedLink Chain() Chain }
Application represents a remote application
func NewApplication ¶
func NewApplication( block Block, minedBlock MinedBlock, link Link, minedLink MinedLink, chain Chain, ) Application
NewApplication creates a new application instance
type MinedBlock ¶
type MinedBlock interface { List() ([]hash.Hash, error) Retrieve(hash hash.Hash) (mined_block.Block, error) }
MinedBlock represents the mined block application
type MinedLink ¶
type MinedLink interface { List() ([]hash.Hash, error) Head() (mined_link.Link, error) Retrieve(hash hash.Hash) (mined_link.Link, error) }
MinedLink represents the mined link application
type RemoteBuilder ¶
type RemoteBuilder interface { Create() RemoteBuilder WithPeer(peer peers.Peer) RemoteBuilder Now() (Application, error) }
RemoteBuilder represents a remote application builder
Click to show internal directories.
Click to hide internal directories.