rpc_btc

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) GetBlockCount

func (*UnimplementedBtcServiceServer) GetMiningInfo

func (*UnimplementedBtcServiceServer) GetNewAddress

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL