token

package
v0.0.0-...-90797dc Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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
}

func New

func New(size uint64) *Allocator

func (*Allocator) Alloc

func (a *Allocator) Alloc() Token

type Token

type Token string

func (Token) S

func (t Token) S() string

func (Token) Verify

func (t Token) Verify() *errors.Error

type Type

type Type int
const (
	PRIVATE Type = 1 //专用队列
	PUBLIC  Type = 9 //公共队列
)

Jump to

Keyboard shortcuts

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