api

package
v0.0.0-...-5c9bec8 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SeqsvrErrReason_name = map[int32]string{
		0: "ERROR_REASON_UNSPECIFIED",
		1: "SERVICE_PAUSE",
		2: "NOT_FOUND_SEQUENCE",
	}
	SeqsvrErrReason_value = map[string]int32{
		"ERROR_REASON_UNSPECIFIED": 0,
		"SERVICE_PAUSE":            1,
		"NOT_FOUND_SEQUENCE":       2,
	}
)

Enum value maps for SeqsvrErrReason.

View Source
var File_api_common_proto protoreflect.FileDescriptor
View Source
var File_api_segment_proto protoreflect.FileDescriptor
View Source
var File_api_seqsvr_proto protoreflect.FileDescriptor
View Source
var File_api_snowflake_proto protoreflect.FileDescriptor
View Source
var SeqsvrErrReason_code = map[int32]code.Code{
	0: code.Code(0),
	1: code.Code(9),
	2: code.Code(9),
}

Functions

This section is empty.

Types

type AllocClient

type AllocClient interface {
	FetchNext(context.Context, *FetchSeqNextReq) (*UUID, error)
}

type AllocServer

type AllocServer interface {
	FetchNext(context.Context, *FetchSeqNextReq) (*UUID, error)
	UnsafeAllocServer
}

type FetchSegmentNextReq

type FetchSegmentNextReq struct {
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchSegmentNextReq) Descriptor deprecated

func (*FetchSegmentNextReq) Descriptor() ([]byte, []int)

Deprecated: Use FetchSegmentNextReq.ProtoReflect.Descriptor instead.

func (*FetchSegmentNextReq) GetTag

func (x *FetchSegmentNextReq) GetTag() string

func (*FetchSegmentNextReq) ProtoMessage

func (*FetchSegmentNextReq) ProtoMessage()

func (*FetchSegmentNextReq) ProtoReflect

func (x *FetchSegmentNextReq) ProtoReflect() protoreflect.Message

func (*FetchSegmentNextReq) Reset

func (x *FetchSegmentNextReq) Reset()

func (*FetchSegmentNextReq) String

func (x *FetchSegmentNextReq) String() string

type FetchSeqNextReq

type FetchSeqNextReq struct {
	ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

func (*FetchSeqNextReq) Descriptor deprecated

func (*FetchSeqNextReq) Descriptor() ([]byte, []int)

Deprecated: Use FetchSeqNextReq.ProtoReflect.Descriptor instead.

func (*FetchSeqNextReq) GetID

func (x *FetchSeqNextReq) GetID() uint32

func (*FetchSeqNextReq) ProtoMessage

func (*FetchSeqNextReq) ProtoMessage()

func (*FetchSeqNextReq) ProtoReflect

func (x *FetchSeqNextReq) ProtoReflect() protoreflect.Message

func (*FetchSeqNextReq) Reset

func (x *FetchSeqNextReq) Reset()

func (*FetchSeqNextReq) String

func (x *FetchSeqNextReq) String() string

type FetchSnowflakeNextReq

type FetchSnowflakeNextReq struct {
	// contains filtered or unexported fields
}

func (*FetchSnowflakeNextReq) Descriptor deprecated

func (*FetchSnowflakeNextReq) Descriptor() ([]byte, []int)

Deprecated: Use FetchSnowflakeNextReq.ProtoReflect.Descriptor instead.

func (*FetchSnowflakeNextReq) ProtoMessage

func (*FetchSnowflakeNextReq) ProtoMessage()

func (*FetchSnowflakeNextReq) ProtoReflect

func (x *FetchSnowflakeNextReq) ProtoReflect() protoreflect.Message

func (*FetchSnowflakeNextReq) Reset

func (x *FetchSnowflakeNextReq) Reset()

func (*FetchSnowflakeNextReq) String

func (x *FetchSnowflakeNextReq) String() string

type SegmentClient

type SegmentClient interface {
	FetchNext(context.Context, *FetchSegmentNextReq) (*UUID, error)
}

type SegmentServer

type SegmentServer interface {
	FetchNext(context.Context, *FetchSegmentNextReq) (*UUID, error)
	UnsafeSegmentServer
}

type SeqsvrErrReason

type SeqsvrErrReason int32
const (
	// Do not use this default value.
	SeqsvrErrReason_ERROR_REASON_UNSPECIFIED SeqsvrErrReason = 0
	SeqsvrErrReason_SERVICE_PAUSE            SeqsvrErrReason = 1
	SeqsvrErrReason_NOT_FOUND_SEQUENCE       SeqsvrErrReason = 2
)

func (SeqsvrErrReason) Code

func (r SeqsvrErrReason) Code() code.Code

func (SeqsvrErrReason) Descriptor

func (SeqsvrErrReason) Domain

func (r SeqsvrErrReason) Domain() string

func (SeqsvrErrReason) Enum

func (x SeqsvrErrReason) Enum() *SeqsvrErrReason

func (SeqsvrErrReason) EnumDescriptor deprecated

func (SeqsvrErrReason) EnumDescriptor() ([]byte, []int)

Deprecated: Use SeqsvrErrReason.Descriptor instead.

func (SeqsvrErrReason) Number

func (SeqsvrErrReason) Reason

func (r SeqsvrErrReason) Reason() string

func (SeqsvrErrReason) String

func (x SeqsvrErrReason) String() string

func (SeqsvrErrReason) Type

type SnowflakeClient

type SnowflakeClient interface {
	FetchNext(context.Context, *FetchSnowflakeNextReq) (*UUID, error)
}

type SnowflakeServer

type SnowflakeServer interface {
	FetchNext(context.Context, *FetchSnowflakeNextReq) (*UUID, error)
	UnsafeSnowflakeServer
}

type UUID

type UUID struct {
	Val uint64 `protobuf:"varint,1,opt,name=val,proto3" json:"val,omitempty"`
	// contains filtered or unexported fields
}

func (*UUID) Descriptor deprecated

func (*UUID) Descriptor() ([]byte, []int)

Deprecated: Use UUID.ProtoReflect.Descriptor instead.

func (*UUID) GetVal

func (x *UUID) GetVal() uint64

func (*UUID) ProtoMessage

func (*UUID) ProtoMessage()

func (*UUID) ProtoReflect

func (x *UUID) ProtoReflect() protoreflect.Message

func (*UUID) Reset

func (x *UUID) Reset()

func (*UUID) String

func (x *UUID) String() string

type UnimplementedAllocServer

type UnimplementedAllocServer struct {
}

UnimplementedAllocServer must be embedded to have forward compatible implementations.

func (UnimplementedAllocServer) FetchNext

type UnimplementedSegmentServer

type UnimplementedSegmentServer struct {
}

UnimplementedSegmentServer must be embedded to have forward compatible implementations.

func (UnimplementedSegmentServer) FetchNext

type UnimplementedSnowflakeServer

type UnimplementedSnowflakeServer struct {
}

UnimplementedSnowflakeServer must be embedded to have forward compatible implementations.

func (UnimplementedSnowflakeServer) FetchNext

type UnsafeAllocServer

type UnsafeAllocServer interface {
	// contains filtered or unexported methods
}

type UnsafeSegmentServer

type UnsafeSegmentServer interface {
	// contains filtered or unexported methods
}

type UnsafeSnowflakeServer

type UnsafeSnowflakeServer interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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