Documentation ¶
Index ¶
- Variables
- func NewMicroV3ServiceEndpoints() []*api.Endpoint
- func RegisterMicroV3ServiceHandler(s server.Server, hdlr MicroV3ServiceHandler, opts ...server.HandlerOption) error
- type CallRequest
- type CallResponse
- type Message
- type MicroV3Service
- type MicroV3ServiceHandler
- type MicroV3Service_PingPongService
- type MicroV3Service_PingPongStream
- type MicroV3Service_StreamService
- type MicroV3Service_StreamStream
- type Ping
- type Pong
- type StreamingRequest
- type StreamingResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var File_idl_micro_v3_proto protoreflect.FileDescriptor
Functions ¶
func RegisterMicroV3ServiceHandler ¶
func RegisterMicroV3ServiceHandler(s server.Server, hdlr MicroV3ServiceHandler, opts ...server.HandlerOption) error
Types ¶
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 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 MicroV3Service ¶
type MicroV3Service interface { Call(ctx context.Context, in *CallRequest, opts ...client.CallOption) (*CallResponse, error) Stream(ctx context.Context, in *StreamingRequest, opts ...client.CallOption) (MicroV3Service_StreamService, error) PingPong(ctx context.Context, opts ...client.CallOption) (MicroV3Service_PingPongService, error) }
func NewMicroV3Service ¶
func NewMicroV3Service(name string, c client.Client) MicroV3Service
type MicroV3ServiceHandler ¶
type MicroV3ServiceHandler interface { Call(context.Context, *CallRequest, *CallResponse) error Stream(context.Context, *StreamingRequest, MicroV3Service_StreamStream) error PingPong(context.Context, MicroV3Service_PingPongStream) error }
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 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.