Documentation ¶
Index ¶
- Variables
- func NewMicrouserEndpoints() []*api.Endpoint
- func RegisterMicrouserHandler(s server.Server, hdlr MicrouserHandler, opts ...server.HandlerOption) error
- type Message
- type MicrouserHandler
- type MicrouserService
- type Microuser_PingPongService
- type Microuser_PingPongStream
- type Microuser_StreamService
- type Microuser_StreamStream
- type Ping
- type Pong
- type Request
- type Response
- type StreamingRequest
- type StreamingResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_microuser_microuser_proto protoreflect.FileDescriptor
Functions ¶
func NewMicrouserEndpoints ¶
func RegisterMicrouserHandler ¶
func RegisterMicrouserHandler(s server.Server, hdlr MicrouserHandler, opts ...server.HandlerOption) error
Types ¶
type Message ¶
type Message struct { Say string `protobuf:"bytes,1,opt,name=say,proto3" json:"say,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MicrouserHandler ¶
type MicrouserHandler interface { Call(context.Context, *Request, *Response) error Stream(context.Context, *StreamingRequest, Microuser_StreamStream) error PingPong(context.Context, Microuser_PingPongStream) error }
type MicrouserService ¶
type MicrouserService interface { Call(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (Microuser_StreamService, error) PingPong(ctx context.Context, opts ...client.CallOption) (Microuser_PingPongService, error) }
func NewMicrouserService ¶
func NewMicrouserService(name string, c client.Client) MicrouserService
type Microuser_StreamService ¶
type Microuser_StreamStream ¶
type Ping ¶
type Ping struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` // contains filtered or unexported fields }
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct { Stroke int64 `protobuf:"varint,1,opt,name=stroke,proto3" json:"stroke,omitempty"` // contains filtered or unexported fields }
func (*Pong) Descriptor
deprecated
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type StreamingRequest ¶
type StreamingRequest struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*StreamingRequest) Descriptor
deprecated
func (*StreamingRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamingRequest.ProtoReflect.Descriptor instead.
func (*StreamingRequest) GetCount ¶
func (x *StreamingRequest) GetCount() int64
func (*StreamingRequest) ProtoMessage ¶
func (*StreamingRequest) ProtoMessage()
func (*StreamingRequest) ProtoReflect ¶
func (x *StreamingRequest) ProtoReflect() protoreflect.Message
func (*StreamingRequest) Reset ¶
func (x *StreamingRequest) Reset()
func (*StreamingRequest) String ¶
func (x *StreamingRequest) String() string
type StreamingResponse ¶
type StreamingResponse struct { Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*StreamingResponse) Descriptor
deprecated
func (*StreamingResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamingResponse.ProtoReflect.Descriptor instead.
func (*StreamingResponse) GetCount ¶
func (x *StreamingResponse) GetCount() int64
func (*StreamingResponse) ProtoMessage ¶
func (*StreamingResponse) ProtoMessage()
func (*StreamingResponse) ProtoReflect ¶
func (x *StreamingResponse) ProtoReflect() protoreflect.Message
func (*StreamingResponse) Reset ¶
func (x *StreamingResponse) Reset()
func (*StreamingResponse) String ¶
func (x *StreamingResponse) String() string
Click to show internal directories.
Click to hide internal directories.