proto

package
v0.0.0-...-b4740bb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

proto/gen.proto
proto/word.proto

It has these top-level messages:

GenRequest
GenResponse
WordRequest
WordResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGenSvcServer

func RegisterGenSvcServer(s *grpc.Server, srv GenSvcServer)

func RegisterWordSvcServer

func RegisterWordSvcServer(s *grpc.Server, srv WordSvcServer)

Types

type GenRequest

type GenRequest struct {
	Text  string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
	Limit int32  `protobuf:"varint,2,opt,name=limit" json:"limit,omitempty"`
}

func (*GenRequest) Descriptor

func (*GenRequest) Descriptor() ([]byte, []int)

func (*GenRequest) GetLimit

func (m *GenRequest) GetLimit() int32

func (*GenRequest) GetText

func (m *GenRequest) GetText() string

func (*GenRequest) ProtoMessage

func (*GenRequest) ProtoMessage()

func (*GenRequest) Reset

func (m *GenRequest) Reset()

func (*GenRequest) String

func (m *GenRequest) String() string

type GenResponse

type GenResponse struct {
	Text string `protobuf:"bytes,1,opt,name=text" json:"text,omitempty"`
}

func (*GenResponse) Descriptor

func (*GenResponse) Descriptor() ([]byte, []int)

func (*GenResponse) GetText

func (m *GenResponse) GetText() string

func (*GenResponse) ProtoMessage

func (*GenResponse) ProtoMessage()

func (*GenResponse) Reset

func (m *GenResponse) Reset()

func (*GenResponse) String

func (m *GenResponse) String() string

type GenSvcClient

type GenSvcClient interface {
	Gen(ctx context.Context, in *GenRequest, opts ...grpc.CallOption) (GenSvc_GenClient, error)
}

func NewGenSvcClient

func NewGenSvcClient(cc *grpc.ClientConn) GenSvcClient

type GenSvcServer

type GenSvcServer interface {
	Gen(*GenRequest, GenSvc_GenServer) error
}

type GenSvc_GenClient

type GenSvc_GenClient interface {
	Recv() (*GenResponse, error)
	grpc.ClientStream
}

type GenSvc_GenServer

type GenSvc_GenServer interface {
	Send(*GenResponse) error
	grpc.ServerStream
}

type WordRequest

type WordRequest struct {
}

func (*WordRequest) Descriptor

func (*WordRequest) Descriptor() ([]byte, []int)

func (*WordRequest) ProtoMessage

func (*WordRequest) ProtoMessage()

func (*WordRequest) Reset

func (m *WordRequest) Reset()

func (*WordRequest) String

func (m *WordRequest) String() string

type WordResponse

type WordResponse struct {
	Word string `protobuf:"bytes,1,opt,name=word" json:"word,omitempty"`
}

func (*WordResponse) Descriptor

func (*WordResponse) Descriptor() ([]byte, []int)

func (*WordResponse) GetWord

func (m *WordResponse) GetWord() string

func (*WordResponse) ProtoMessage

func (*WordResponse) ProtoMessage()

func (*WordResponse) Reset

func (m *WordResponse) Reset()

func (*WordResponse) String

func (m *WordResponse) String() string

type WordSvcClient

type WordSvcClient interface {
	GetWord(ctx context.Context, in *WordRequest, opts ...grpc.CallOption) (*WordResponse, error)
}

func NewWordSvcClient

func NewWordSvcClient(cc *grpc.ClientConn) WordSvcClient

type WordSvcServer

type WordSvcServer interface {
	GetWord(context.Context, *WordRequest) (*WordResponse, error)
}

Jump to

Keyboard shortcuts

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