Documentation ¶
Index ¶
- func RegisterBlockchainServer(s *grpc.Server, srv BlockchainServer)
- type BlockchainClient
- type BlockchainServer
- type PayRequest
- func (*PayRequest) Descriptor() ([]byte, []int)
- func (m *PayRequest) GetAmountMicroEth() int64
- func (m *PayRequest) GetFrom() int64
- func (m *PayRequest) GetTo() int64
- func (*PayRequest) ProtoMessage()
- func (m *PayRequest) Reset()
- func (m *PayRequest) String() string
- func (m *PayRequest) XXX_DiscardUnknown()
- func (m *PayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayRequest) XXX_Merge(src proto.Message)
- func (m *PayRequest) XXX_Size() int
- func (m *PayRequest) XXX_Unmarshal(b []byte) error
- type PayResponse
- func (*PayResponse) Descriptor() ([]byte, []int)
- func (*PayResponse) ProtoMessage()
- func (m *PayResponse) Reset()
- func (m *PayResponse) String() string
- func (m *PayResponse) XXX_DiscardUnknown()
- func (m *PayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayResponse) XXX_Merge(src proto.Message)
- func (m *PayResponse) XXX_Size() int
- func (m *PayResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBlockchainServer ¶
func RegisterBlockchainServer(s *grpc.Server, srv BlockchainServer)
Types ¶
type BlockchainClient ¶
type BlockchainClient interface {
Pay(ctx context.Context, in *PayRequest, opts ...grpc.CallOption) (*PayResponse, error)
}
BlockchainClient is the client API for Blockchain service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBlockchainClient ¶
func NewBlockchainClient(cc *grpc.ClientConn) BlockchainClient
type BlockchainServer ¶
type BlockchainServer interface {
Pay(context.Context, *PayRequest) (*PayResponse, error)
}
BlockchainServer is the server API for Blockchain service.
type PayRequest ¶
type PayRequest struct { From int64 `protobuf:"varint,1,opt,name=from,proto3" json:"from,omitempty"` To int64 `protobuf:"varint,2,opt,name=to,proto3" json:"to,omitempty"` AmountMicroEth int64 `protobuf:"varint,3,opt,name=amount_micro_eth,json=amountMicroEth,proto3" json:"amount_micro_eth,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayRequest) Descriptor ¶
func (*PayRequest) Descriptor() ([]byte, []int)
func (*PayRequest) GetAmountMicroEth ¶
func (m *PayRequest) GetAmountMicroEth() int64
func (*PayRequest) GetFrom ¶
func (m *PayRequest) GetFrom() int64
func (*PayRequest) GetTo ¶
func (m *PayRequest) GetTo() int64
func (*PayRequest) ProtoMessage ¶
func (*PayRequest) ProtoMessage()
func (*PayRequest) Reset ¶
func (m *PayRequest) Reset()
func (*PayRequest) String ¶
func (m *PayRequest) String() string
func (*PayRequest) XXX_DiscardUnknown ¶
func (m *PayRequest) XXX_DiscardUnknown()
func (*PayRequest) XXX_Marshal ¶
func (m *PayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayRequest) XXX_Merge ¶
func (m *PayRequest) XXX_Merge(src proto.Message)
func (*PayRequest) XXX_Size ¶
func (m *PayRequest) XXX_Size() int
func (*PayRequest) XXX_Unmarshal ¶
func (m *PayRequest) XXX_Unmarshal(b []byte) error
type PayResponse ¶
type PayResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PayResponse) Descriptor ¶
func (*PayResponse) Descriptor() ([]byte, []int)
func (*PayResponse) ProtoMessage ¶
func (*PayResponse) ProtoMessage()
func (*PayResponse) Reset ¶
func (m *PayResponse) Reset()
func (*PayResponse) String ¶
func (m *PayResponse) String() string
func (*PayResponse) XXX_DiscardUnknown ¶
func (m *PayResponse) XXX_DiscardUnknown()
func (*PayResponse) XXX_Marshal ¶
func (m *PayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayResponse) XXX_Merge ¶
func (m *PayResponse) XXX_Merge(src proto.Message)
func (*PayResponse) XXX_Size ¶
func (m *PayResponse) XXX_Size() int
func (*PayResponse) XXX_Unmarshal ¶
func (m *PayResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.