Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_greeter_proto protoreflect.FileDescriptor
Functions ¶
func RegisterSayServer ¶
Types ¶
type Meta ¶
type Meta struct { Session int64 `protobuf:"varint,1,opt,name=session,proto3" json:"session,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) GetSession ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) 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"` Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,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 SayClient ¶
type SayClient interface {
Hello(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
SayClient is the client API for Say service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSayClient ¶
func NewSayClient(cc grpc.ClientConnInterface) SayClient
type SayServer ¶
type SayServer interface { Hello(context.Context, *Request) (*Response, error) // contains filtered or unexported methods }
SayServer is the server API for Say service. All implementations must embed UnimplementedSayServer for forward compatibility
type UnimplementedSayServer ¶
type UnimplementedSayServer struct { }
UnimplementedSayServer must be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.