blockchain

package
v0.0.0-...-14e6c00 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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