Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterDistributeIdServer(s grpc.ServiceRegistrar, srv DistributeIdServer)
- type DistributeIdClient
- type DistributeIdServer
- type GetDistributeIdReq
- func (*GetDistributeIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetDistributeIdReq) GetCount() int32
- func (*GetDistributeIdReq) ProtoMessage()
- func (x *GetDistributeIdReq) ProtoReflect() protoreflect.Message
- func (x *GetDistributeIdReq) Reset()
- func (x *GetDistributeIdReq) String() string
- type GetDistributeIdRsp
- func (*GetDistributeIdRsp) Descriptor() ([]byte, []int)deprecated
- func (x *GetDistributeIdRsp) GetIds() []int64
- func (*GetDistributeIdRsp) ProtoMessage()
- func (x *GetDistributeIdRsp) ProtoReflect() protoreflect.Message
- func (x *GetDistributeIdRsp) Reset()
- func (x *GetDistributeIdRsp) String() string
- type UnimplementedDistributeIdServer
- type UnsafeDistributeIdServer
Constants ¶
const (
DistributeId_GenerateIds_FullMethodName = "/distributeid.DistributeId/GenerateIds"
)
Variables ¶
var DistributeId_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distributeid.DistributeId", HandlerType: (*DistributeIdServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GenerateIds", Handler: _DistributeId_GenerateIds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "distributeid.proto", }
DistributeId_ServiceDesc is the grpc.ServiceDesc for DistributeId service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_distributeid_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDistributeIdServer ¶
func RegisterDistributeIdServer(s grpc.ServiceRegistrar, srv DistributeIdServer)
Types ¶
type DistributeIdClient ¶
type DistributeIdClient interface {
GenerateIds(ctx context.Context, in *GetDistributeIdReq, opts ...grpc.CallOption) (*GetDistributeIdRsp, error)
}
DistributeIdClient is the client API for DistributeId service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDistributeIdClient ¶
func NewDistributeIdClient(cc grpc.ClientConnInterface) DistributeIdClient
type DistributeIdServer ¶
type DistributeIdServer interface { GenerateIds(context.Context, *GetDistributeIdReq) (*GetDistributeIdRsp, error) // contains filtered or unexported methods }
DistributeIdServer is the server API for DistributeId service. All implementations must embed UnimplementedDistributeIdServer for forward compatibility
type GetDistributeIdReq ¶
type GetDistributeIdReq struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*GetDistributeIdReq) Descriptor
deprecated
func (*GetDistributeIdReq) Descriptor() ([]byte, []int)
Deprecated: Use GetDistributeIdReq.ProtoReflect.Descriptor instead.
func (*GetDistributeIdReq) GetCount ¶
func (x *GetDistributeIdReq) GetCount() int32
func (*GetDistributeIdReq) ProtoMessage ¶
func (*GetDistributeIdReq) ProtoMessage()
func (*GetDistributeIdReq) ProtoReflect ¶
func (x *GetDistributeIdReq) ProtoReflect() protoreflect.Message
func (*GetDistributeIdReq) Reset ¶
func (x *GetDistributeIdReq) Reset()
func (*GetDistributeIdReq) String ¶
func (x *GetDistributeIdReq) String() string
type GetDistributeIdRsp ¶
type GetDistributeIdRsp struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*GetDistributeIdRsp) Descriptor
deprecated
func (*GetDistributeIdRsp) Descriptor() ([]byte, []int)
Deprecated: Use GetDistributeIdRsp.ProtoReflect.Descriptor instead.
func (*GetDistributeIdRsp) GetIds ¶
func (x *GetDistributeIdRsp) GetIds() []int64
func (*GetDistributeIdRsp) ProtoMessage ¶
func (*GetDistributeIdRsp) ProtoMessage()
func (*GetDistributeIdRsp) ProtoReflect ¶
func (x *GetDistributeIdRsp) ProtoReflect() protoreflect.Message
func (*GetDistributeIdRsp) Reset ¶
func (x *GetDistributeIdRsp) Reset()
func (*GetDistributeIdRsp) String ¶
func (x *GetDistributeIdRsp) String() string
type UnimplementedDistributeIdServer ¶
type UnimplementedDistributeIdServer struct { }
UnimplementedDistributeIdServer must be embedded to have forward compatible implementations.
func (UnimplementedDistributeIdServer) GenerateIds ¶
func (UnimplementedDistributeIdServer) GenerateIds(context.Context, *GetDistributeIdReq) (*GetDistributeIdRsp, error)
type UnsafeDistributeIdServer ¶
type UnsafeDistributeIdServer interface {
// contains filtered or unexported methods
}
UnsafeDistributeIdServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DistributeIdServer will result in compilation errors.