Versions in this module Expand all Collapse all v0 v0.1.0 Jun 15, 2023 Changes in this version + var ErrIntOverflowAutoid = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthAutoid = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupAutoid = fmt.Errorf("proto: unexpected end of group") + func RegisterAutoIDAllocServer(s *grpc.Server, srv AutoIDAllocServer) + type AutoIDAllocClient interface + AllocAutoID func(ctx context.Context, in *AutoIDRequest, opts ...grpc.CallOption) (*AutoIDResponse, error) + Rebase func(ctx context.Context, in *RebaseRequest, opts ...grpc.CallOption) (*RebaseResponse, error) + func NewAutoIDAllocClient(cc *grpc.ClientConn) AutoIDAllocClient + type AutoIDAllocServer interface + AllocAutoID func(context.Context, *AutoIDRequest) (*AutoIDResponse, error) + Rebase func(context.Context, *RebaseRequest) (*RebaseResponse, error) + type AutoIDRequest struct + DbID int64 + Increment int64 + IsUnsigned bool + N uint64 + Offset int64 + TblID int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AutoIDRequest) Descriptor() ([]byte, []int) + func (*AutoIDRequest) ProtoMessage() + func (m *AutoIDRequest) GetDbID() int64 + func (m *AutoIDRequest) GetIncrement() int64 + func (m *AutoIDRequest) GetIsUnsigned() bool + func (m *AutoIDRequest) GetN() uint64 + func (m *AutoIDRequest) GetOffset() int64 + func (m *AutoIDRequest) GetTblID() int64 + func (m *AutoIDRequest) Marshal() (dAtA []byte, err error) + func (m *AutoIDRequest) MarshalTo(dAtA []byte) (int, error) + func (m *AutoIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AutoIDRequest) Reset() + func (m *AutoIDRequest) Size() (n int) + func (m *AutoIDRequest) String() string + func (m *AutoIDRequest) Unmarshal(dAtA []byte) error + func (m *AutoIDRequest) XXX_DiscardUnknown() + func (m *AutoIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AutoIDRequest) XXX_Merge(src proto.Message) + func (m *AutoIDRequest) XXX_Size() int + func (m *AutoIDRequest) XXX_Unmarshal(b []byte) error + type AutoIDResponse struct + Errmsg []byte + Max int64 + Min int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*AutoIDResponse) Descriptor() ([]byte, []int) + func (*AutoIDResponse) ProtoMessage() + func (m *AutoIDResponse) GetErrmsg() []byte + func (m *AutoIDResponse) GetMax() int64 + func (m *AutoIDResponse) GetMin() int64 + func (m *AutoIDResponse) Marshal() (dAtA []byte, err error) + func (m *AutoIDResponse) MarshalTo(dAtA []byte) (int, error) + func (m *AutoIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AutoIDResponse) Reset() + func (m *AutoIDResponse) Size() (n int) + func (m *AutoIDResponse) String() string + func (m *AutoIDResponse) Unmarshal(dAtA []byte) error + func (m *AutoIDResponse) XXX_DiscardUnknown() + func (m *AutoIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AutoIDResponse) XXX_Merge(src proto.Message) + func (m *AutoIDResponse) XXX_Size() int + func (m *AutoIDResponse) XXX_Unmarshal(b []byte) error + type RebaseRequest struct + Base int64 + DbID int64 + Force bool + IsUnsigned bool + TblID int64 + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RebaseRequest) Descriptor() ([]byte, []int) + func (*RebaseRequest) ProtoMessage() + func (m *RebaseRequest) GetBase() int64 + func (m *RebaseRequest) GetDbID() int64 + func (m *RebaseRequest) GetForce() bool + func (m *RebaseRequest) GetIsUnsigned() bool + func (m *RebaseRequest) GetTblID() int64 + func (m *RebaseRequest) Marshal() (dAtA []byte, err error) + func (m *RebaseRequest) MarshalTo(dAtA []byte) (int, error) + func (m *RebaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RebaseRequest) Reset() + func (m *RebaseRequest) Size() (n int) + func (m *RebaseRequest) String() string + func (m *RebaseRequest) Unmarshal(dAtA []byte) error + func (m *RebaseRequest) XXX_DiscardUnknown() + func (m *RebaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RebaseRequest) XXX_Merge(src proto.Message) + func (m *RebaseRequest) XXX_Size() int + func (m *RebaseRequest) XXX_Unmarshal(b []byte) error + type RebaseResponse struct + Errmsg []byte + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RebaseResponse) Descriptor() ([]byte, []int) + func (*RebaseResponse) ProtoMessage() + func (m *RebaseResponse) GetErrmsg() []byte + func (m *RebaseResponse) Marshal() (dAtA []byte, err error) + func (m *RebaseResponse) MarshalTo(dAtA []byte) (int, error) + func (m *RebaseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *RebaseResponse) Reset() + func (m *RebaseResponse) Size() (n int) + func (m *RebaseResponse) String() string + func (m *RebaseResponse) Unmarshal(dAtA []byte) error + func (m *RebaseResponse) XXX_DiscardUnknown() + func (m *RebaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RebaseResponse) XXX_Merge(src proto.Message) + func (m *RebaseResponse) XXX_Size() int + func (m *RebaseResponse) XXX_Unmarshal(b []byte) error + type UnimplementedAutoIDAllocServer struct + func (*UnimplementedAutoIDAllocServer) AllocAutoID(ctx context.Context, req *AutoIDRequest) (*AutoIDResponse, error) + func (*UnimplementedAutoIDAllocServer) Rebase(ctx context.Context, req *RebaseRequest) (*RebaseResponse, error)