Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_server_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIdSequenceServiceServer ¶
func RegisterIdSequenceServiceServer(s *grpc.Server, srv IdSequenceServiceServer)
Types ¶
type IdSequenceServiceClient ¶
type IdSequenceServiceClient interface {
Get(ctx context.Context, in *SendRequest, opts ...grpc.CallOption) (*SendResponse, error)
}
IdSequenceServiceClient is the client API for IdSequenceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIdSequenceServiceClient ¶
func NewIdSequenceServiceClient(cc grpc.ClientConnInterface) IdSequenceServiceClient
type IdSequenceServiceServer ¶
type IdSequenceServiceServer interface {
Get(context.Context, *SendRequest) (*SendResponse, error)
}
IdSequenceServiceServer is the server API for IdSequenceService service.
type SendRequest ¶
type SendRequest struct { Biz string `protobuf:"bytes,1,opt,name=biz,proto3" json:"biz,omitempty"` // contains filtered or unexported fields }
func (*SendRequest) Descriptor
deprecated
func (*SendRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendRequest.ProtoReflect.Descriptor instead.
func (*SendRequest) GetBiz ¶
func (x *SendRequest) GetBiz() string
func (*SendRequest) ProtoMessage ¶
func (*SendRequest) ProtoMessage()
func (*SendRequest) ProtoReflect ¶
func (x *SendRequest) ProtoReflect() protoreflect.Message
func (*SendRequest) Reset ¶
func (x *SendRequest) Reset()
func (*SendRequest) String ¶
func (x *SendRequest) String() string
type SendResponse ¶
type SendResponse struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SendResponse) Descriptor
deprecated
func (*SendResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendResponse.ProtoReflect.Descriptor instead.
func (*SendResponse) GetId ¶
func (x *SendResponse) GetId() int64
func (*SendResponse) ProtoMessage ¶
func (*SendResponse) ProtoMessage()
func (*SendResponse) ProtoReflect ¶
func (x *SendResponse) ProtoReflect() protoreflect.Message
func (*SendResponse) Reset ¶
func (x *SendResponse) Reset()
func (*SendResponse) String ¶
func (x *SendResponse) String() string
type UnimplementedIdSequenceServiceServer ¶
type UnimplementedIdSequenceServiceServer struct { }
UnimplementedIdSequenceServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedIdSequenceServiceServer) Get ¶
func (*UnimplementedIdSequenceServiceServer) Get(context.Context, *SendRequest) (*SendResponse, error)
Click to show internal directories.
Click to hide internal directories.