Documentation ¶
Index ¶
- Variables
- func RegisterProtobufServiceServer(s *grpc.Server, srv ProtobufServiceServer)
- type Poetry
- func (*Poetry) Descriptor() ([]byte, []int)deprecated
- func (x *Poetry) GetAuthor() string
- func (x *Poetry) GetLinecount() int32
- func (x *Poetry) GetLines() []string
- func (x *Poetry) GetTitle() string
- func (*Poetry) ProtoMessage()
- func (x *Poetry) ProtoReflect() protoreflect.Message
- func (x *Poetry) Reset()
- func (x *Poetry) String() string
- type PoetryList
- type ProtobufServiceClient
- type ProtobufServiceServer
- type RandomPoetriesRequest
- func (*RandomPoetriesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RandomPoetriesRequest) GetNumberOfPoetries() int32
- func (*RandomPoetriesRequest) ProtoMessage()
- func (x *RandomPoetriesRequest) ProtoReflect() protoreflect.Message
- func (x *RandomPoetriesRequest) Reset()
- func (x *RandomPoetriesRequest) String() string
- type UnimplementedProtobufServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_proto_poetry_proto protoreflect.FileDescriptor
Functions ¶
func RegisterProtobufServiceServer ¶
func RegisterProtobufServiceServer(s *grpc.Server, srv ProtobufServiceServer)
Types ¶
type Poetry ¶
type Poetry struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Author string `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"` Lines []string `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"` Linecount int32 `protobuf:"varint,4,opt,name=linecount,proto3" json:"linecount,omitempty"` // contains filtered or unexported fields }
func (*Poetry) Descriptor
deprecated
func (*Poetry) GetLinecount ¶
func (*Poetry) ProtoMessage ¶
func (*Poetry) ProtoMessage()
func (*Poetry) ProtoReflect ¶
func (x *Poetry) ProtoReflect() protoreflect.Message
type PoetryList ¶
type PoetryList struct { List []*Poetry `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PoetryList) Descriptor
deprecated
func (*PoetryList) Descriptor() ([]byte, []int)
Deprecated: Use PoetryList.ProtoReflect.Descriptor instead.
func (*PoetryList) GetList ¶
func (x *PoetryList) GetList() []*Poetry
func (*PoetryList) ProtoMessage ¶
func (*PoetryList) ProtoMessage()
func (*PoetryList) ProtoReflect ¶
func (x *PoetryList) ProtoReflect() protoreflect.Message
func (*PoetryList) Reset ¶
func (x *PoetryList) Reset()
func (*PoetryList) String ¶
func (x *PoetryList) String() string
type ProtobufServiceClient ¶
type ProtobufServiceClient interface {
RandomPoetries(ctx context.Context, in *RandomPoetriesRequest, opts ...grpc.CallOption) (*PoetryList, error)
}
ProtobufServiceClient is the client API for ProtobufService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewProtobufServiceClient ¶
func NewProtobufServiceClient(cc grpc.ClientConnInterface) ProtobufServiceClient
type ProtobufServiceServer ¶
type ProtobufServiceServer interface {
RandomPoetries(context.Context, *RandomPoetriesRequest) (*PoetryList, error)
}
ProtobufServiceServer is the server API for ProtobufService service.
type RandomPoetriesRequest ¶
type RandomPoetriesRequest struct { NumberOfPoetries int32 `protobuf:"varint,1,opt,name=number_of_poetries,json=numberOfPoetries,proto3" json:"number_of_poetries,omitempty"` // contains filtered or unexported fields }
func (*RandomPoetriesRequest) Descriptor
deprecated
func (*RandomPoetriesRequest) Descriptor() ([]byte, []int)
Deprecated: Use RandomPoetriesRequest.ProtoReflect.Descriptor instead.
func (*RandomPoetriesRequest) GetNumberOfPoetries ¶
func (x *RandomPoetriesRequest) GetNumberOfPoetries() int32
func (*RandomPoetriesRequest) ProtoMessage ¶
func (*RandomPoetriesRequest) ProtoMessage()
func (*RandomPoetriesRequest) ProtoReflect ¶
func (x *RandomPoetriesRequest) ProtoReflect() protoreflect.Message
func (*RandomPoetriesRequest) Reset ¶
func (x *RandomPoetriesRequest) Reset()
func (*RandomPoetriesRequest) String ¶
func (x *RandomPoetriesRequest) String() string
type UnimplementedProtobufServiceServer ¶
type UnimplementedProtobufServiceServer struct { }
UnimplementedProtobufServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedProtobufServiceServer) RandomPoetries ¶
func (*UnimplementedProtobufServiceServer) RandomPoetries(context.Context, *RandomPoetriesRequest) (*PoetryList, error)
Click to show internal directories.
Click to hide internal directories.