Documentation
¶
Index ¶
Constants ¶
View Source
const ServerStringIDBase uint32 = 0x80000000
ServerStringIDBase is the base offset for server-only string IDs to prevent collisions with client string IDs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator generates unique IDs for different namespaces. It is safe for concurrent use.
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a new Generator initialized with starting counter values.
type Namespace ¶
type Namespace uint32
Namespace represents a namespace for generating unique IDs.
const ( // String is the namespace for string IDs. String Namespace = iota // ServerString is the namespace for server-only string IDs. ServerString // FieldSet is the namespace for field set IDs. FieldSet // Struct is the namespace for struct IDs. Struct // TimelinePath is the namespace for timeline path IDs. TimelinePath // TimelineItems is the namespace for timeline items IDs. TimelineItems // TemporaryLog is the namespace for parser-side temporary log IDs. TemporaryLog // Log is the namespace for finalized/serialized log IDs. Log )
Click to show internal directories.
Click to hide internal directories.