Documentation
¶
Index ¶
- Variables
- func NewHelloEndpoints() []*api.Endpoint
- func RegisterHelloHandler(s server.Server, hdlr HelloHandler, opts ...server.HandlerOption) error
- type BidiStreamRequest
- type BidiStreamResponse
- func (*BidiStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BidiStreamResponse) GetStroke() int64
- func (*BidiStreamResponse) ProtoMessage()
- func (x *BidiStreamResponse) ProtoReflect() protoreflect.Message
- func (x *BidiStreamResponse) Reset()
- func (x *BidiStreamResponse) String() string
- type CallRequest
- type CallResponse
- type ClientStreamRequest
- func (*ClientStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamRequest) GetStroke() int64
- func (*ClientStreamRequest) ProtoMessage()
- func (x *ClientStreamRequest) ProtoReflect() protoreflect.Message
- func (x *ClientStreamRequest) Reset()
- func (x *ClientStreamRequest) String() string
- type ClientStreamResponse
- func (*ClientStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamResponse) GetCount() int64
- func (*ClientStreamResponse) ProtoMessage()
- func (x *ClientStreamResponse) ProtoReflect() protoreflect.Message
- func (x *ClientStreamResponse) Reset()
- func (x *ClientStreamResponse) String() string
- type HelloHandler
- type HelloService
- type Hello_BidiStreamService
- type Hello_BidiStreamStream
- type Hello_ClientStreamService
- type Hello_ClientStreamStream
- type Hello_ServerStreamService
- type Hello_ServerStreamStream
- type ServerStreamRequest
- func (*ServerStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamRequest) GetCount() int64
- func (*ServerStreamRequest) ProtoMessage()
- func (x *ServerStreamRequest) ProtoReflect() protoreflect.Message
- func (x *ServerStreamRequest) Reset()
- func (x *ServerStreamRequest) String() string
- type ServerStreamResponse
- func (*ServerStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamResponse) GetCount() int64
- func (*ServerStreamResponse) ProtoMessage()
- func (x *ServerStreamResponse) ProtoReflect() protoreflect.Message
- func (x *ServerStreamResponse) Reset()
- func (x *ServerStreamResponse) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_hello_proto protoreflect.FileDescriptor
Functions ¶
func NewHelloEndpoints ¶
func RegisterHelloHandler ¶
func RegisterHelloHandler(s server.Server, hdlr HelloHandler, opts ...server.HandlerOption) error
Types ¶
type BidiStreamRequest ¶
type BidiStreamRequest struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` // contains filtered or unexported fields }
func (*BidiStreamRequest) Descriptor
deprecated
func (*BidiStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use BidiStreamRequest.ProtoReflect.Descriptor instead.
func (*BidiStreamRequest) GetStroke ¶
func (x *BidiStreamRequest) GetStroke() int64
func (*BidiStreamRequest) ProtoMessage ¶
func (*BidiStreamRequest) ProtoMessage()
func (*BidiStreamRequest) ProtoReflect ¶
func (x *BidiStreamRequest) ProtoReflect() protoreflect.Message
func (*BidiStreamRequest) Reset ¶
func (x *BidiStreamRequest) Reset()
func (*BidiStreamRequest) String ¶
func (x *BidiStreamRequest) String() string
type BidiStreamResponse ¶
type BidiStreamResponse struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` // contains filtered or unexported fields }
func (*BidiStreamResponse) Descriptor
deprecated
func (*BidiStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use BidiStreamResponse.ProtoReflect.Descriptor instead.
func (*BidiStreamResponse) GetStroke ¶
func (x *BidiStreamResponse) GetStroke() int64
func (*BidiStreamResponse) ProtoMessage ¶
func (*BidiStreamResponse) ProtoMessage()
func (*BidiStreamResponse) ProtoReflect ¶
func (x *BidiStreamResponse) ProtoReflect() protoreflect.Message
func (*BidiStreamResponse) Reset ¶
func (x *BidiStreamResponse) Reset()
func (*BidiStreamResponse) String ¶
func (x *BidiStreamResponse) String() string
type CallRequest ¶
type CallRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CallRequest) Descriptor
deprecated
func (*CallRequest) Descriptor() ([]byte, []int)
Deprecated: Use CallRequest.ProtoReflect.Descriptor instead.
func (*CallRequest) GetName ¶
func (x *CallRequest) GetName() string
func (*CallRequest) ProtoMessage ¶
func (*CallRequest) ProtoMessage()
func (*CallRequest) ProtoReflect ¶
func (x *CallRequest) ProtoReflect() protoreflect.Message
func (*CallRequest) Reset ¶
func (x *CallRequest) Reset()
func (*CallRequest) String ¶
func (x *CallRequest) String() string
type CallResponse ¶
type CallResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CallResponse) Descriptor
deprecated
func (*CallResponse) Descriptor() ([]byte, []int)
Deprecated: Use CallResponse.ProtoReflect.Descriptor instead.
func (*CallResponse) GetMsg ¶
func (x *CallResponse) GetMsg() string
func (*CallResponse) ProtoMessage ¶
func (*CallResponse) ProtoMessage()
func (*CallResponse) ProtoReflect ¶
func (x *CallResponse) ProtoReflect() protoreflect.Message
func (*CallResponse) Reset ¶
func (x *CallResponse) Reset()
func (*CallResponse) String ¶
func (x *CallResponse) String() string
type ClientStreamRequest ¶
type ClientStreamRequest struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` // contains filtered or unexported fields }
func (*ClientStreamRequest) Descriptor
deprecated
func (*ClientStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamRequest.ProtoReflect.Descriptor instead.
func (*ClientStreamRequest) GetStroke ¶
func (x *ClientStreamRequest) GetStroke() int64
func (*ClientStreamRequest) ProtoMessage ¶
func (*ClientStreamRequest) ProtoMessage()
func (*ClientStreamRequest) ProtoReflect ¶
func (x *ClientStreamRequest) ProtoReflect() protoreflect.Message
func (*ClientStreamRequest) Reset ¶
func (x *ClientStreamRequest) Reset()
func (*ClientStreamRequest) String ¶
func (x *ClientStreamRequest) String() string
type ClientStreamResponse ¶
type ClientStreamResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ClientStreamResponse) Descriptor
deprecated
func (*ClientStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamResponse.ProtoReflect.Descriptor instead.
func (*ClientStreamResponse) GetCount ¶
func (x *ClientStreamResponse) GetCount() int64
func (*ClientStreamResponse) ProtoMessage ¶
func (*ClientStreamResponse) ProtoMessage()
func (*ClientStreamResponse) ProtoReflect ¶
func (x *ClientStreamResponse) ProtoReflect() protoreflect.Message
func (*ClientStreamResponse) Reset ¶
func (x *ClientStreamResponse) Reset()
func (*ClientStreamResponse) String ¶
func (x *ClientStreamResponse) String() string
type HelloHandler ¶
type HelloHandler interface { Call(context.Context, *CallRequest, *CallResponse) error ClientStream(context.Context, Hello_ClientStreamStream) error ServerStream(context.Context, *ServerStreamRequest, Hello_ServerStreamStream) error BidiStream(context.Context, Hello_BidiStreamStream) error }
type HelloService ¶
type HelloService interface { Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error) ClientStream(ctx context.Context, opts ...client.CallOption) (Hello_ClientStreamService, error) ServerStream(ctx context.Context, in *ServerStreamRequest, opts ...client.CallOption) (Hello_ServerStreamService, error) BidiStream(ctx context.Context, opts ...client.CallOption) (Hello_BidiStreamService, error) }
func NewHelloService ¶
func NewHelloService(name string, c client.Client) HelloService
type Hello_BidiStreamService ¶
type Hello_BidiStreamService interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error CloseSend() error Close() error Send(*BidiStreamRequest) error Recv() (*BidiStreamResponse, error) }
type Hello_BidiStreamStream ¶
type Hello_BidiStreamStream interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*BidiStreamResponse) error Recv() (*BidiStreamRequest, error) }
type ServerStreamRequest ¶
type ServerStreamRequest struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ServerStreamRequest) Descriptor
deprecated
func (*ServerStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamRequest.ProtoReflect.Descriptor instead.
func (*ServerStreamRequest) GetCount ¶
func (x *ServerStreamRequest) GetCount() int64
func (*ServerStreamRequest) ProtoMessage ¶
func (*ServerStreamRequest) ProtoMessage()
func (*ServerStreamRequest) ProtoReflect ¶
func (x *ServerStreamRequest) ProtoReflect() protoreflect.Message
func (*ServerStreamRequest) Reset ¶
func (x *ServerStreamRequest) Reset()
func (*ServerStreamRequest) String ¶
func (x *ServerStreamRequest) String() string
type ServerStreamResponse ¶
type ServerStreamResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*ServerStreamResponse) Descriptor
deprecated
func (*ServerStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamResponse.ProtoReflect.Descriptor instead.
func (*ServerStreamResponse) GetCount ¶
func (x *ServerStreamResponse) GetCount() int64
func (*ServerStreamResponse) ProtoMessage ¶
func (*ServerStreamResponse) ProtoMessage()
func (*ServerStreamResponse) ProtoReflect ¶
func (x *ServerStreamResponse) ProtoReflect() protoreflect.Message
func (*ServerStreamResponse) Reset ¶
func (x *ServerStreamResponse) Reset()
func (*ServerStreamResponse) String ¶
func (x *ServerStreamResponse) String() string
Click to show internal directories.
Click to hide internal directories.