Documentation ¶
Index ¶
- Variables
- func AddChain(id string)
- func AddPeer(addr string)
- func CLIExecute(args []string)
- func Completer(doc prompt.Document) []prompt.Suggest
- func ConnectPeer(addr string)
- func CreateBlock(id string, payload []byte)
- func CreateChain(name string, author string, website string, email string, desc string)
- func DeleteChain(ref int64)
- func DeletePeer(addr string)
- func DirectExecute()
- func DisconnPeer(addr string)
- func DumpBlock(id string, height uint64)
- func Executer(input string)
- func GetBlocks(id string, from uint64, to uint64)
- func GetChains(id string)
- func GetPeers(count int32)
- func RunDaemon(flags string)
- func RunManageServer()
- func StopDaemon()
- func UI()
- type ManageServer
- func (*ManageServer) AddChain(ctx context.Context, request *manage.ChainRequest) (*manage.CommonResponse, error)
- func (*ManageServer) AddPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
- func (*ManageServer) ConnectPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
- func (*ManageServer) CreateBlock(ctx context.Context, request *manage.BlockCreationRequest) (*manage.BlockCreationResponse, error)
- func (*ManageServer) CreateChain(ctx context.Context, request *manage.ChainCreationRequest) (*manage.ChainCreationResponse, error)
- func (*ManageServer) DeleteChain(ctx context.Context, request *manage.ChainRequest) (*manage.CommonResponse, error)
- func (*ManageServer) DeletePeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
- func (*ManageServer) DisconnPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
- func (*ManageServer) GetBlocks(request *manage.BlockRequest, stream manage.IFCManage_GetBlocksServer) error
- func (*ManageServer) GetChains(request *manage.ChainRequest, stream manage.IFCManage_GetChainsServer) error
- func (*ManageServer) GetPeers(request *manage.PeerListRequest, stream manage.IFCManage_GetPeersServer) error
Constants ¶
This section is empty.
Variables ¶
View Source
var IFCManageClient manage.IFCManageClient
Functions ¶
func CLIExecute ¶
func CLIExecute(args []string)
func ConnectPeer ¶
func ConnectPeer(addr string)
func CreateBlock ¶
func CreateChain ¶
func DeleteChain ¶
func DeleteChain(ref int64)
func DeletePeer ¶
func DeletePeer(addr string)
func DirectExecute ¶
func DirectExecute()
func DisconnPeer ¶
func DisconnPeer(addr string)
func RunManageServer ¶
func RunManageServer()
func StopDaemon ¶
func StopDaemon()
Types ¶
type ManageServer ¶
type ManageServer struct{}
func (*ManageServer) AddChain ¶
func (*ManageServer) AddChain(ctx context.Context, request *manage.ChainRequest) (*manage.CommonResponse, error)
func (*ManageServer) AddPeer ¶
func (*ManageServer) AddPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
func (*ManageServer) ConnectPeer ¶
func (*ManageServer) ConnectPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
func (*ManageServer) CreateBlock ¶
func (*ManageServer) CreateBlock(ctx context.Context, request *manage.BlockCreationRequest) (*manage.BlockCreationResponse, error)
func (*ManageServer) CreateChain ¶
func (*ManageServer) CreateChain(ctx context.Context, request *manage.ChainCreationRequest) (*manage.ChainCreationResponse, error)
func (*ManageServer) DeleteChain ¶
func (*ManageServer) DeleteChain(ctx context.Context, request *manage.ChainRequest) (*manage.CommonResponse, error)
func (*ManageServer) DeletePeer ¶
func (*ManageServer) DeletePeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
func (*ManageServer) DisconnPeer ¶
func (*ManageServer) DisconnPeer(ctx context.Context, request *manage.PeerRequest) (*manage.CommonResponse, error)
func (*ManageServer) GetBlocks ¶
func (*ManageServer) GetBlocks(request *manage.BlockRequest, stream manage.IFCManage_GetBlocksServer) error
func (*ManageServer) GetChains ¶
func (*ManageServer) GetChains(request *manage.ChainRequest, stream manage.IFCManage_GetChainsServer) error
func (*ManageServer) GetPeers ¶
func (*ManageServer) GetPeers(request *manage.PeerListRequest, stream manage.IFCManage_GetPeersServer) error
Click to show internal directories.
Click to hide internal directories.