rpcpb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAdminServiceServer added in v0.1.1

func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer)

func RegisterRpcServiceServer added in v0.1.1

func RegisterRpcServiceServer(s *grpc.Server, srv RpcServiceServer)

Types

type AddPeerRequest added in v0.1.1

type AddPeerRequest struct {
	FullAddress          string   `protobuf:"bytes,1,opt,name=fullAddress,proto3" json:"fullAddress,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddPeerRequest) Descriptor added in v0.1.1

func (*AddPeerRequest) Descriptor() ([]byte, []int)

func (*AddPeerRequest) GetFullAddress added in v0.1.1

func (m *AddPeerRequest) GetFullAddress() string

func (*AddPeerRequest) ProtoMessage added in v0.1.1

func (*AddPeerRequest) ProtoMessage()

func (*AddPeerRequest) Reset added in v0.1.1

func (m *AddPeerRequest) Reset()

func (*AddPeerRequest) String added in v0.1.1

func (m *AddPeerRequest) String() string

func (*AddPeerRequest) XXX_DiscardUnknown added in v0.1.1

func (m *AddPeerRequest) XXX_DiscardUnknown()

func (*AddPeerRequest) XXX_Marshal added in v0.1.1

func (m *AddPeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddPeerRequest) XXX_Merge added in v0.1.1

func (dst *AddPeerRequest) XXX_Merge(src proto.Message)

func (*AddPeerRequest) XXX_Size added in v0.1.1

func (m *AddPeerRequest) XXX_Size() int

func (*AddPeerRequest) XXX_Unmarshal added in v0.1.1

func (m *AddPeerRequest) XXX_Unmarshal(b []byte) error

type AddPeerResponse added in v0.1.1

type AddPeerResponse struct {
	Status               string   `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AddPeerResponse) Descriptor added in v0.1.1

func (*AddPeerResponse) Descriptor() ([]byte, []int)

func (*AddPeerResponse) GetStatus added in v0.1.1

func (m *AddPeerResponse) GetStatus() string

func (*AddPeerResponse) ProtoMessage added in v0.1.1

func (*AddPeerResponse) ProtoMessage()

func (*AddPeerResponse) Reset added in v0.1.1

func (m *AddPeerResponse) Reset()

func (*AddPeerResponse) String added in v0.1.1

func (m *AddPeerResponse) String() string

func (*AddPeerResponse) XXX_DiscardUnknown added in v0.1.1

func (m *AddPeerResponse) XXX_DiscardUnknown()

func (*AddPeerResponse) XXX_Marshal added in v0.1.1

func (m *AddPeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddPeerResponse) XXX_Merge added in v0.1.1

func (dst *AddPeerResponse) XXX_Merge(src proto.Message)

func (*AddPeerResponse) XXX_Size added in v0.1.1

func (m *AddPeerResponse) XXX_Size() int

func (*AddPeerResponse) XXX_Unmarshal added in v0.1.1

func (m *AddPeerResponse) XXX_Unmarshal(b []byte) error

type AdminServiceClient added in v0.1.1

type AdminServiceClient interface {
	RpcAddPeer(ctx context.Context, in *AddPeerRequest, opts ...grpc.CallOption) (*AddPeerResponse, error)
}

AdminServiceClient is the client API for AdminService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdminServiceClient added in v0.1.1

func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient

type AdminServiceServer added in v0.1.1

type AdminServiceServer interface {
	RpcAddPeer(context.Context, *AddPeerRequest) (*AddPeerResponse, error)
}

AdminServiceServer is the server API for AdminService service.

type CreateWalletRequest

type CreateWalletRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The request message

func (*CreateWalletRequest) Descriptor

func (*CreateWalletRequest) Descriptor() ([]byte, []int)

func (*CreateWalletRequest) GetName

func (m *CreateWalletRequest) GetName() string

func (*CreateWalletRequest) ProtoMessage

func (*CreateWalletRequest) ProtoMessage()

func (*CreateWalletRequest) Reset

func (m *CreateWalletRequest) Reset()

func (*CreateWalletRequest) String

func (m *CreateWalletRequest) String() string

func (*CreateWalletRequest) XXX_DiscardUnknown

func (m *CreateWalletRequest) XXX_DiscardUnknown()

func (*CreateWalletRequest) XXX_Marshal

func (m *CreateWalletRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateWalletRequest) XXX_Merge

func (dst *CreateWalletRequest) XXX_Merge(src proto.Message)

func (*CreateWalletRequest) XXX_Size

func (m *CreateWalletRequest) XXX_Size() int

func (*CreateWalletRequest) XXX_Unmarshal

func (m *CreateWalletRequest) XXX_Unmarshal(b []byte) error

type CreateWalletResponse

type CreateWalletResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateWalletResponse) Descriptor

func (*CreateWalletResponse) Descriptor() ([]byte, []int)

func (*CreateWalletResponse) GetAddress

func (m *CreateWalletResponse) GetAddress() string

func (*CreateWalletResponse) GetMessage

func (m *CreateWalletResponse) GetMessage() string

func (*CreateWalletResponse) ProtoMessage

func (*CreateWalletResponse) ProtoMessage()

func (*CreateWalletResponse) Reset

func (m *CreateWalletResponse) Reset()

func (*CreateWalletResponse) String

func (m *CreateWalletResponse) String() string

func (*CreateWalletResponse) XXX_DiscardUnknown

func (m *CreateWalletResponse) XXX_DiscardUnknown()

func (*CreateWalletResponse) XXX_Marshal

func (m *CreateWalletResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateWalletResponse) XXX_Merge

func (dst *CreateWalletResponse) XXX_Merge(src proto.Message)

func (*CreateWalletResponse) XXX_Size

func (m *CreateWalletResponse) XXX_Size() int

func (*CreateWalletResponse) XXX_Unmarshal

func (m *CreateWalletResponse) XXX_Unmarshal(b []byte) error

type GetBalanceRequest

type GetBalanceRequest struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBalanceRequest) Descriptor

func (*GetBalanceRequest) Descriptor() ([]byte, []int)

func (*GetBalanceRequest) GetAddress

func (m *GetBalanceRequest) GetAddress() string

func (*GetBalanceRequest) GetName

func (m *GetBalanceRequest) GetName() string

func (*GetBalanceRequest) ProtoMessage

func (*GetBalanceRequest) ProtoMessage()

func (*GetBalanceRequest) Reset

func (m *GetBalanceRequest) Reset()

func (*GetBalanceRequest) String

func (m *GetBalanceRequest) String() string

func (*GetBalanceRequest) XXX_DiscardUnknown

func (m *GetBalanceRequest) XXX_DiscardUnknown()

func (*GetBalanceRequest) XXX_Marshal

func (m *GetBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBalanceRequest) XXX_Merge

func (dst *GetBalanceRequest) XXX_Merge(src proto.Message)

func (*GetBalanceRequest) XXX_Size

func (m *GetBalanceRequest) XXX_Size() int

func (*GetBalanceRequest) XXX_Unmarshal

func (m *GetBalanceRequest) XXX_Unmarshal(b []byte) error

type GetBalanceResponse

type GetBalanceResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Amount               int64    `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBalanceResponse) Descriptor

func (*GetBalanceResponse) Descriptor() ([]byte, []int)

func (*GetBalanceResponse) GetAmount added in v0.1.1

func (m *GetBalanceResponse) GetAmount() int64

func (*GetBalanceResponse) GetMessage

func (m *GetBalanceResponse) GetMessage() string

func (*GetBalanceResponse) ProtoMessage

func (*GetBalanceResponse) ProtoMessage()

func (*GetBalanceResponse) Reset

func (m *GetBalanceResponse) Reset()

func (*GetBalanceResponse) String

func (m *GetBalanceResponse) String() string

func (*GetBalanceResponse) XXX_DiscardUnknown

func (m *GetBalanceResponse) XXX_DiscardUnknown()

func (*GetBalanceResponse) XXX_Marshal

func (m *GetBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBalanceResponse) XXX_Merge

func (dst *GetBalanceResponse) XXX_Merge(src proto.Message)

func (*GetBalanceResponse) XXX_Size

func (m *GetBalanceResponse) XXX_Size() int

func (*GetBalanceResponse) XXX_Unmarshal

func (m *GetBalanceResponse) XXX_Unmarshal(b []byte) error

type GetBlockchainInfoRequest added in v0.1.1

type GetBlockchainInfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockchainInfoRequest) Descriptor added in v0.1.1

func (*GetBlockchainInfoRequest) Descriptor() ([]byte, []int)

func (*GetBlockchainInfoRequest) ProtoMessage added in v0.1.1

func (*GetBlockchainInfoRequest) ProtoMessage()

func (*GetBlockchainInfoRequest) Reset added in v0.1.1

func (m *GetBlockchainInfoRequest) Reset()

func (*GetBlockchainInfoRequest) String added in v0.1.1

func (m *GetBlockchainInfoRequest) String() string

func (*GetBlockchainInfoRequest) XXX_DiscardUnknown added in v0.1.1

func (m *GetBlockchainInfoRequest) XXX_DiscardUnknown()

func (*GetBlockchainInfoRequest) XXX_Marshal added in v0.1.1

func (m *GetBlockchainInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockchainInfoRequest) XXX_Merge added in v0.1.1

func (dst *GetBlockchainInfoRequest) XXX_Merge(src proto.Message)

func (*GetBlockchainInfoRequest) XXX_Size added in v0.1.1

func (m *GetBlockchainInfoRequest) XXX_Size() int

func (*GetBlockchainInfoRequest) XXX_Unmarshal added in v0.1.1

func (m *GetBlockchainInfoRequest) XXX_Unmarshal(b []byte) error

type GetBlockchainInfoResponse added in v0.1.1

type GetBlockchainInfoResponse struct {
	TailBlockHash        []byte   `protobuf:"bytes,1,opt,name=tailBlockHash,proto3" json:"tailBlockHash,omitempty"`
	BlockHeight          uint64   `protobuf:"varint,2,opt,name=blockHeight,proto3" json:"blockHeight,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetBlockchainInfoResponse) Descriptor added in v0.1.1

func (*GetBlockchainInfoResponse) Descriptor() ([]byte, []int)

func (*GetBlockchainInfoResponse) GetBlockHeight added in v0.1.1

func (m *GetBlockchainInfoResponse) GetBlockHeight() uint64

func (*GetBlockchainInfoResponse) GetTailBlockHash added in v0.1.1

func (m *GetBlockchainInfoResponse) GetTailBlockHash() []byte

func (*GetBlockchainInfoResponse) ProtoMessage added in v0.1.1

func (*GetBlockchainInfoResponse) ProtoMessage()

func (*GetBlockchainInfoResponse) Reset added in v0.1.1

func (m *GetBlockchainInfoResponse) Reset()

func (*GetBlockchainInfoResponse) String added in v0.1.1

func (m *GetBlockchainInfoResponse) String() string

func (*GetBlockchainInfoResponse) XXX_DiscardUnknown added in v0.1.1

func (m *GetBlockchainInfoResponse) XXX_DiscardUnknown()

func (*GetBlockchainInfoResponse) XXX_Marshal added in v0.1.1

func (m *GetBlockchainInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetBlockchainInfoResponse) XXX_Merge added in v0.1.1

func (dst *GetBlockchainInfoResponse) XXX_Merge(src proto.Message)

func (*GetBlockchainInfoResponse) XXX_Size added in v0.1.1

func (m *GetBlockchainInfoResponse) XXX_Size() int

func (*GetBlockchainInfoResponse) XXX_Unmarshal added in v0.1.1

func (m *GetBlockchainInfoResponse) XXX_Unmarshal(b []byte) error

type GetPeerInfoRequest

type GetPeerInfoRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GetPeerInfoRequest) Descriptor

func (*GetPeerInfoRequest) Descriptor() ([]byte, []int)

func (*GetPeerInfoRequest) ProtoMessage

func (*GetPeerInfoRequest) ProtoMessage()

func (*GetPeerInfoRequest) Reset

func (m *GetPeerInfoRequest) Reset()

func (*GetPeerInfoRequest) String

func (m *GetPeerInfoRequest) String() string

func (*GetPeerInfoRequest) XXX_DiscardUnknown

func (m *GetPeerInfoRequest) XXX_DiscardUnknown()

func (*GetPeerInfoRequest) XXX_Marshal

func (m *GetPeerInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPeerInfoRequest) XXX_Merge

func (dst *GetPeerInfoRequest) XXX_Merge(src proto.Message)

func (*GetPeerInfoRequest) XXX_Size

func (m *GetPeerInfoRequest) XXX_Size() int

func (*GetPeerInfoRequest) XXX_Unmarshal

func (m *GetPeerInfoRequest) XXX_Unmarshal(b []byte) error

type GetPeerInfoResponse

type GetPeerInfoResponse struct {
	PeerList             *pb.Peerlist `protobuf:"bytes,1,opt,name=peerList,proto3" json:"peerList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*GetPeerInfoResponse) Descriptor

func (*GetPeerInfoResponse) Descriptor() ([]byte, []int)

func (*GetPeerInfoResponse) GetPeerList

func (m *GetPeerInfoResponse) GetPeerList() *pb.Peerlist

func (*GetPeerInfoResponse) ProtoMessage

func (*GetPeerInfoResponse) ProtoMessage()

func (*GetPeerInfoResponse) Reset

func (m *GetPeerInfoResponse) Reset()

func (*GetPeerInfoResponse) String

func (m *GetPeerInfoResponse) String() string

func (*GetPeerInfoResponse) XXX_DiscardUnknown

func (m *GetPeerInfoResponse) XXX_DiscardUnknown()

func (*GetPeerInfoResponse) XXX_Marshal

func (m *GetPeerInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetPeerInfoResponse) XXX_Merge

func (dst *GetPeerInfoResponse) XXX_Merge(src proto.Message)

func (*GetPeerInfoResponse) XXX_Size

func (m *GetPeerInfoResponse) XXX_Size() int

func (*GetPeerInfoResponse) XXX_Unmarshal

func (m *GetPeerInfoResponse) XXX_Unmarshal(b []byte) error

type RpcServiceClient added in v0.1.1

type RpcServiceClient interface {
	RpcCreateWallet(ctx context.Context, in *CreateWalletRequest, opts ...grpc.CallOption) (*CreateWalletResponse, error)
	RpcGetBalance(ctx context.Context, in *GetBalanceRequest, opts ...grpc.CallOption) (*GetBalanceResponse, error)
	RpcSend(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
	RpcGetPeerInfo(ctx context.Context, in *GetPeerInfoRequest, opts ...grpc.CallOption) (*GetPeerInfoResponse, error)
	RpcGetBlockchainInfo(ctx context.Context, in *GetBlockchainInfoRequest, opts ...grpc.CallOption) (*GetBlockchainInfoResponse, error)
}

RpcServiceClient is the client API for RpcService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewRpcServiceClient added in v0.1.1

func NewRpcServiceClient(cc *grpc.ClientConn) RpcServiceClient

type RpcServiceServer added in v0.1.1

RpcServiceServer is the server API for RpcService service.

type SendRequest

type SendRequest struct {
	From                 string   `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                   string   `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount               []byte   `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendRequest) Descriptor

func (*SendRequest) Descriptor() ([]byte, []int)

func (*SendRequest) GetAmount added in v0.1.1

func (m *SendRequest) GetAmount() []byte

func (*SendRequest) GetFrom

func (m *SendRequest) GetFrom() string

func (*SendRequest) GetTo

func (m *SendRequest) GetTo() string

func (*SendRequest) ProtoMessage

func (*SendRequest) ProtoMessage()

func (*SendRequest) Reset

func (m *SendRequest) Reset()

func (*SendRequest) String

func (m *SendRequest) String() string

func (*SendRequest) XXX_DiscardUnknown

func (m *SendRequest) XXX_DiscardUnknown()

func (*SendRequest) XXX_Marshal

func (m *SendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendRequest) XXX_Merge

func (dst *SendRequest) XXX_Merge(src proto.Message)

func (*SendRequest) XXX_Size

func (m *SendRequest) XXX_Size() int

func (*SendRequest) XXX_Unmarshal

func (m *SendRequest) XXX_Unmarshal(b []byte) error

type SendResponse

type SendResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SendResponse) Descriptor

func (*SendResponse) Descriptor() ([]byte, []int)

func (*SendResponse) GetMessage

func (m *SendResponse) GetMessage() string

func (*SendResponse) ProtoMessage

func (*SendResponse) ProtoMessage()

func (*SendResponse) Reset

func (m *SendResponse) Reset()

func (*SendResponse) String

func (m *SendResponse) String() string

func (*SendResponse) XXX_DiscardUnknown

func (m *SendResponse) XXX_DiscardUnknown()

func (*SendResponse) XXX_Marshal

func (m *SendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SendResponse) XXX_Merge

func (dst *SendResponse) XXX_Merge(src proto.Message)

func (*SendResponse) XXX_Size

func (m *SendResponse) XXX_Size() int

func (*SendResponse) XXX_Unmarshal

func (m *SendResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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