Documentation ¶
Index ¶
- func RegisterExampleServiceHandler(s server.Server, hdlr ExampleServiceHandler, opts ...server.HandlerOption) error
- func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
- type ExampleEchoReq
- func (*ExampleEchoReq) Descriptor() ([]byte, []int)
- func (m *ExampleEchoReq) GetData() string
- func (*ExampleEchoReq) ProtoMessage()
- func (m *ExampleEchoReq) Reset()
- func (m *ExampleEchoReq) String() string
- func (m *ExampleEchoReq) Validate() error
- func (m *ExampleEchoReq) XXX_DiscardUnknown()
- func (m *ExampleEchoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleEchoReq) XXX_Merge(src proto.Message)
- func (m *ExampleEchoReq) XXX_Size() int
- func (m *ExampleEchoReq) XXX_Unmarshal(b []byte) error
- type ExampleEchoReqValidationError
- func (e ExampleEchoReqValidationError) Cause() error
- func (e ExampleEchoReqValidationError) Error() string
- func (e ExampleEchoReqValidationError) ErrorName() string
- func (e ExampleEchoReqValidationError) Field() string
- func (e ExampleEchoReqValidationError) Key() bool
- func (e ExampleEchoReqValidationError) Reason() string
- type ExampleEchoRsp
- func (*ExampleEchoRsp) Descriptor() ([]byte, []int)
- func (m *ExampleEchoRsp) GetData() string
- func (*ExampleEchoRsp) ProtoMessage()
- func (m *ExampleEchoRsp) Reset()
- func (m *ExampleEchoRsp) String() string
- func (m *ExampleEchoRsp) Validate() error
- func (m *ExampleEchoRsp) XXX_DiscardUnknown()
- func (m *ExampleEchoRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExampleEchoRsp) XXX_Merge(src proto.Message)
- func (m *ExampleEchoRsp) XXX_Size() int
- func (m *ExampleEchoRsp) XXX_Unmarshal(b []byte) error
- type ExampleEchoRspValidationError
- func (e ExampleEchoRspValidationError) Cause() error
- func (e ExampleEchoRspValidationError) Error() string
- func (e ExampleEchoRspValidationError) ErrorName() string
- func (e ExampleEchoRspValidationError) Field() string
- func (e ExampleEchoRspValidationError) Key() bool
- func (e ExampleEchoRspValidationError) Reason() string
- type ExampleService
- type ExampleServiceClient
- type ExampleServiceHandler
- type ExampleServiceServer
- type UnimplementedExampleServiceServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterExampleServiceHandler ¶
func RegisterExampleServiceHandler(s server.Server, hdlr ExampleServiceHandler, opts ...server.HandlerOption) error
func RegisterExampleServiceServer ¶
func RegisterExampleServiceServer(s *grpc.Server, srv ExampleServiceServer)
Types ¶
type ExampleEchoReq ¶
type ExampleEchoReq struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" xml:"-" xorm:"-"` XXX_unrecognized []byte `json:"-" xml:"-" xorm:"-"` XXX_sizecache int32 `json:"-" xml:"-" xorm:"-"` }
func (*ExampleEchoReq) Descriptor ¶
func (*ExampleEchoReq) Descriptor() ([]byte, []int)
func (*ExampleEchoReq) GetData ¶
func (m *ExampleEchoReq) GetData() string
func (*ExampleEchoReq) ProtoMessage ¶
func (*ExampleEchoReq) ProtoMessage()
func (*ExampleEchoReq) Reset ¶
func (m *ExampleEchoReq) Reset()
func (*ExampleEchoReq) String ¶
func (m *ExampleEchoReq) String() string
func (*ExampleEchoReq) Validate ¶
func (m *ExampleEchoReq) Validate() error
Validate checks the field values on ExampleEchoReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ExampleEchoReq) XXX_DiscardUnknown ¶
func (m *ExampleEchoReq) XXX_DiscardUnknown()
func (*ExampleEchoReq) XXX_Marshal ¶
func (m *ExampleEchoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleEchoReq) XXX_Merge ¶
func (m *ExampleEchoReq) XXX_Merge(src proto.Message)
func (*ExampleEchoReq) XXX_Size ¶
func (m *ExampleEchoReq) XXX_Size() int
func (*ExampleEchoReq) XXX_Unmarshal ¶
func (m *ExampleEchoReq) XXX_Unmarshal(b []byte) error
type ExampleEchoReqValidationError ¶
type ExampleEchoReqValidationError struct {
// contains filtered or unexported fields
}
ExampleEchoReqValidationError is the validation error returned by ExampleEchoReq.Validate if the designated constraints aren't met.
func (ExampleEchoReqValidationError) Cause ¶
func (e ExampleEchoReqValidationError) Cause() error
Cause function returns cause value.
func (ExampleEchoReqValidationError) Error ¶
func (e ExampleEchoReqValidationError) Error() string
Error satisfies the builtin error interface
func (ExampleEchoReqValidationError) ErrorName ¶
func (e ExampleEchoReqValidationError) ErrorName() string
ErrorName returns error name.
func (ExampleEchoReqValidationError) Field ¶
func (e ExampleEchoReqValidationError) Field() string
Field function returns field value.
func (ExampleEchoReqValidationError) Key ¶
func (e ExampleEchoReqValidationError) Key() bool
Key function returns key value.
func (ExampleEchoReqValidationError) Reason ¶
func (e ExampleEchoReqValidationError) Reason() string
Reason function returns reason value.
type ExampleEchoRsp ¶
type ExampleEchoRsp struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" xml:"-" xorm:"-"` XXX_unrecognized []byte `json:"-" xml:"-" xorm:"-"` XXX_sizecache int32 `json:"-" xml:"-" xorm:"-"` }
func (*ExampleEchoRsp) Descriptor ¶
func (*ExampleEchoRsp) Descriptor() ([]byte, []int)
func (*ExampleEchoRsp) GetData ¶
func (m *ExampleEchoRsp) GetData() string
func (*ExampleEchoRsp) ProtoMessage ¶
func (*ExampleEchoRsp) ProtoMessage()
func (*ExampleEchoRsp) Reset ¶
func (m *ExampleEchoRsp) Reset()
func (*ExampleEchoRsp) String ¶
func (m *ExampleEchoRsp) String() string
func (*ExampleEchoRsp) Validate ¶
func (m *ExampleEchoRsp) Validate() error
Validate checks the field values on ExampleEchoRsp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ExampleEchoRsp) XXX_DiscardUnknown ¶
func (m *ExampleEchoRsp) XXX_DiscardUnknown()
func (*ExampleEchoRsp) XXX_Marshal ¶
func (m *ExampleEchoRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExampleEchoRsp) XXX_Merge ¶
func (m *ExampleEchoRsp) XXX_Merge(src proto.Message)
func (*ExampleEchoRsp) XXX_Size ¶
func (m *ExampleEchoRsp) XXX_Size() int
func (*ExampleEchoRsp) XXX_Unmarshal ¶
func (m *ExampleEchoRsp) XXX_Unmarshal(b []byte) error
type ExampleEchoRspValidationError ¶
type ExampleEchoRspValidationError struct {
// contains filtered or unexported fields
}
ExampleEchoRspValidationError is the validation error returned by ExampleEchoRsp.Validate if the designated constraints aren't met.
func (ExampleEchoRspValidationError) Cause ¶
func (e ExampleEchoRspValidationError) Cause() error
Cause function returns cause value.
func (ExampleEchoRspValidationError) Error ¶
func (e ExampleEchoRspValidationError) Error() string
Error satisfies the builtin error interface
func (ExampleEchoRspValidationError) ErrorName ¶
func (e ExampleEchoRspValidationError) ErrorName() string
ErrorName returns error name.
func (ExampleEchoRspValidationError) Field ¶
func (e ExampleEchoRspValidationError) Field() string
Field function returns field value.
func (ExampleEchoRspValidationError) Key ¶
func (e ExampleEchoRspValidationError) Key() bool
Key function returns key value.
func (ExampleEchoRspValidationError) Reason ¶
func (e ExampleEchoRspValidationError) Reason() string
Reason function returns reason value.
type ExampleService ¶
type ExampleService interface {
Echo(ctx context.Context, in *ExampleEchoReq, opts ...client.CallOption) (*ExampleEchoRsp, error)
}
func NewExampleService ¶
func NewExampleService(name string, c client.Client) ExampleService
type ExampleServiceClient ¶
type ExampleServiceClient interface {
Echo(ctx context.Context, in *ExampleEchoReq, opts ...grpc.CallOption) (*ExampleEchoRsp, error)
}
ExampleServiceClient is the client API for ExampleService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleServiceClient ¶
func NewExampleServiceClient(cc *grpc.ClientConn) ExampleServiceClient
type ExampleServiceHandler ¶
type ExampleServiceHandler interface {
Echo(context.Context, *ExampleEchoReq, *ExampleEchoRsp) error
}
type ExampleServiceServer ¶
type ExampleServiceServer interface {
Echo(context.Context, *ExampleEchoReq) (*ExampleEchoRsp, error)
}
ExampleServiceServer is the server API for ExampleService service.
type UnimplementedExampleServiceServer ¶
type UnimplementedExampleServiceServer struct { }
UnimplementedExampleServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServiceServer) Echo ¶
func (*UnimplementedExampleServiceServer) Echo(ctx context.Context, req *ExampleEchoReq) (*ExampleEchoRsp, error)