Documentation ¶
Index ¶
- func RegisterGatewayServer(s *grpc.Server, srv GatewayServer)
- type GatewayClient
- type GatewayServer
- type TxRequest
- func (*TxRequest) Descriptor() ([]byte, []int)
- func (m *TxRequest) GetMessage() string
- func (*TxRequest) ProtoMessage()
- func (m *TxRequest) Reset()
- func (m *TxRequest) String() string
- func (m *TxRequest) XXX_DiscardUnknown()
- func (m *TxRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxRequest) XXX_Merge(src proto.Message)
- func (m *TxRequest) XXX_Size() int
- func (m *TxRequest) XXX_Unmarshal(b []byte) error
- type TxResponse
- func (*TxResponse) Descriptor() ([]byte, []int)
- func (m *TxResponse) GetMessage() string
- func (*TxResponse) ProtoMessage()
- func (m *TxResponse) Reset()
- func (m *TxResponse) String() string
- func (m *TxResponse) XXX_DiscardUnknown()
- func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxResponse) XXX_Merge(src proto.Message)
- func (m *TxResponse) XXX_Size() int
- func (m *TxResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedGatewayServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGatewayServer ¶
func RegisterGatewayServer(s *grpc.Server, srv GatewayServer)
Types ¶
type GatewayClient ¶
type GatewayClient interface {
Transaction(ctx context.Context, in *TxRequest, opts ...grpc.CallOption) (*TxResponse, error)
}
GatewayClient is the client API for Gateway service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGatewayClient ¶
func NewGatewayClient(cc *grpc.ClientConn) GatewayClient
type GatewayServer ¶
type GatewayServer interface {
Transaction(context.Context, *TxRequest) (*TxResponse, error)
}
GatewayServer is the server API for Gateway service.
type TxRequest ¶
type TxRequest 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 (*TxRequest) Descriptor ¶
func (*TxRequest) GetMessage ¶
func (*TxRequest) ProtoMessage ¶
func (*TxRequest) ProtoMessage()
func (*TxRequest) XXX_DiscardUnknown ¶
func (m *TxRequest) XXX_DiscardUnknown()
func (*TxRequest) XXX_Marshal ¶
func (*TxRequest) XXX_Unmarshal ¶
type TxResponse ¶
type TxResponse 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 (*TxResponse) Descriptor ¶
func (*TxResponse) Descriptor() ([]byte, []int)
func (*TxResponse) GetMessage ¶
func (m *TxResponse) GetMessage() string
func (*TxResponse) ProtoMessage ¶
func (*TxResponse) ProtoMessage()
func (*TxResponse) Reset ¶
func (m *TxResponse) Reset()
func (*TxResponse) String ¶
func (m *TxResponse) String() string
func (*TxResponse) XXX_DiscardUnknown ¶
func (m *TxResponse) XXX_DiscardUnknown()
func (*TxResponse) XXX_Marshal ¶
func (m *TxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TxResponse) XXX_Merge ¶
func (m *TxResponse) XXX_Merge(src proto.Message)
func (*TxResponse) XXX_Size ¶
func (m *TxResponse) XXX_Size() int
func (*TxResponse) XXX_Unmarshal ¶
func (m *TxResponse) XXX_Unmarshal(b []byte) error
type UnimplementedGatewayServer ¶
type UnimplementedGatewayServer struct { }
UnimplementedGatewayServer can be embedded to have forward compatible implementations.
func (*UnimplementedGatewayServer) Transaction ¶
func (*UnimplementedGatewayServer) Transaction(ctx context.Context, req *TxRequest) (*TxResponse, error)
Click to show internal directories.
Click to hide internal directories.