Documentation
¶
Overview ¶
Package compactids allocates durable compact protocol identifiers.
Index ¶
- type Allocator
- func (a *Allocator) Compact(ctx context.Context, surface, kind, ref string) (int32, error)
- func (a *Allocator) CompactBatch(ctx context.Context, surface, kind string, refs []string) (map[string]int32, error)
- func (a *Allocator) Resolve(ctx context.Context, surface, kind string, id int32) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allocator ¶
type Allocator struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.