memquota

package
v0.0.0-...-062eff5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package memquota provides a simple in-memory quota implementation. It's trivial to set up, but it has various limitations:

- Obviously, the data set must be able to fit in memory.

- When Mixer crashes/restarts, all quota values are erased. This means this isn't good for allocation quotas although it works well enough for rate limits quotas.

- Since the data is all memory-resident and there isn't any cross-node synchronization, this adapter can't be used in an Istio mixer where a single service can be handled by different mixer instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInfo

func GetInfo() adapter.Info

GetInfo returns the Info associated with this adapter implementation.

Types

type Limit

type Limit interface {
	GetMaxAmount() int64
	GetValidDuration() time.Duration
}

Limit is implemented by Quota and Override messages.

Directories

Path Synopsis
Package config is a generated protocol buffer package.
Package config is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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