pb

package
v0.0.0-...-bfcc399 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

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)
}

LoremClient is the client API for Lorem service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLoremClient

func NewLoremClient(cc grpc.ClientConnInterface) LoremClient

type LoremRequest

type LoremRequest struct {
	RequestType          string   `protobuf:"bytes,1,opt,name=requestType,proto3" json:"requestType,omitempty"`
	Min                  int32    `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"`
	Max                  int32    `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*LoremRequest) XXX_DiscardUnknown

func (m *LoremRequest) XXX_DiscardUnknown()

func (*LoremRequest) XXX_Marshal

func (m *LoremRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoremRequest) XXX_Merge

func (m *LoremRequest) XXX_Merge(src proto.Message)

func (*LoremRequest) XXX_Size

func (m *LoremRequest) XXX_Size() int

func (*LoremRequest) XXX_Unmarshal

func (m *LoremRequest) XXX_Unmarshal(b []byte) error

type LoremResponse

type LoremResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Err                  string   `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

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

func (*LoremResponse) XXX_DiscardUnknown

func (m *LoremResponse) XXX_DiscardUnknown()

func (*LoremResponse) XXX_Marshal

func (m *LoremResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LoremResponse) XXX_Merge

func (m *LoremResponse) XXX_Merge(src proto.Message)

func (*LoremResponse) XXX_Size

func (m *LoremResponse) XXX_Size() int

func (*LoremResponse) XXX_Unmarshal

func (m *LoremResponse) XXX_Unmarshal(b []byte) error

type LoremServer

type LoremServer interface {
	Lorem(context.Context, *LoremRequest) (*LoremResponse, error)
}

LoremServer is the server API for Lorem service.

type UnimplementedLoremServer

type UnimplementedLoremServer struct {
}

UnimplementedLoremServer can be embedded to have forward compatible implementations.

func (*UnimplementedLoremServer) Lorem

Jump to

Keyboard shortcuts

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