Documentation ¶
Index ¶
- func RegisterIFCManageServer(s *grpc.Server, srv IFCManageServer)
- type BlockCreationRequest
- func (*BlockCreationRequest) Descriptor() ([]byte, []int)
- func (m *BlockCreationRequest) GetChainID() string
- func (m *BlockCreationRequest) GetPayload() []byte
- func (*BlockCreationRequest) ProtoMessage()
- func (m *BlockCreationRequest) Reset()
- func (m *BlockCreationRequest) String() string
- func (m *BlockCreationRequest) XXX_DiscardUnknown()
- func (m *BlockCreationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockCreationRequest) XXX_Merge(src proto.Message)
- func (m *BlockCreationRequest) XXX_Size() int
- func (m *BlockCreationRequest) XXX_Unmarshal(b []byte) error
- type BlockCreationResponse
- func (*BlockCreationResponse) Descriptor() ([]byte, []int)
- func (m *BlockCreationResponse) GetHash() string
- func (m *BlockCreationResponse) GetHeight() uint64
- func (m *BlockCreationResponse) GetPrevHash() string
- func (m *BlockCreationResponse) GetSignature() string
- func (m *BlockCreationResponse) GetTime() uint64
- func (*BlockCreationResponse) ProtoMessage()
- func (m *BlockCreationResponse) Reset()
- func (m *BlockCreationResponse) String() string
- func (m *BlockCreationResponse) XXX_DiscardUnknown()
- func (m *BlockCreationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockCreationResponse) XXX_Merge(src proto.Message)
- func (m *BlockCreationResponse) XXX_Size() int
- func (m *BlockCreationResponse) XXX_Unmarshal(b []byte) error
- type BlockRequest
- func (*BlockRequest) Descriptor() ([]byte, []int)
- func (m *BlockRequest) GetChainID() string
- func (m *BlockRequest) GetFrom() uint64
- func (m *BlockRequest) GetTo() uint64
- func (*BlockRequest) ProtoMessage()
- func (m *BlockRequest) Reset()
- func (m *BlockRequest) String() string
- func (m *BlockRequest) XXX_DiscardUnknown()
- func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockRequest) XXX_Merge(src proto.Message)
- func (m *BlockRequest) XXX_Size() int
- func (m *BlockRequest) XXX_Unmarshal(b []byte) error
- type BlockResponse
- func (*BlockResponse) Descriptor() ([]byte, []int)
- func (m *BlockResponse) GetHash() string
- func (m *BlockResponse) GetHeight() uint64
- func (m *BlockResponse) GetPayload() []byte
- func (m *BlockResponse) GetPrevHash() string
- func (m *BlockResponse) GetSignature() string
- func (m *BlockResponse) GetTime() uint64
- func (*BlockResponse) ProtoMessage()
- func (m *BlockResponse) Reset()
- func (m *BlockResponse) String() string
- func (m *BlockResponse) XXX_DiscardUnknown()
- func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockResponse) XXX_Merge(src proto.Message)
- func (m *BlockResponse) XXX_Size() int
- func (m *BlockResponse) XXX_Unmarshal(b []byte) error
- type ChainCreationRequest
- func (*ChainCreationRequest) Descriptor() ([]byte, []int)
- func (m *ChainCreationRequest) GetAuthor() string
- func (m *ChainCreationRequest) GetDesc() string
- func (m *ChainCreationRequest) GetEmail() string
- func (m *ChainCreationRequest) GetName() string
- func (m *ChainCreationRequest) GetWebsite() string
- func (*ChainCreationRequest) ProtoMessage()
- func (m *ChainCreationRequest) Reset()
- func (m *ChainCreationRequest) String() string
- func (m *ChainCreationRequest) XXX_DiscardUnknown()
- func (m *ChainCreationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainCreationRequest) XXX_Merge(src proto.Message)
- func (m *ChainCreationRequest) XXX_Size() int
- func (m *ChainCreationRequest) XXX_Unmarshal(b []byte) error
- type ChainCreationResponse
- func (*ChainCreationResponse) Descriptor() ([]byte, []int)
- func (m *ChainCreationResponse) GetId() string
- func (m *ChainCreationResponse) GetRef() int64
- func (m *ChainCreationResponse) GetWif() string
- func (*ChainCreationResponse) ProtoMessage()
- func (m *ChainCreationResponse) Reset()
- func (m *ChainCreationResponse) String() string
- func (m *ChainCreationResponse) XXX_DiscardUnknown()
- func (m *ChainCreationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainCreationResponse) XXX_Merge(src proto.Message)
- func (m *ChainCreationResponse) XXX_Size() int
- func (m *ChainCreationResponse) XXX_Unmarshal(b []byte) error
- type ChainRequest
- func (*ChainRequest) Descriptor() ([]byte, []int)
- func (m *ChainRequest) GetId() string
- func (*ChainRequest) ProtoMessage()
- func (m *ChainRequest) Reset()
- func (m *ChainRequest) String() string
- func (m *ChainRequest) XXX_DiscardUnknown()
- func (m *ChainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainRequest) XXX_Merge(src proto.Message)
- func (m *ChainRequest) XXX_Size() int
- func (m *ChainRequest) XXX_Unmarshal(b []byte) error
- type ChainResponse
- func (*ChainResponse) Descriptor() ([]byte, []int)
- func (m *ChainResponse) GetCount() uint64
- func (m *ChainResponse) GetId() string
- func (m *ChainResponse) GetRef() int64
- func (*ChainResponse) ProtoMessage()
- func (m *ChainResponse) Reset()
- func (m *ChainResponse) String() string
- func (m *ChainResponse) XXX_DiscardUnknown()
- func (m *ChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainResponse) XXX_Merge(src proto.Message)
- func (m *ChainResponse) XXX_Size() int
- func (m *ChainResponse) XXX_Unmarshal(b []byte) error
- type CommonResponse
- func (*CommonResponse) Descriptor() ([]byte, []int)
- func (m *CommonResponse) GetError() string
- func (m *CommonResponse) GetSuccess() bool
- func (*CommonResponse) ProtoMessage()
- func (m *CommonResponse) Reset()
- func (m *CommonResponse) String() string
- func (m *CommonResponse) XXX_DiscardUnknown()
- func (m *CommonResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CommonResponse) XXX_Merge(src proto.Message)
- func (m *CommonResponse) XXX_Size() int
- func (m *CommonResponse) XXX_Unmarshal(b []byte) error
- type IFCManageClient
- type IFCManageServer
- type IFCManage_GetBlocksClient
- type IFCManage_GetBlocksServer
- type IFCManage_GetChainsClient
- type IFCManage_GetChainsServer
- type IFCManage_GetPeersClient
- type IFCManage_GetPeersServer
- type PeerListRequest
- func (*PeerListRequest) Descriptor() ([]byte, []int)
- func (m *PeerListRequest) GetCount() int32
- func (m *PeerListRequest) GetType() int32
- func (*PeerListRequest) ProtoMessage()
- func (m *PeerListRequest) Reset()
- func (m *PeerListRequest) String() string
- func (m *PeerListRequest) XXX_DiscardUnknown()
- func (m *PeerListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerListRequest) XXX_Merge(src proto.Message)
- func (m *PeerListRequest) XXX_Size() int
- func (m *PeerListRequest) XXX_Unmarshal(b []byte) error
- type PeerRequest
- func (*PeerRequest) Descriptor() ([]byte, []int)
- func (m *PeerRequest) GetAddr() string
- func (*PeerRequest) ProtoMessage()
- func (m *PeerRequest) Reset()
- func (m *PeerRequest) String() string
- func (m *PeerRequest) XXX_DiscardUnknown()
- func (m *PeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerRequest) XXX_Merge(src proto.Message)
- func (m *PeerRequest) XXX_Size() int
- func (m *PeerRequest) XXX_Unmarshal(b []byte) error
- type PeerResponse
- func (*PeerResponse) Descriptor() ([]byte, []int)
- func (m *PeerResponse) GetAddr() string
- func (m *PeerResponse) GetLast() int64
- func (m *PeerResponse) GetOnline() bool
- func (m *PeerResponse) GetRank() int32
- func (m *PeerResponse) GetServer() bool
- func (*PeerResponse) ProtoMessage()
- func (m *PeerResponse) Reset()
- func (m *PeerResponse) String() string
- func (m *PeerResponse) XXX_DiscardUnknown()
- func (m *PeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerResponse) XXX_Merge(src proto.Message)
- func (m *PeerResponse) XXX_Size() int
- func (m *PeerResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterIFCManageServer ¶
func RegisterIFCManageServer(s *grpc.Server, srv IFCManageServer)
Types ¶
type BlockCreationRequest ¶
type BlockCreationRequest struct { ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockCreationRequest) Descriptor ¶
func (*BlockCreationRequest) Descriptor() ([]byte, []int)
func (*BlockCreationRequest) GetChainID ¶
func (m *BlockCreationRequest) GetChainID() string
func (*BlockCreationRequest) GetPayload ¶
func (m *BlockCreationRequest) GetPayload() []byte
func (*BlockCreationRequest) ProtoMessage ¶
func (*BlockCreationRequest) ProtoMessage()
func (*BlockCreationRequest) Reset ¶
func (m *BlockCreationRequest) Reset()
func (*BlockCreationRequest) String ¶
func (m *BlockCreationRequest) String() string
func (*BlockCreationRequest) XXX_DiscardUnknown ¶
func (m *BlockCreationRequest) XXX_DiscardUnknown()
func (*BlockCreationRequest) XXX_Marshal ¶
func (m *BlockCreationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockCreationRequest) XXX_Merge ¶
func (m *BlockCreationRequest) XXX_Merge(src proto.Message)
func (*BlockCreationRequest) XXX_Size ¶
func (m *BlockCreationRequest) XXX_Size() int
func (*BlockCreationRequest) XXX_Unmarshal ¶
func (m *BlockCreationRequest) XXX_Unmarshal(b []byte) error
type BlockCreationResponse ¶
type BlockCreationResponse struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` PrevHash string `protobuf:"bytes,3,opt,name=prevHash,proto3" json:"prevHash,omitempty"` Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockCreationResponse) Descriptor ¶
func (*BlockCreationResponse) Descriptor() ([]byte, []int)
func (*BlockCreationResponse) GetHash ¶
func (m *BlockCreationResponse) GetHash() string
func (*BlockCreationResponse) GetHeight ¶
func (m *BlockCreationResponse) GetHeight() uint64
func (*BlockCreationResponse) GetPrevHash ¶
func (m *BlockCreationResponse) GetPrevHash() string
func (*BlockCreationResponse) GetSignature ¶
func (m *BlockCreationResponse) GetSignature() string
func (*BlockCreationResponse) GetTime ¶
func (m *BlockCreationResponse) GetTime() uint64
func (*BlockCreationResponse) ProtoMessage ¶
func (*BlockCreationResponse) ProtoMessage()
func (*BlockCreationResponse) Reset ¶
func (m *BlockCreationResponse) Reset()
func (*BlockCreationResponse) String ¶
func (m *BlockCreationResponse) String() string
func (*BlockCreationResponse) XXX_DiscardUnknown ¶
func (m *BlockCreationResponse) XXX_DiscardUnknown()
func (*BlockCreationResponse) XXX_Marshal ¶
func (m *BlockCreationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockCreationResponse) XXX_Merge ¶
func (m *BlockCreationResponse) XXX_Merge(src proto.Message)
func (*BlockCreationResponse) XXX_Size ¶
func (m *BlockCreationResponse) XXX_Size() int
func (*BlockCreationResponse) XXX_Unmarshal ¶
func (m *BlockCreationResponse) XXX_Unmarshal(b []byte) error
type BlockRequest ¶
type BlockRequest struct { ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` From uint64 `protobuf:"varint,2,opt,name=from,proto3" json:"from,omitempty"` To uint64 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockRequest) Descriptor ¶
func (*BlockRequest) Descriptor() ([]byte, []int)
func (*BlockRequest) GetChainID ¶
func (m *BlockRequest) GetChainID() string
func (*BlockRequest) GetFrom ¶
func (m *BlockRequest) GetFrom() uint64
func (*BlockRequest) GetTo ¶
func (m *BlockRequest) GetTo() uint64
func (*BlockRequest) ProtoMessage ¶
func (*BlockRequest) ProtoMessage()
func (*BlockRequest) Reset ¶
func (m *BlockRequest) Reset()
func (*BlockRequest) String ¶
func (m *BlockRequest) String() string
func (*BlockRequest) XXX_DiscardUnknown ¶
func (m *BlockRequest) XXX_DiscardUnknown()
func (*BlockRequest) XXX_Marshal ¶
func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockRequest) XXX_Merge ¶
func (m *BlockRequest) XXX_Merge(src proto.Message)
func (*BlockRequest) XXX_Size ¶
func (m *BlockRequest) XXX_Size() int
func (*BlockRequest) XXX_Unmarshal ¶
func (m *BlockRequest) XXX_Unmarshal(b []byte) error
type BlockResponse ¶
type BlockResponse struct { Height uint64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` Time uint64 `protobuf:"varint,2,opt,name=time,proto3" json:"time,omitempty"` PrevHash string `protobuf:"bytes,3,opt,name=prevHash,proto3" json:"prevHash,omitempty"` Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` Signature string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` Payload []byte `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockResponse) Descriptor ¶
func (*BlockResponse) Descriptor() ([]byte, []int)
func (*BlockResponse) GetHash ¶
func (m *BlockResponse) GetHash() string
func (*BlockResponse) GetHeight ¶
func (m *BlockResponse) GetHeight() uint64
func (*BlockResponse) GetPayload ¶
func (m *BlockResponse) GetPayload() []byte
func (*BlockResponse) GetPrevHash ¶
func (m *BlockResponse) GetPrevHash() string
func (*BlockResponse) GetSignature ¶
func (m *BlockResponse) GetSignature() string
func (*BlockResponse) GetTime ¶
func (m *BlockResponse) GetTime() uint64
func (*BlockResponse) ProtoMessage ¶
func (*BlockResponse) ProtoMessage()
func (*BlockResponse) Reset ¶
func (m *BlockResponse) Reset()
func (*BlockResponse) String ¶
func (m *BlockResponse) String() string
func (*BlockResponse) XXX_DiscardUnknown ¶
func (m *BlockResponse) XXX_DiscardUnknown()
func (*BlockResponse) XXX_Marshal ¶
func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockResponse) XXX_Merge ¶
func (m *BlockResponse) XXX_Merge(src proto.Message)
func (*BlockResponse) XXX_Size ¶
func (m *BlockResponse) XXX_Size() int
func (*BlockResponse) XXX_Unmarshal ¶
func (m *BlockResponse) XXX_Unmarshal(b []byte) error
type ChainCreationRequest ¶
type ChainCreationRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainCreationRequest) Descriptor ¶
func (*ChainCreationRequest) Descriptor() ([]byte, []int)
func (*ChainCreationRequest) GetAuthor ¶
func (m *ChainCreationRequest) GetAuthor() string
func (*ChainCreationRequest) GetDesc ¶
func (m *ChainCreationRequest) GetDesc() string
func (*ChainCreationRequest) GetEmail ¶
func (m *ChainCreationRequest) GetEmail() string
func (*ChainCreationRequest) GetName ¶
func (m *ChainCreationRequest) GetName() string
func (*ChainCreationRequest) GetWebsite ¶
func (m *ChainCreationRequest) GetWebsite() string
func (*ChainCreationRequest) ProtoMessage ¶
func (*ChainCreationRequest) ProtoMessage()
func (*ChainCreationRequest) Reset ¶
func (m *ChainCreationRequest) Reset()
func (*ChainCreationRequest) String ¶
func (m *ChainCreationRequest) String() string
func (*ChainCreationRequest) XXX_DiscardUnknown ¶
func (m *ChainCreationRequest) XXX_DiscardUnknown()
func (*ChainCreationRequest) XXX_Marshal ¶
func (m *ChainCreationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainCreationRequest) XXX_Merge ¶
func (m *ChainCreationRequest) XXX_Merge(src proto.Message)
func (*ChainCreationRequest) XXX_Size ¶
func (m *ChainCreationRequest) XXX_Size() int
func (*ChainCreationRequest) XXX_Unmarshal ¶
func (m *ChainCreationRequest) XXX_Unmarshal(b []byte) error
type ChainCreationResponse ¶
type ChainCreationResponse struct { Ref int64 `protobuf:"varint,1,opt,name=ref,proto3" json:"ref,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Wif string `protobuf:"bytes,3,opt,name=wif,proto3" json:"wif,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainCreationResponse) Descriptor ¶
func (*ChainCreationResponse) Descriptor() ([]byte, []int)
func (*ChainCreationResponse) GetId ¶
func (m *ChainCreationResponse) GetId() string
func (*ChainCreationResponse) GetRef ¶
func (m *ChainCreationResponse) GetRef() int64
func (*ChainCreationResponse) GetWif ¶
func (m *ChainCreationResponse) GetWif() string
func (*ChainCreationResponse) ProtoMessage ¶
func (*ChainCreationResponse) ProtoMessage()
func (*ChainCreationResponse) Reset ¶
func (m *ChainCreationResponse) Reset()
func (*ChainCreationResponse) String ¶
func (m *ChainCreationResponse) String() string
func (*ChainCreationResponse) XXX_DiscardUnknown ¶
func (m *ChainCreationResponse) XXX_DiscardUnknown()
func (*ChainCreationResponse) XXX_Marshal ¶
func (m *ChainCreationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainCreationResponse) XXX_Merge ¶
func (m *ChainCreationResponse) XXX_Merge(src proto.Message)
func (*ChainCreationResponse) XXX_Size ¶
func (m *ChainCreationResponse) XXX_Size() int
func (*ChainCreationResponse) XXX_Unmarshal ¶
func (m *ChainCreationResponse) XXX_Unmarshal(b []byte) error
type ChainRequest ¶
type ChainRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainRequest) Descriptor ¶
func (*ChainRequest) Descriptor() ([]byte, []int)
func (*ChainRequest) GetId ¶
func (m *ChainRequest) GetId() string
func (*ChainRequest) ProtoMessage ¶
func (*ChainRequest) ProtoMessage()
func (*ChainRequest) Reset ¶
func (m *ChainRequest) Reset()
func (*ChainRequest) String ¶
func (m *ChainRequest) String() string
func (*ChainRequest) XXX_DiscardUnknown ¶
func (m *ChainRequest) XXX_DiscardUnknown()
func (*ChainRequest) XXX_Marshal ¶
func (m *ChainRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainRequest) XXX_Merge ¶
func (m *ChainRequest) XXX_Merge(src proto.Message)
func (*ChainRequest) XXX_Size ¶
func (m *ChainRequest) XXX_Size() int
func (*ChainRequest) XXX_Unmarshal ¶
func (m *ChainRequest) XXX_Unmarshal(b []byte) error
type ChainResponse ¶
type ChainResponse struct { Ref int64 `protobuf:"varint,1,opt,name=ref,proto3" json:"ref,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Count uint64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainResponse) Descriptor ¶
func (*ChainResponse) Descriptor() ([]byte, []int)
func (*ChainResponse) GetCount ¶
func (m *ChainResponse) GetCount() uint64
func (*ChainResponse) GetId ¶
func (m *ChainResponse) GetId() string
func (*ChainResponse) GetRef ¶
func (m *ChainResponse) GetRef() int64
func (*ChainResponse) ProtoMessage ¶
func (*ChainResponse) ProtoMessage()
func (*ChainResponse) Reset ¶
func (m *ChainResponse) Reset()
func (*ChainResponse) String ¶
func (m *ChainResponse) String() string
func (*ChainResponse) XXX_DiscardUnknown ¶
func (m *ChainResponse) XXX_DiscardUnknown()
func (*ChainResponse) XXX_Marshal ¶
func (m *ChainResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainResponse) XXX_Merge ¶
func (m *ChainResponse) XXX_Merge(src proto.Message)
func (*ChainResponse) XXX_Size ¶
func (m *ChainResponse) XXX_Size() int
func (*ChainResponse) XXX_Unmarshal ¶
func (m *ChainResponse) XXX_Unmarshal(b []byte) error
type CommonResponse ¶
type CommonResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CommonResponse) Descriptor ¶
func (*CommonResponse) Descriptor() ([]byte, []int)
func (*CommonResponse) GetError ¶
func (m *CommonResponse) GetError() string
func (*CommonResponse) GetSuccess ¶
func (m *CommonResponse) GetSuccess() bool
func (*CommonResponse) ProtoMessage ¶
func (*CommonResponse) ProtoMessage()
func (*CommonResponse) Reset ¶
func (m *CommonResponse) Reset()
func (*CommonResponse) String ¶
func (m *CommonResponse) String() string
func (*CommonResponse) XXX_DiscardUnknown ¶
func (m *CommonResponse) XXX_DiscardUnknown()
func (*CommonResponse) XXX_Marshal ¶
func (m *CommonResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CommonResponse) XXX_Merge ¶
func (m *CommonResponse) XXX_Merge(src proto.Message)
func (*CommonResponse) XXX_Size ¶
func (m *CommonResponse) XXX_Size() int
func (*CommonResponse) XXX_Unmarshal ¶
func (m *CommonResponse) XXX_Unmarshal(b []byte) error
type IFCManageClient ¶
type IFCManageClient interface { GetChains(ctx context.Context, in *ChainRequest, opts ...grpc.CallOption) (IFCManage_GetChainsClient, error) GetBlocks(ctx context.Context, in *BlockRequest, opts ...grpc.CallOption) (IFCManage_GetBlocksClient, error) CreateChain(ctx context.Context, in *ChainCreationRequest, opts ...grpc.CallOption) (*ChainCreationResponse, error) CreateBlock(ctx context.Context, in *BlockCreationRequest, opts ...grpc.CallOption) (*BlockCreationResponse, error) AddChain(ctx context.Context, in *ChainRequest, opts ...grpc.CallOption) (*CommonResponse, error) DeleteChain(ctx context.Context, in *ChainRequest, opts ...grpc.CallOption) (*CommonResponse, error) GetPeers(ctx context.Context, in *PeerListRequest, opts ...grpc.CallOption) (IFCManage_GetPeersClient, error) AddPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*CommonResponse, error) ConnectPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*CommonResponse, error) DisconnPeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*CommonResponse, error) DeletePeer(ctx context.Context, in *PeerRequest, opts ...grpc.CallOption) (*CommonResponse, error) }
IFCManageClient is the client API for IFCManage service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIFCManageClient ¶
func NewIFCManageClient(cc *grpc.ClientConn) IFCManageClient
type IFCManageServer ¶
type IFCManageServer interface { GetChains(*ChainRequest, IFCManage_GetChainsServer) error GetBlocks(*BlockRequest, IFCManage_GetBlocksServer) error CreateChain(context.Context, *ChainCreationRequest) (*ChainCreationResponse, error) CreateBlock(context.Context, *BlockCreationRequest) (*BlockCreationResponse, error) AddChain(context.Context, *ChainRequest) (*CommonResponse, error) DeleteChain(context.Context, *ChainRequest) (*CommonResponse, error) GetPeers(*PeerListRequest, IFCManage_GetPeersServer) error AddPeer(context.Context, *PeerRequest) (*CommonResponse, error) ConnectPeer(context.Context, *PeerRequest) (*CommonResponse, error) DisconnPeer(context.Context, *PeerRequest) (*CommonResponse, error) DeletePeer(context.Context, *PeerRequest) (*CommonResponse, error) }
IFCManageServer is the server API for IFCManage service.
type IFCManage_GetBlocksClient ¶
type IFCManage_GetBlocksClient interface { Recv() (*BlockResponse, error) grpc.ClientStream }
type IFCManage_GetBlocksServer ¶
type IFCManage_GetBlocksServer interface { Send(*BlockResponse) error grpc.ServerStream }
type IFCManage_GetChainsClient ¶
type IFCManage_GetChainsClient interface { Recv() (*ChainResponse, error) grpc.ClientStream }
type IFCManage_GetChainsServer ¶
type IFCManage_GetChainsServer interface { Send(*ChainResponse) error grpc.ServerStream }
type IFCManage_GetPeersClient ¶
type IFCManage_GetPeersClient interface { Recv() (*PeerResponse, error) grpc.ClientStream }
type IFCManage_GetPeersServer ¶
type IFCManage_GetPeersServer interface { Send(*PeerResponse) error grpc.ServerStream }
type PeerListRequest ¶
type PeerListRequest struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerListRequest) Descriptor ¶
func (*PeerListRequest) Descriptor() ([]byte, []int)
func (*PeerListRequest) GetCount ¶
func (m *PeerListRequest) GetCount() int32
func (*PeerListRequest) GetType ¶
func (m *PeerListRequest) GetType() int32
func (*PeerListRequest) ProtoMessage ¶
func (*PeerListRequest) ProtoMessage()
func (*PeerListRequest) Reset ¶
func (m *PeerListRequest) Reset()
func (*PeerListRequest) String ¶
func (m *PeerListRequest) String() string
func (*PeerListRequest) XXX_DiscardUnknown ¶
func (m *PeerListRequest) XXX_DiscardUnknown()
func (*PeerListRequest) XXX_Marshal ¶
func (m *PeerListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerListRequest) XXX_Merge ¶
func (m *PeerListRequest) XXX_Merge(src proto.Message)
func (*PeerListRequest) XXX_Size ¶
func (m *PeerListRequest) XXX_Size() int
func (*PeerListRequest) XXX_Unmarshal ¶
func (m *PeerListRequest) XXX_Unmarshal(b []byte) error
type PeerRequest ¶
type PeerRequest struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerRequest) Descriptor ¶
func (*PeerRequest) Descriptor() ([]byte, []int)
func (*PeerRequest) GetAddr ¶
func (m *PeerRequest) GetAddr() string
func (*PeerRequest) ProtoMessage ¶
func (*PeerRequest) ProtoMessage()
func (*PeerRequest) Reset ¶
func (m *PeerRequest) Reset()
func (*PeerRequest) String ¶
func (m *PeerRequest) String() string
func (*PeerRequest) XXX_DiscardUnknown ¶
func (m *PeerRequest) XXX_DiscardUnknown()
func (*PeerRequest) XXX_Marshal ¶
func (m *PeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerRequest) XXX_Merge ¶
func (m *PeerRequest) XXX_Merge(src proto.Message)
func (*PeerRequest) XXX_Size ¶
func (m *PeerRequest) XXX_Size() int
func (*PeerRequest) XXX_Unmarshal ¶
func (m *PeerRequest) XXX_Unmarshal(b []byte) error
type PeerResponse ¶
type PeerResponse struct { Addr string `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"` Rank int32 `protobuf:"varint,2,opt,name=rank,proto3" json:"rank,omitempty"` Last int64 `protobuf:"varint,3,opt,name=last,proto3" json:"last,omitempty"` Server bool `protobuf:"varint,4,opt,name=server,proto3" json:"server,omitempty"` Online bool `protobuf:"varint,5,opt,name=online,proto3" json:"online,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerResponse) Descriptor ¶
func (*PeerResponse) Descriptor() ([]byte, []int)
func (*PeerResponse) GetAddr ¶
func (m *PeerResponse) GetAddr() string
func (*PeerResponse) GetLast ¶
func (m *PeerResponse) GetLast() int64
func (*PeerResponse) GetOnline ¶
func (m *PeerResponse) GetOnline() bool
func (*PeerResponse) GetRank ¶
func (m *PeerResponse) GetRank() int32
func (*PeerResponse) GetServer ¶
func (m *PeerResponse) GetServer() bool
func (*PeerResponse) ProtoMessage ¶
func (*PeerResponse) ProtoMessage()
func (*PeerResponse) Reset ¶
func (m *PeerResponse) Reset()
func (*PeerResponse) String ¶
func (m *PeerResponse) String() string
func (*PeerResponse) XXX_DiscardUnknown ¶
func (m *PeerResponse) XXX_DiscardUnknown()
func (*PeerResponse) XXX_Marshal ¶
func (m *PeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeerResponse) XXX_Merge ¶
func (m *PeerResponse) XXX_Merge(src proto.Message)
func (*PeerResponse) XXX_Size ¶
func (m *PeerResponse) XXX_Size() int
func (*PeerResponse) XXX_Unmarshal ¶
func (m *PeerResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.