Documentation ¶
Index ¶
- func RegisterBtcServiceServer(s *grpc.Server, srv BtcServiceServer)
- type AddressReply
- func (*AddressReply) Descriptor() ([]byte, []int)
- func (m *AddressReply) GetAddress() string
- func (*AddressReply) ProtoMessage()
- func (m *AddressReply) Reset()
- func (m *AddressReply) String() string
- func (m *AddressReply) XXX_DiscardUnknown()
- func (m *AddressReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressReply) XXX_Merge(src proto.Message)
- func (m *AddressReply) XXX_Size() int
- func (m *AddressReply) XXX_Unmarshal(b []byte) error
- type AddressRequest
- func (*AddressRequest) Descriptor() ([]byte, []int)
- func (m *AddressRequest) GetLabel() string
- func (*AddressRequest) ProtoMessage()
- func (m *AddressRequest) Reset()
- func (m *AddressRequest) String() string
- func (m *AddressRequest) XXX_DiscardUnknown()
- func (m *AddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AddressRequest) XXX_Merge(src proto.Message)
- func (m *AddressRequest) XXX_Size() int
- func (m *AddressRequest) XXX_Unmarshal(b []byte) error
- type BlockCountReply
- func (*BlockCountReply) Descriptor() ([]byte, []int)
- func (m *BlockCountReply) GetCount() int32
- func (*BlockCountReply) ProtoMessage()
- func (m *BlockCountReply) Reset()
- func (m *BlockCountReply) String() string
- func (m *BlockCountReply) XXX_DiscardUnknown()
- func (m *BlockCountReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockCountReply) XXX_Merge(src proto.Message)
- func (m *BlockCountReply) XXX_Size() int
- func (m *BlockCountReply) XXX_Unmarshal(b []byte) error
- type BtcServiceClient
- type BtcServiceServer
- type CreateMultiSigRequest
- func (*CreateMultiSigRequest) Descriptor() ([]byte, []int)
- func (m *CreateMultiSigRequest) GetKeys() []string
- func (m *CreateMultiSigRequest) GetMinSignNum() int32
- func (*CreateMultiSigRequest) ProtoMessage()
- func (m *CreateMultiSigRequest) Reset()
- func (m *CreateMultiSigRequest) String() string
- func (m *CreateMultiSigRequest) XXX_DiscardUnknown()
- func (m *CreateMultiSigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateMultiSigRequest) XXX_Merge(src proto.Message)
- func (m *CreateMultiSigRequest) XXX_Size() int
- func (m *CreateMultiSigRequest) XXX_Unmarshal(b []byte) error
- type EmptyRequest
- func (*EmptyRequest) Descriptor() ([]byte, []int)
- func (*EmptyRequest) ProtoMessage()
- func (m *EmptyRequest) Reset()
- func (m *EmptyRequest) String() string
- func (m *EmptyRequest) XXX_DiscardUnknown()
- func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EmptyRequest) XXX_Merge(src proto.Message)
- func (m *EmptyRequest) XXX_Size() int
- func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
- type MiningInfoReply
- func (*MiningInfoReply) Descriptor() ([]byte, []int)
- func (m *MiningInfoReply) GetBlocks() int64
- func (m *MiningInfoReply) GetChain() string
- func (m *MiningInfoReply) GetCurrentblocksize() int64
- func (m *MiningInfoReply) GetCurrentblocktx() int64
- func (m *MiningInfoReply) GetCurrentblockweight() int64
- func (m *MiningInfoReply) GetDifficulty() float32
- func (m *MiningInfoReply) GetNetworkhashps() float32
- func (m *MiningInfoReply) GetPooledtx() int32
- func (m *MiningInfoReply) GetTestnet() bool
- func (*MiningInfoReply) ProtoMessage()
- func (m *MiningInfoReply) Reset()
- func (m *MiningInfoReply) String() string
- func (m *MiningInfoReply) XXX_DiscardUnknown()
- func (m *MiningInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MiningInfoReply) XXX_Merge(src proto.Message)
- func (m *MiningInfoReply) XXX_Size() int
- func (m *MiningInfoReply) XXX_Unmarshal(b []byte) error
- type UnimplementedBtcServiceServer
- func (*UnimplementedBtcServiceServer) CreateMultiSig(ctx context.Context, req *CreateMultiSigRequest) (*AddressReply, error)
- func (*UnimplementedBtcServiceServer) GetBlockCount(ctx context.Context, req *EmptyRequest) (*BlockCountReply, error)
- func (*UnimplementedBtcServiceServer) GetMiningInfo(ctx context.Context, req *EmptyRequest) (*MiningInfoReply, error)
- func (*UnimplementedBtcServiceServer) GetNewAddress(ctx context.Context, req *AddressRequest) (*AddressReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBtcServiceServer ¶
func RegisterBtcServiceServer(s *grpc.Server, srv BtcServiceServer)
Types ¶
type AddressReply ¶
type AddressReply struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressReply) Descriptor ¶
func (*AddressReply) Descriptor() ([]byte, []int)
func (*AddressReply) GetAddress ¶
func (m *AddressReply) GetAddress() string
func (*AddressReply) ProtoMessage ¶
func (*AddressReply) ProtoMessage()
func (*AddressReply) Reset ¶
func (m *AddressReply) Reset()
func (*AddressReply) String ¶
func (m *AddressReply) String() string
func (*AddressReply) XXX_DiscardUnknown ¶
func (m *AddressReply) XXX_DiscardUnknown()
func (*AddressReply) XXX_Marshal ¶
func (m *AddressReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressReply) XXX_Merge ¶
func (m *AddressReply) XXX_Merge(src proto.Message)
func (*AddressReply) XXX_Size ¶
func (m *AddressReply) XXX_Size() int
func (*AddressReply) XXX_Unmarshal ¶
func (m *AddressReply) XXX_Unmarshal(b []byte) error
type AddressRequest ¶
type AddressRequest struct { Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AddressRequest) Descriptor ¶
func (*AddressRequest) Descriptor() ([]byte, []int)
func (*AddressRequest) GetLabel ¶
func (m *AddressRequest) GetLabel() string
func (*AddressRequest) ProtoMessage ¶
func (*AddressRequest) ProtoMessage()
func (*AddressRequest) Reset ¶
func (m *AddressRequest) Reset()
func (*AddressRequest) String ¶
func (m *AddressRequest) String() string
func (*AddressRequest) XXX_DiscardUnknown ¶
func (m *AddressRequest) XXX_DiscardUnknown()
func (*AddressRequest) XXX_Marshal ¶
func (m *AddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AddressRequest) XXX_Merge ¶
func (m *AddressRequest) XXX_Merge(src proto.Message)
func (*AddressRequest) XXX_Size ¶
func (m *AddressRequest) XXX_Size() int
func (*AddressRequest) XXX_Unmarshal ¶
func (m *AddressRequest) XXX_Unmarshal(b []byte) error
type BlockCountReply ¶
type BlockCountReply struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockCountReply) Descriptor ¶
func (*BlockCountReply) Descriptor() ([]byte, []int)
func (*BlockCountReply) GetCount ¶
func (m *BlockCountReply) GetCount() int32
func (*BlockCountReply) ProtoMessage ¶
func (*BlockCountReply) ProtoMessage()
func (*BlockCountReply) Reset ¶
func (m *BlockCountReply) Reset()
func (*BlockCountReply) String ¶
func (m *BlockCountReply) String() string
func (*BlockCountReply) XXX_DiscardUnknown ¶
func (m *BlockCountReply) XXX_DiscardUnknown()
func (*BlockCountReply) XXX_Marshal ¶
func (m *BlockCountReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockCountReply) XXX_Merge ¶
func (m *BlockCountReply) XXX_Merge(src proto.Message)
func (*BlockCountReply) XXX_Size ¶
func (m *BlockCountReply) XXX_Size() int
func (*BlockCountReply) XXX_Unmarshal ¶
func (m *BlockCountReply) XXX_Unmarshal(b []byte) error
type BtcServiceClient ¶
type BtcServiceClient interface { GetNewAddress(ctx context.Context, in *AddressRequest, opts ...grpc.CallOption) (*AddressReply, error) CreateMultiSig(ctx context.Context, in *CreateMultiSigRequest, opts ...grpc.CallOption) (*AddressReply, error) GetBlockCount(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*BlockCountReply, error) GetMiningInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*MiningInfoReply, error) }
BtcServiceClient is the client API for BtcService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBtcServiceClient ¶
func NewBtcServiceClient(cc *grpc.ClientConn) BtcServiceClient
type BtcServiceServer ¶
type BtcServiceServer interface { GetNewAddress(context.Context, *AddressRequest) (*AddressReply, error) CreateMultiSig(context.Context, *CreateMultiSigRequest) (*AddressReply, error) GetBlockCount(context.Context, *EmptyRequest) (*BlockCountReply, error) GetMiningInfo(context.Context, *EmptyRequest) (*MiningInfoReply, error) }
BtcServiceServer is the server API for BtcService service.
type CreateMultiSigRequest ¶
type CreateMultiSigRequest struct { MinSignNum int32 `protobuf:"varint,1,opt,name=minSignNum,proto3" json:"minSignNum,omitempty"` Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateMultiSigRequest) Descriptor ¶
func (*CreateMultiSigRequest) Descriptor() ([]byte, []int)
func (*CreateMultiSigRequest) GetKeys ¶
func (m *CreateMultiSigRequest) GetKeys() []string
func (*CreateMultiSigRequest) GetMinSignNum ¶
func (m *CreateMultiSigRequest) GetMinSignNum() int32
func (*CreateMultiSigRequest) ProtoMessage ¶
func (*CreateMultiSigRequest) ProtoMessage()
func (*CreateMultiSigRequest) Reset ¶
func (m *CreateMultiSigRequest) Reset()
func (*CreateMultiSigRequest) String ¶
func (m *CreateMultiSigRequest) String() string
func (*CreateMultiSigRequest) XXX_DiscardUnknown ¶
func (m *CreateMultiSigRequest) XXX_DiscardUnknown()
func (*CreateMultiSigRequest) XXX_Marshal ¶
func (m *CreateMultiSigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateMultiSigRequest) XXX_Merge ¶
func (m *CreateMultiSigRequest) XXX_Merge(src proto.Message)
func (*CreateMultiSigRequest) XXX_Size ¶
func (m *CreateMultiSigRequest) XXX_Size() int
func (*CreateMultiSigRequest) XXX_Unmarshal ¶
func (m *CreateMultiSigRequest) XXX_Unmarshal(b []byte) error
type EmptyRequest ¶
type EmptyRequest struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*EmptyRequest) Descriptor ¶
func (*EmptyRequest) Descriptor() ([]byte, []int)
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) Reset ¶
func (m *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (m *EmptyRequest) String() string
func (*EmptyRequest) XXX_DiscardUnknown ¶
func (m *EmptyRequest) XXX_DiscardUnknown()
func (*EmptyRequest) XXX_Marshal ¶
func (m *EmptyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EmptyRequest) XXX_Merge ¶
func (m *EmptyRequest) XXX_Merge(src proto.Message)
func (*EmptyRequest) XXX_Size ¶
func (m *EmptyRequest) XXX_Size() int
func (*EmptyRequest) XXX_Unmarshal ¶
func (m *EmptyRequest) XXX_Unmarshal(b []byte) error
type MiningInfoReply ¶
type MiningInfoReply struct { Blocks int64 `protobuf:"varint,1,opt,name=blocks,proto3" json:"blocks,omitempty"` Currentblocksize int64 `protobuf:"varint,2,opt,name=currentblocksize,proto3" json:"currentblocksize,omitempty"` Currentblockweight int64 `protobuf:"varint,3,opt,name=currentblockweight,proto3" json:"currentblockweight,omitempty"` Currentblocktx int64 `protobuf:"varint,4,opt,name=currentblocktx,proto3" json:"currentblocktx,omitempty"` Difficulty float32 `protobuf:"fixed32,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"` Networkhashps float32 `protobuf:"fixed32,6,opt,name=networkhashps,proto3" json:"networkhashps,omitempty"` Pooledtx int32 `protobuf:"varint,7,opt,name=pooledtx,proto3" json:"pooledtx,omitempty"` Testnet bool `protobuf:"varint,8,opt,name=testnet,proto3" json:"testnet,omitempty"` Chain string `protobuf:"bytes,9,opt,name=chain,proto3" json:"chain,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MiningInfoReply) Descriptor ¶
func (*MiningInfoReply) Descriptor() ([]byte, []int)
func (*MiningInfoReply) GetBlocks ¶
func (m *MiningInfoReply) GetBlocks() int64
func (*MiningInfoReply) GetChain ¶
func (m *MiningInfoReply) GetChain() string
func (*MiningInfoReply) GetCurrentblocksize ¶
func (m *MiningInfoReply) GetCurrentblocksize() int64
func (*MiningInfoReply) GetCurrentblocktx ¶
func (m *MiningInfoReply) GetCurrentblocktx() int64
func (*MiningInfoReply) GetCurrentblockweight ¶
func (m *MiningInfoReply) GetCurrentblockweight() int64
func (*MiningInfoReply) GetDifficulty ¶
func (m *MiningInfoReply) GetDifficulty() float32
func (*MiningInfoReply) GetNetworkhashps ¶
func (m *MiningInfoReply) GetNetworkhashps() float32
func (*MiningInfoReply) GetPooledtx ¶
func (m *MiningInfoReply) GetPooledtx() int32
func (*MiningInfoReply) GetTestnet ¶
func (m *MiningInfoReply) GetTestnet() bool
func (*MiningInfoReply) ProtoMessage ¶
func (*MiningInfoReply) ProtoMessage()
func (*MiningInfoReply) Reset ¶
func (m *MiningInfoReply) Reset()
func (*MiningInfoReply) String ¶
func (m *MiningInfoReply) String() string
func (*MiningInfoReply) XXX_DiscardUnknown ¶
func (m *MiningInfoReply) XXX_DiscardUnknown()
func (*MiningInfoReply) XXX_Marshal ¶
func (m *MiningInfoReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiningInfoReply) XXX_Merge ¶
func (m *MiningInfoReply) XXX_Merge(src proto.Message)
func (*MiningInfoReply) XXX_Size ¶
func (m *MiningInfoReply) XXX_Size() int
func (*MiningInfoReply) XXX_Unmarshal ¶
func (m *MiningInfoReply) XXX_Unmarshal(b []byte) error
type UnimplementedBtcServiceServer ¶
type UnimplementedBtcServiceServer struct { }
UnimplementedBtcServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBtcServiceServer) CreateMultiSig ¶
func (*UnimplementedBtcServiceServer) CreateMultiSig(ctx context.Context, req *CreateMultiSigRequest) (*AddressReply, error)
func (*UnimplementedBtcServiceServer) GetBlockCount ¶
func (*UnimplementedBtcServiceServer) GetBlockCount(ctx context.Context, req *EmptyRequest) (*BlockCountReply, error)
func (*UnimplementedBtcServiceServer) GetMiningInfo ¶
func (*UnimplementedBtcServiceServer) GetMiningInfo(ctx context.Context, req *EmptyRequest) (*MiningInfoReply, error)
func (*UnimplementedBtcServiceServer) GetNewAddress ¶
func (*UnimplementedBtcServiceServer) GetNewAddress(ctx context.Context, req *AddressRequest) (*AddressReply, error)
Click to show internal directories.
Click to hide internal directories.