Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTeapotServer(s grpc.ServiceRegistrar, srv TeapotServer)
- type AmIATeapotRequest
- type AmIATeapotResponse
- func (*AmIATeapotResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AmIATeapotResponse) GetAnswer() bool
- func (*AmIATeapotResponse) ProtoMessage()
- func (x *AmIATeapotResponse) ProtoReflect() protoreflect.Message
- func (x *AmIATeapotResponse) Reset()
- func (x *AmIATeapotResponse) String() string
- type TeapotClient
- type TeapotServer
- type UnimplementedTeapotServer
- type UnsafeTeapotServer
Constants ¶
const (
Teapot_AmIATeapot_FullMethodName = "/sample.Teapot/AmIATeapot"
)
Variables ¶
var File_sample_proto protoreflect.FileDescriptor
var Teapot_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sample.Teapot", HandlerType: (*TeapotServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AmIATeapot", Handler: _Teapot_AmIATeapot_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sample.proto", }
Teapot_ServiceDesc is the grpc.ServiceDesc for Teapot service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTeapotServer ¶
func RegisterTeapotServer(s grpc.ServiceRegistrar, srv TeapotServer)
Types ¶
type AmIATeapotRequest ¶
type AmIATeapotRequest struct {
// contains filtered or unexported fields
}
func (*AmIATeapotRequest) Descriptor
deprecated
func (*AmIATeapotRequest) Descriptor() ([]byte, []int)
Deprecated: Use AmIATeapotRequest.ProtoReflect.Descriptor instead.
func (*AmIATeapotRequest) ProtoMessage ¶
func (*AmIATeapotRequest) ProtoMessage()
func (*AmIATeapotRequest) ProtoReflect ¶
func (x *AmIATeapotRequest) ProtoReflect() protoreflect.Message
func (*AmIATeapotRequest) Reset ¶
func (x *AmIATeapotRequest) Reset()
func (*AmIATeapotRequest) String ¶
func (x *AmIATeapotRequest) String() string
type AmIATeapotResponse ¶
type AmIATeapotResponse struct { Answer bool `protobuf:"varint,1,opt,name=Answer,proto3" json:"Answer,omitempty"` // contains filtered or unexported fields }
func (*AmIATeapotResponse) Descriptor
deprecated
func (*AmIATeapotResponse) Descriptor() ([]byte, []int)
Deprecated: Use AmIATeapotResponse.ProtoReflect.Descriptor instead.
func (*AmIATeapotResponse) GetAnswer ¶
func (x *AmIATeapotResponse) GetAnswer() bool
func (*AmIATeapotResponse) ProtoMessage ¶
func (*AmIATeapotResponse) ProtoMessage()
func (*AmIATeapotResponse) ProtoReflect ¶
func (x *AmIATeapotResponse) ProtoReflect() protoreflect.Message
func (*AmIATeapotResponse) Reset ¶
func (x *AmIATeapotResponse) Reset()
func (*AmIATeapotResponse) String ¶
func (x *AmIATeapotResponse) String() string
type TeapotClient ¶
type TeapotClient interface {
AmIATeapot(ctx context.Context, in *AmIATeapotRequest, opts ...grpc.CallOption) (*AmIATeapotResponse, error)
}
TeapotClient is the client API for Teapot 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 NewTeapotClient ¶
func NewTeapotClient(cc grpc.ClientConnInterface) TeapotClient
type TeapotServer ¶
type TeapotServer interface { AmIATeapot(context.Context, *AmIATeapotRequest) (*AmIATeapotResponse, error) // contains filtered or unexported methods }
TeapotServer is the server API for Teapot service. All implementations must embed UnimplementedTeapotServer for forward compatibility
type UnimplementedTeapotServer ¶
type UnimplementedTeapotServer struct { }
UnimplementedTeapotServer must be embedded to have forward compatible implementations.
func (UnimplementedTeapotServer) AmIATeapot ¶
func (UnimplementedTeapotServer) AmIATeapot(context.Context, *AmIATeapotRequest) (*AmIATeapotResponse, error)
type UnsafeTeapotServer ¶
type UnsafeTeapotServer interface {
// contains filtered or unexported methods
}
UnsafeTeapotServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TeapotServer will result in compilation errors.