Documentation ¶
Index ¶
- Variables
- func RegisterHelloServerServer(s *grpc.Server, srv HelloServerServer)
- type HelloRequest
- func (*HelloRequest) Descriptor() ([]byte, []int)
- func (m *HelloRequest) Marshal() (dAtA []byte, err error)
- func (m *HelloRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloRequest) ProtoMessage()
- func (m *HelloRequest) Reset()
- func (m *HelloRequest) Size() (n int)
- func (m *HelloRequest) String() string
- func (m *HelloRequest) Unmarshal(dAtA []byte) error
- func (m *HelloRequest) XXX_DiscardUnknown()
- func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloRequest) XXX_Merge(src proto.Message)
- func (m *HelloRequest) XXX_Size() int
- func (m *HelloRequest) XXX_Unmarshal(b []byte) error
- type HelloResponse
- func (*HelloResponse) Descriptor() ([]byte, []int)
- func (m *HelloResponse) Marshal() (dAtA []byte, err error)
- func (m *HelloResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *HelloResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HelloResponse) ProtoMessage()
- func (m *HelloResponse) Reset()
- func (m *HelloResponse) Size() (n int)
- func (m *HelloResponse) String() string
- func (m *HelloResponse) Unmarshal(dAtA []byte) error
- func (m *HelloResponse) XXX_DiscardUnknown()
- func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HelloResponse) XXX_Merge(src proto.Message)
- func (m *HelloResponse) XXX_Size() int
- func (m *HelloResponse) XXX_Unmarshal(b []byte) error
- type HelloServerClient
- type HelloServerServer
- type InternalHeader
- func (*InternalHeader) Descriptor() ([]byte, []int)
- func (m *InternalHeader) Marshal() (dAtA []byte, err error)
- func (m *InternalHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *InternalHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InternalHeader) ProtoMessage()
- func (m *InternalHeader) Reset()
- func (m *InternalHeader) Size() (n int)
- func (m *InternalHeader) String() string
- func (m *InternalHeader) Unmarshal(dAtA []byte) error
- func (m *InternalHeader) XXX_DiscardUnknown()
- func (m *InternalHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InternalHeader) XXX_Merge(src proto.Message)
- func (m *InternalHeader) XXX_Size() int
- func (m *InternalHeader) XXX_Unmarshal(b []byte) error
- type InternalResponse
- func (*InternalResponse) Descriptor() ([]byte, []int)
- func (m *InternalResponse) Marshal() (dAtA []byte, err error)
- func (m *InternalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *InternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*InternalResponse) ProtoMessage()
- func (m *InternalResponse) Reset()
- func (m *InternalResponse) Size() (n int)
- func (m *InternalResponse) String() string
- func (m *InternalResponse) Unmarshal(dAtA []byte) error
- func (m *InternalResponse) XXX_DiscardUnknown()
- func (m *InternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *InternalResponse) XXX_Merge(src proto.Message)
- func (m *InternalResponse) XXX_Size() int
- func (m *InternalResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedHelloServerServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterHelloServerServer ¶
func RegisterHelloServerServer(s *grpc.Server, srv HelloServerServer)
Types ¶
type HelloRequest ¶
type HelloRequest struct { Head *InternalHeader `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name1" validate:"required"` Age int32 `protobuf:"varint,3,opt,name=age,proto3" json:"age,omitempty" validate:"min=0"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloRequest) Descriptor ¶
func (*HelloRequest) Descriptor() ([]byte, []int)
func (*HelloRequest) Marshal ¶
func (m *HelloRequest) Marshal() (dAtA []byte, err error)
func (*HelloRequest) MarshalToSizedBuffer ¶
func (m *HelloRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) Reset ¶
func (m *HelloRequest) Reset()
func (*HelloRequest) Size ¶
func (m *HelloRequest) Size() (n int)
func (*HelloRequest) String ¶
func (m *HelloRequest) String() string
func (*HelloRequest) Unmarshal ¶
func (m *HelloRequest) Unmarshal(dAtA []byte) error
func (*HelloRequest) XXX_DiscardUnknown ¶
func (m *HelloRequest) XXX_DiscardUnknown()
func (*HelloRequest) XXX_Marshal ¶
func (m *HelloRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloRequest) XXX_Merge ¶
func (m *HelloRequest) XXX_Merge(src proto.Message)
func (*HelloRequest) XXX_Size ¶
func (m *HelloRequest) XXX_Size() int
func (*HelloRequest) XXX_Unmarshal ¶
func (m *HelloRequest) XXX_Unmarshal(b []byte) error
type HelloResponse ¶
type HelloResponse struct { Head *InternalResponse `protobuf:"bytes,1,opt,name=head,proto3" json:"head,omitempty"` NameEn string `protobuf:"bytes,2,opt,name=name_en,json=nameEn,proto3" json:"name_en,omitempty"` AgeEn int32 `protobuf:"varint,3,opt,name=age_en,json=ageEn,proto3" json:"age_en,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*HelloResponse) Descriptor ¶
func (*HelloResponse) Descriptor() ([]byte, []int)
func (*HelloResponse) Marshal ¶
func (m *HelloResponse) Marshal() (dAtA []byte, err error)
func (*HelloResponse) MarshalToSizedBuffer ¶
func (m *HelloResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HelloResponse) ProtoMessage ¶
func (*HelloResponse) ProtoMessage()
func (*HelloResponse) Reset ¶
func (m *HelloResponse) Reset()
func (*HelloResponse) Size ¶
func (m *HelloResponse) Size() (n int)
func (*HelloResponse) String ¶
func (m *HelloResponse) String() string
func (*HelloResponse) Unmarshal ¶
func (m *HelloResponse) Unmarshal(dAtA []byte) error
func (*HelloResponse) XXX_DiscardUnknown ¶
func (m *HelloResponse) XXX_DiscardUnknown()
func (*HelloResponse) XXX_Marshal ¶
func (m *HelloResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HelloResponse) XXX_Merge ¶
func (m *HelloResponse) XXX_Merge(src proto.Message)
func (*HelloResponse) XXX_Size ¶
func (m *HelloResponse) XXX_Size() int
func (*HelloResponse) XXX_Unmarshal ¶
func (m *HelloResponse) XXX_Unmarshal(b []byte) error
type HelloServerClient ¶
type HelloServerClient interface {
SayGoodbye(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloResponse, error)
}
HelloServerClient is the client API for HelloServer service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewHelloServerClient ¶
func NewHelloServerClient(cc *grpc.ClientConn) HelloServerClient
type HelloServerServer ¶
type HelloServerServer interface {
SayGoodbye(context.Context, *HelloRequest) (*HelloResponse, error)
}
HelloServerServer is the server API for HelloServer service.
type InternalHeader ¶
type InternalHeader struct { AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` TermNo string `protobuf:"bytes,2,opt,name=term_no,json=termNo,proto3" json:"term_no,omitempty"` MerchNo string `protobuf:"bytes,3,opt,name=merch_no,json=merchNo,proto3" json:"merch_no,omitempty"` DstSysId string `protobuf:"bytes,4,opt,name=dst_sys_id,json=dstSysId,proto3" json:"dst_sys_id,omitempty"` SrcSysId string `protobuf:"bytes,5,opt,name=src_sys_id,json=srcSysId,proto3" json:"src_sys_id,omitempty"` ProdCd string `protobuf:"bytes,6,opt,name=prod_cd,json=prodCd,proto3" json:"prod_cd,omitempty"` TranCd string `protobuf:"bytes,7,opt,name=tran_cd,json=tranCd,proto3" json:"tran_cd,omitempty"` TranSeq string `protobuf:"bytes,8,opt,name=tran_seq,json=tranSeq,proto3" json:"tran_seq,omitempty"` TraceId string `protobuf:"bytes,9,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InternalHeader) Descriptor ¶
func (*InternalHeader) Descriptor() ([]byte, []int)
func (*InternalHeader) Marshal ¶
func (m *InternalHeader) Marshal() (dAtA []byte, err error)
func (*InternalHeader) MarshalToSizedBuffer ¶
func (m *InternalHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InternalHeader) ProtoMessage ¶
func (*InternalHeader) ProtoMessage()
func (*InternalHeader) Reset ¶
func (m *InternalHeader) Reset()
func (*InternalHeader) Size ¶
func (m *InternalHeader) Size() (n int)
func (*InternalHeader) String ¶
func (m *InternalHeader) String() string
func (*InternalHeader) Unmarshal ¶
func (m *InternalHeader) Unmarshal(dAtA []byte) error
func (*InternalHeader) XXX_DiscardUnknown ¶
func (m *InternalHeader) XXX_DiscardUnknown()
func (*InternalHeader) XXX_Marshal ¶
func (m *InternalHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InternalHeader) XXX_Merge ¶
func (m *InternalHeader) XXX_Merge(src proto.Message)
func (*InternalHeader) XXX_Size ¶
func (m *InternalHeader) XXX_Size() int
func (*InternalHeader) XXX_Unmarshal ¶
func (m *InternalHeader) XXX_Unmarshal(b []byte) error
type InternalResponse ¶
type InternalResponse struct { RespCode string `protobuf:"bytes,1,opt,name=resp_code,json=respCode,proto3" json:"resp_code,omitempty"` RespMsg string `protobuf:"bytes,2,opt,name=resp_msg,json=respMsg,proto3" json:"resp_msg,omitempty"` TranCd string `protobuf:"bytes,3,opt,name=tran_cd,json=tranCd,proto3" json:"tran_cd,omitempty"` TranSeq string `protobuf:"bytes,4,opt,name=tran_seq,json=tranSeq,proto3" json:"tran_seq,omitempty"` TradeNo string `protobuf:"bytes,5,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"` TraceId string `protobuf:"bytes,6,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InternalResponse) Descriptor ¶
func (*InternalResponse) Descriptor() ([]byte, []int)
func (*InternalResponse) Marshal ¶
func (m *InternalResponse) Marshal() (dAtA []byte, err error)
func (*InternalResponse) MarshalToSizedBuffer ¶
func (m *InternalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*InternalResponse) ProtoMessage ¶
func (*InternalResponse) ProtoMessage()
func (*InternalResponse) Reset ¶
func (m *InternalResponse) Reset()
func (*InternalResponse) Size ¶
func (m *InternalResponse) Size() (n int)
func (*InternalResponse) String ¶
func (m *InternalResponse) String() string
func (*InternalResponse) Unmarshal ¶
func (m *InternalResponse) Unmarshal(dAtA []byte) error
func (*InternalResponse) XXX_DiscardUnknown ¶
func (m *InternalResponse) XXX_DiscardUnknown()
func (*InternalResponse) XXX_Marshal ¶
func (m *InternalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InternalResponse) XXX_Merge ¶
func (m *InternalResponse) XXX_Merge(src proto.Message)
func (*InternalResponse) XXX_Size ¶
func (m *InternalResponse) XXX_Size() int
func (*InternalResponse) XXX_Unmarshal ¶
func (m *InternalResponse) XXX_Unmarshal(b []byte) error
type UnimplementedHelloServerServer ¶
type UnimplementedHelloServerServer struct { }
UnimplementedHelloServerServer can be embedded to have forward compatible implementations.
func (*UnimplementedHelloServerServer) SayGoodbye ¶
func (*UnimplementedHelloServerServer) SayGoodbye(ctx context.Context, req *HelloRequest) (*HelloResponse, error)
Click to show internal directories.
Click to hide internal directories.