Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_qotd_proto protoreflect.FileDescriptor
var QOTD_ServiceDesc = grpc.ServiceDesc{ ServiceName: "qotd.QOTD", HandlerType: (*QOTDServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetQOTD", Handler: _QOTD_GetQOTD_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "qotd.proto", }
QOTD_ServiceDesc is the grpc.ServiceDesc for QOTD service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQOTDServer ¶
func RegisterQOTDServer(s grpc.ServiceRegistrar, srv QOTDServer)
Types ¶
type GetReq ¶
type GetReq struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` // contains filtered or unexported fields }
func (*GetReq) Descriptor
deprecated
func (*GetReq) ProtoMessage ¶
func (*GetReq) ProtoMessage()
func (*GetReq) ProtoReflect ¶
func (x *GetReq) ProtoReflect() protoreflect.Message
type GetResp ¶
type GetResp struct { Author string `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"` Quote string `protobuf:"bytes,2,opt,name=quote,proto3" json:"quote,omitempty"` // contains filtered or unexported fields }
func (*GetResp) Descriptor
deprecated
func (*GetResp) ProtoMessage ¶
func (*GetResp) ProtoMessage()
func (*GetResp) ProtoReflect ¶
func (x *GetResp) ProtoReflect() protoreflect.Message
type QOTDClient ¶
type QOTDClient interface {
GetQOTD(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*GetResp, error)
}
QOTDClient is the client API for QOTD 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 NewQOTDClient ¶
func NewQOTDClient(cc grpc.ClientConnInterface) QOTDClient
type QOTDServer ¶
type QOTDServer interface { GetQOTD(context.Context, *GetReq) (*GetResp, error) // contains filtered or unexported methods }
QOTDServer is the server API for QOTD service. All implementations must embed UnimplementedQOTDServer for forward compatibility
type UnimplementedQOTDServer ¶
type UnimplementedQOTDServer struct { }
UnimplementedQOTDServer must be embedded to have forward compatible implementations.
type UnsafeQOTDServer ¶
type UnsafeQOTDServer interface {
// contains filtered or unexported methods
}
UnsafeQOTDServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QOTDServer will result in compilation errors.