Documentation ¶
Index ¶
- Variables
- func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
- type GeeterReq
- func (*GeeterReq) Descriptor() ([]byte, []int)
- func (m *GeeterReq) GetUid() int32
- func (m *GeeterReq) Marshal() (dAtA []byte, err error)
- func (m *GeeterReq) MarshalTo(dAtA []byte) (int, error)
- func (*GeeterReq) ProtoMessage()
- func (m *GeeterReq) Reset()
- func (m *GeeterReq) Size() (n int)
- func (m *GeeterReq) String() string
- func (m *GeeterReq) Unmarshal(dAtA []byte) error
- func (m *GeeterReq) XXX_DiscardUnknown()
- func (m *GeeterReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GeeterReq) XXX_Merge(src proto.Message)
- func (m *GeeterReq) XXX_Size() int
- func (m *GeeterReq) XXX_Unmarshal(b []byte) error
- type GreeterClient
- type GreeterResp
- func (*GreeterResp) Descriptor() ([]byte, []int)
- func (m *GreeterResp) GetUid() int32
- func (m *GreeterResp) Marshal() (dAtA []byte, err error)
- func (m *GreeterResp) MarshalTo(dAtA []byte) (int, error)
- func (*GreeterResp) ProtoMessage()
- func (m *GreeterResp) Reset()
- func (m *GreeterResp) Size() (n int)
- func (m *GreeterResp) String() string
- func (m *GreeterResp) Unmarshal(dAtA []byte) error
- func (m *GreeterResp) XXX_DiscardUnknown()
- func (m *GreeterResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GreeterResp) XXX_Merge(src proto.Message)
- func (m *GreeterResp) XXX_Size() int
- func (m *GreeterResp) XXX_Unmarshal(b []byte) error
- type GreeterServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterGreeterServer ¶
func RegisterGreeterServer(s *grpc.Server, srv GreeterServer)
Types ¶
type GeeterReq ¶
type GeeterReq struct { Uid int32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty" form:"uid" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GeeterReq) Descriptor ¶
func (*GeeterReq) ProtoMessage ¶
func (*GeeterReq) ProtoMessage()
func (*GeeterReq) XXX_DiscardUnknown ¶
func (m *GeeterReq) XXX_DiscardUnknown()
func (*GeeterReq) XXX_Marshal ¶
func (*GeeterReq) XXX_Unmarshal ¶
type GreeterClient ¶
type GreeterClient interface { // `method:"POST" internal:"true"` SayHelloInternal(ctx context.Context, in *GeeterReq, opts ...grpc.CallOption) (*GreeterResp, error) SayHello(ctx context.Context, in *GeeterReq, opts ...grpc.CallOption) (*GreeterResp, error) }
GreeterClient is the client API for Greeter service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGreeterClient ¶
func NewGreeterClient(cc *grpc.ClientConn) GreeterClient
type GreeterResp ¶
type GreeterResp struct { Uid int32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GreeterResp) Descriptor ¶
func (*GreeterResp) Descriptor() ([]byte, []int)
func (*GreeterResp) GetUid ¶
func (m *GreeterResp) GetUid() int32
func (*GreeterResp) Marshal ¶
func (m *GreeterResp) Marshal() (dAtA []byte, err error)
func (*GreeterResp) ProtoMessage ¶
func (*GreeterResp) ProtoMessage()
func (*GreeterResp) Reset ¶
func (m *GreeterResp) Reset()
func (*GreeterResp) Size ¶
func (m *GreeterResp) Size() (n int)
func (*GreeterResp) String ¶
func (m *GreeterResp) String() string
func (*GreeterResp) Unmarshal ¶
func (m *GreeterResp) Unmarshal(dAtA []byte) error
func (*GreeterResp) XXX_DiscardUnknown ¶
func (m *GreeterResp) XXX_DiscardUnknown()
func (*GreeterResp) XXX_Marshal ¶
func (m *GreeterResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GreeterResp) XXX_Merge ¶
func (dst *GreeterResp) XXX_Merge(src proto.Message)
func (*GreeterResp) XXX_Size ¶
func (m *GreeterResp) XXX_Size() int
func (*GreeterResp) XXX_Unmarshal ¶
func (m *GreeterResp) XXX_Unmarshal(b []byte) error
type GreeterServer ¶
type GreeterServer interface { // `method:"POST" internal:"true"` SayHelloInternal(context.Context, *GeeterReq) (*GreeterResp, error) SayHello(context.Context, *GeeterReq) (*GreeterResp, error) }
GreeterServer is the server API for Greeter service.
Click to show internal directories.
Click to hide internal directories.