Documentation ¶
Index ¶
- Variables
- func NewExampleSrvEndpoints() []*api.Endpoint
- func RegisterExampleSrvHandler(s server.Server, hdlr ExampleSrvHandler, opts ...server.HandlerOption) error
- type ExampleSrvHandler
- type ExampleSrvService
- type ExampleSrv_HelloStreamReplyXService
- type ExampleSrv_HelloStreamReplyXStream
- type ExampleSrv_HelloStreamRequestReplyService
- type ExampleSrv_HelloStreamRequestReplyStream
- type ExampleSrv_HelloStreamRequestXService
- type ExampleSrv_HelloStreamRequestXStream
- type HelloReply
- type HelloRequest
- type HelloStreamReply
- func (*HelloStreamReply) Descriptor() ([]byte, []int)deprecated
- func (x *HelloStreamReply) GetContent() string
- func (x *HelloStreamReply) GetTime() int64
- func (*HelloStreamReply) ProtoMessage()
- func (x *HelloStreamReply) ProtoReflect() protoreflect.Message
- func (x *HelloStreamReply) Reset()
- func (x *HelloStreamReply) String() string
- type HelloStreamRequest
- func (*HelloStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HelloStreamRequest) GetContent() string
- func (x *HelloStreamRequest) GetTime() int64
- func (*HelloStreamRequest) ProtoMessage()
- func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message
- func (x *HelloStreamRequest) Reset()
- func (x *HelloStreamRequest) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_proto protoreflect.FileDescriptor
Functions ¶
func NewExampleSrvEndpoints ¶
NewExampleSrvEndpoints API Endpoints for ExampleSrv service
func RegisterExampleSrvHandler ¶
func RegisterExampleSrvHandler(s server.Server, hdlr ExampleSrvHandler, opts ...server.HandlerOption) error
Types ¶
type ExampleSrvHandler ¶
type ExampleSrvHandler interface { Hello(context.Context, *HelloRequest, *HelloReply) error HelloStreamRequestX(context.Context, ExampleSrv_HelloStreamRequestXStream) error HelloStreamReplyX(context.Context, *HelloStreamRequest, ExampleSrv_HelloStreamReplyXStream) error HelloStreamRequestReply(context.Context, ExampleSrv_HelloStreamRequestReplyStream) error }
ExampleSrvHandler is the server API for ExampleSrv service.
type ExampleSrvService ¶
type ExampleSrvService interface { Hello(ctx context.Context, in *HelloRequest, opts ...client.CallOption) (*HelloReply, error) HelloStreamRequestX(ctx context.Context, opts ...client.CallOption) (ExampleSrv_HelloStreamRequestXService, error) HelloStreamReplyX(ctx context.Context, in *HelloStreamRequest, opts ...client.CallOption) (ExampleSrv_HelloStreamReplyXService, error) HelloStreamRequestReply(ctx context.Context, opts ...client.CallOption) (ExampleSrv_HelloStreamRequestReplyService, error) }
ExampleSrvService is the client API for ExampleSrv service.
func NewExampleSrvService ¶
func NewExampleSrvService(name string, c client.Client) ExampleSrvService
type ExampleSrv_HelloStreamRequestReplyService ¶
type ExampleSrv_HelloStreamRequestReplyService interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*HelloStreamRequest) error Recv() (*HelloStreamReply, error) }
type ExampleSrv_HelloStreamRequestReplyStream ¶
type ExampleSrv_HelloStreamRequestReplyStream interface { Context() context.Context SendMsg(interface{}) error RecvMsg(interface{}) error Close() error Send(*HelloStreamReply) error Recv() (*HelloStreamRequest, error) }
type HelloReply ¶
type HelloReply struct { Welcome string `protobuf:"bytes,1,opt,name=Welcome,proto3" json:"Welcome,omitempty"` Time int64 `protobuf:"varint,2,opt,name=Time,proto3" json:"Time,omitempty"` // contains filtered or unexported fields }
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetTime ¶
func (x *HelloReply) GetTime() int64
func (*HelloReply) GetWelcome ¶
func (x *HelloReply) GetWelcome() string
func (*HelloReply) ProtoMessage ¶
func (*HelloReply) ProtoMessage()
func (*HelloReply) ProtoReflect ¶
func (x *HelloReply) ProtoReflect() protoreflect.Message
func (*HelloReply) Reset ¶
func (x *HelloReply) Reset()
func (*HelloReply) String ¶
func (x *HelloReply) String() string
type HelloRequest ¶
type HelloRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` // contains filtered or unexported fields }
func (*HelloRequest) Descriptor
deprecated
func (*HelloRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
func (*HelloRequest) GetName ¶
func (x *HelloRequest) GetName() string
func (*HelloRequest) ProtoMessage ¶
func (*HelloRequest) ProtoMessage()
func (*HelloRequest) ProtoReflect ¶
func (x *HelloRequest) ProtoReflect() protoreflect.Message
func (*HelloRequest) Reset ¶
func (x *HelloRequest) Reset()
func (*HelloRequest) String ¶
func (x *HelloRequest) String() string
type HelloStreamReply ¶
type HelloStreamReply struct { Time int64 `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"` Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*HelloStreamReply) Descriptor
deprecated
func (*HelloStreamReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloStreamReply.ProtoReflect.Descriptor instead.
func (*HelloStreamReply) GetContent ¶
func (x *HelloStreamReply) GetContent() string
func (*HelloStreamReply) GetTime ¶
func (x *HelloStreamReply) GetTime() int64
func (*HelloStreamReply) ProtoMessage ¶
func (*HelloStreamReply) ProtoMessage()
func (*HelloStreamReply) ProtoReflect ¶
func (x *HelloStreamReply) ProtoReflect() protoreflect.Message
func (*HelloStreamReply) Reset ¶
func (x *HelloStreamReply) Reset()
func (*HelloStreamReply) String ¶
func (x *HelloStreamReply) String() string
type HelloStreamRequest ¶
type HelloStreamRequest struct { Time int64 `protobuf:"varint,1,opt,name=Time,proto3" json:"Time,omitempty"` Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content,omitempty"` // contains filtered or unexported fields }
func (*HelloStreamRequest) Descriptor
deprecated
func (*HelloStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use HelloStreamRequest.ProtoReflect.Descriptor instead.
func (*HelloStreamRequest) GetContent ¶
func (x *HelloStreamRequest) GetContent() string
func (*HelloStreamRequest) GetTime ¶
func (x *HelloStreamRequest) GetTime() int64
func (*HelloStreamRequest) ProtoMessage ¶
func (*HelloStreamRequest) ProtoMessage()
func (*HelloStreamRequest) ProtoReflect ¶
func (x *HelloStreamRequest) ProtoReflect() protoreflect.Message
func (*HelloStreamRequest) Reset ¶
func (x *HelloStreamRequest) Reset()
func (*HelloStreamRequest) String ¶
func (x *HelloStreamRequest) String() string
Click to show internal directories.
Click to hide internal directories.