Documentation ¶
Index ¶
- Variables
- type GreeterClient
- type GreeterSayHelloClientStreamClient
- type GreeterSayHelloClientStreamServer
- type GreeterSayHelloServerStreamClient
- type GreeterSayHelloServerStreamServer
- type GreeterSayHelloStreamClient
- type GreeterSayHelloStreamServer
- type GreeterServer
- type HelloReply
- type HelloRequest
- type Reason
- func (Reason) Descriptor() protoreflect.EnumDescriptor
- func (r Reason) Domain() string
- func (x Reason) Enum() *Reason
- func (Reason) EnumDescriptor() ([]byte, []int)deprecated
- func (x Reason) Number() protoreflect.EnumNumber
- func (r Reason) Reason() string
- func (x Reason) String() string
- func (Reason) Type() protoreflect.EnumType
- type UnimplementedGreeterServer
- func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
- func (UnimplementedGreeterServer) SayHelloClientStream(GreeterSayHelloClientStreamServer) error
- func (UnimplementedGreeterServer) SayHelloServerStream(*HelloRequest, GreeterSayHelloServerStreamServer) error
- func (UnimplementedGreeterServer) SayHelloStream(GreeterSayHelloStreamServer) error
- type UnsafeGreeterServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Reason_name = map[int32]string{ 0: "ERROR_REASON_UNSPECIFIED", } Reason_value = map[string]int32{ "ERROR_REASON_UNSPECIFIED": 0, } )
Enum value maps for Reason.
View Source
var File_helloword_helloworld_proto protoreflect.FileDescriptor
View Source
var File_helloword_reason_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GreeterClient ¶
type GreeterClient interface { SayHello(context.Context, *HelloRequest) (*HelloReply, error) SayHelloStream(context.Context) (GreeterSayHelloStreamClient, error) SayHelloClientStream(context.Context) (GreeterSayHelloClientStreamClient, error) SayHelloServerStream(context.Context, *HelloRequest) (GreeterSayHelloServerStreamClient, error) }
type GreeterSayHelloClientStreamClient ¶
type GreeterSayHelloClientStreamClient interface { Send(*HelloRequest) error types.ClientStream }
type GreeterSayHelloClientStreamServer ¶
type GreeterSayHelloClientStreamServer interface { SendAndClose(*HelloReply) error Recv() (*HelloRequest, error) types.ServerStream }
type GreeterSayHelloServerStreamClient ¶
type GreeterSayHelloServerStreamClient interface { CloseAndRecv() (*HelloReply, error) Recv() (*HelloReply, error) types.ClientStream }
type GreeterSayHelloServerStreamServer ¶
type GreeterSayHelloServerStreamServer interface { Send(*HelloReply) error types.ServerStream }
type GreeterSayHelloStreamClient ¶
type GreeterSayHelloStreamClient interface { Send(*HelloRequest) error Recv() (*HelloReply, error) types.ClientStream }
type GreeterSayHelloStreamServer ¶
type GreeterSayHelloStreamServer interface { Send(*HelloReply) error Recv() (*HelloRequest, error) types.ServerStream }
type GreeterServer ¶
type GreeterServer interface { SayHello(context.Context, *HelloRequest) (*HelloReply, error) SayHelloStream(GreeterSayHelloStreamServer) error SayHelloClientStream(GreeterSayHelloClientStreamServer) error SayHelloServerStream(*HelloRequest, GreeterSayHelloServerStreamServer) error UnsafeGreeterServer }
type HelloReply ¶
type HelloReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*HelloReply) Descriptor
deprecated
func (*HelloReply) Descriptor() ([]byte, []int)
Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
func (*HelloReply) GetMessage ¶
func (x *HelloReply) GetMessage() 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 Reason ¶
type Reason int32
const ( // Do not use this default value. Reason_ERROR_REASON_UNSPECIFIED Reason = 0 )
func (Reason) Descriptor ¶
func (Reason) Descriptor() protoreflect.EnumDescriptor
func (Reason) EnumDescriptor
deprecated
func (Reason) Number ¶
func (x Reason) Number() protoreflect.EnumNumber
func (Reason) Type ¶
func (Reason) Type() protoreflect.EnumType
type UnimplementedGreeterServer ¶
type UnimplementedGreeterServer struct { }
UnimplementedGreeterServer must be embedded to have forward compatible implementations.
func (UnimplementedGreeterServer) SayHello ¶
func (UnimplementedGreeterServer) SayHello(context.Context, *HelloRequest) (*HelloReply, error)
func (UnimplementedGreeterServer) SayHelloClientStream ¶
func (UnimplementedGreeterServer) SayHelloClientStream(GreeterSayHelloClientStreamServer) error
func (UnimplementedGreeterServer) SayHelloServerStream ¶
func (UnimplementedGreeterServer) SayHelloServerStream(*HelloRequest, GreeterSayHelloServerStreamServer) error
func (UnimplementedGreeterServer) SayHelloStream ¶
func (UnimplementedGreeterServer) SayHelloStream(GreeterSayHelloStreamServer) error
type UnsafeGreeterServer ¶
type UnsafeGreeterServer interface {
// contains filtered or unexported methods
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.