Documentation
¶
Overview ¶
Package pb is a generated protocol buffer package.
It is generated from these files:
lorem.proto
It has these top-level messages:
LoremRequest LoremResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoremServer ¶
func RegisterLoremServer(s *grpc.Server, srv LoremServer)
Types ¶
type LoremClient ¶
type LoremClient interface {
Lorem(ctx context.Context, in *LoremRequest, opts ...grpc.CallOption) (*LoremResponse, error)
}
func NewLoremClient ¶
func NewLoremClient(cc *grpc.ClientConn) LoremClient
type LoremRequest ¶
type LoremRequest struct { RequestType string `protobuf:"bytes,1,opt,name=requestType" json:"requestType,omitempty"` Min int32 `protobuf:"varint,2,opt,name=min" json:"min,omitempty"` Max int32 `protobuf:"varint,3,opt,name=max" json:"max,omitempty"` }
func (*LoremRequest) Descriptor ¶
func (*LoremRequest) Descriptor() ([]byte, []int)
func (*LoremRequest) GetMax ¶
func (m *LoremRequest) GetMax() int32
func (*LoremRequest) GetMin ¶
func (m *LoremRequest) GetMin() int32
func (*LoremRequest) GetRequestType ¶
func (m *LoremRequest) GetRequestType() string
func (*LoremRequest) ProtoMessage ¶
func (*LoremRequest) ProtoMessage()
func (*LoremRequest) Reset ¶
func (m *LoremRequest) Reset()
func (*LoremRequest) String ¶
func (m *LoremRequest) String() string
type LoremResponse ¶
type LoremResponse struct { Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"` Err string `protobuf:"bytes,2,opt,name=err" json:"err,omitempty"` }
func (*LoremResponse) Descriptor ¶
func (*LoremResponse) Descriptor() ([]byte, []int)
func (*LoremResponse) GetErr ¶
func (m *LoremResponse) GetErr() string
func (*LoremResponse) GetMessage ¶
func (m *LoremResponse) GetMessage() string
func (*LoremResponse) ProtoMessage ¶
func (*LoremResponse) ProtoMessage()
func (*LoremResponse) Reset ¶
func (m *LoremResponse) Reset()
func (*LoremResponse) String ¶
func (m *LoremResponse) String() string
type LoremServer ¶
type LoremServer interface {
Lorem(context.Context, *LoremRequest) (*LoremResponse, error)
}
Click to show internal directories.
Click to hide internal directories.