qotd

package
v0.0.0-...-3736fb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use GetReq.ProtoReflect.Descriptor instead.

func (*GetReq) GetAuthor

func (x *GetReq) GetAuthor() string

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) ProtoReflect

func (x *GetReq) ProtoReflect() protoreflect.Message

func (*GetReq) Reset

func (x *GetReq) Reset()

func (*GetReq) String

func (x *GetReq) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use GetResp.ProtoReflect.Descriptor instead.

func (*GetResp) GetAuthor

func (x *GetResp) GetAuthor() string

func (*GetResp) GetQuote

func (x *GetResp) GetQuote() string

func (*GetResp) ProtoMessage

func (*GetResp) ProtoMessage()

func (*GetResp) ProtoReflect

func (x *GetResp) ProtoReflect() protoreflect.Message

func (*GetResp) Reset

func (x *GetResp) Reset()

func (*GetResp) String

func (x *GetResp) String() string

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.

func (UnimplementedQOTDServer) GetQOTD

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL