poetry

package
v0.0.0-...-3e9bda6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Deprecated: Use Poetry.ProtoReflect.Descriptor instead.

func (*Poetry) GetAuthor

func (x *Poetry) GetAuthor() string

func (*Poetry) GetLinecount

func (x *Poetry) GetLinecount() int32

func (*Poetry) GetLines

func (x *Poetry) GetLines() []string

func (*Poetry) GetTitle

func (x *Poetry) GetTitle() string

func (*Poetry) ProtoMessage

func (*Poetry) ProtoMessage()

func (*Poetry) ProtoReflect

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

func (*Poetry) Reset

func (x *Poetry) Reset()

func (*Poetry) String

func (x *Poetry) String() string

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.

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

Jump to

Keyboard shortcuts

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