limitstore

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrExceededLimit

type ErrExceededLimit struct {
	Limit uint64
}

func (ErrExceededLimit) Error

func (e ErrExceededLimit) Error() string

type LimitStore

type LimitStore struct {
	Storage
	// contains filtered or unexported fields
}

func NewLimitStore

func NewLimitStore(storage Storage, limit uint64) *LimitStore

func (*LimitStore) Put

func (ls *LimitStore) Put(ctx context.Context, key string, data []byte) error

Jump to

Keyboard shortcuts

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