bucket

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 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 Bucket

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

func NewBucket

func NewBucket(opt Options) *Bucket

func (*Bucket) FreeAll added in v0.0.3

func (b *Bucket) FreeAll()

func (*Bucket) Get

func (b *Bucket) Get(key string) (*Token, bool)

type Options

type Options struct {
	Engine engine.Engine
	Burst  uint
}

type Token

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

func (*Token) Free

func (t *Token) Free()

Jump to

Keyboard shortcuts

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