Documentation ¶
Index ¶
- Variables
- func NewSrvInterfaceEndpoints() []*api.Endpoint
- func RegisterSrvInterfaceHandler(s server.Server, hdlr SrvInterfaceHandler, opts ...server.HandlerOption) error
- type Common
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetCommon() *Common
- func (x *Request) GetName() string
- func (x *Request) GetSize() int64
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- type SrvInterfaceHandler
- type SrvInterfaceService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSrvInterfaceHandler ¶
func RegisterSrvInterfaceHandler(s server.Server, hdlr SrvInterfaceHandler, opts ...server.HandlerOption) error
Types ¶
type Common ¶
type Common struct { Contry string `protobuf:"bytes,1,opt,name=contry,proto3" json:"contry,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` // contains filtered or unexported fields }
func (*Common) Descriptor
deprecated
func (*Common) ProtoMessage ¶
func (*Common) ProtoMessage()
func (*Common) ProtoReflect ¶
func (x *Common) ProtoReflect() protoreflect.Message
type Request ¶
type Request struct { Common *Common `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,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 SrvInterfaceHandler ¶
type SrvInterfaceService ¶
type SrvInterfaceService interface { Ping(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) GetInfo(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, error) }
func NewSrvInterfaceService ¶
func NewSrvInterfaceService(name string, c client.Client) SrvInterfaceService
Click to show internal directories.
Click to hide internal directories.