conversion

package
v0.0.0-...-bb6076b Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Url actionType = iota
	Header
	Method
	Source
)

Variables

This section is empty.

Functions

func ToTokenBucket

func ToTokenBucket(policy *policyv1alpha1.RatelimitPolicy) *typev3.TokenBucket

Types

type Converter

func NewLocalConverter

func NewLocalConverter() Converter

type LocalConverter

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

func (*LocalConverter) ToAction

func (*LocalConverter) ToDescriptor

func (*LocalConverter) ToTokenBucket

func (conv *LocalConverter) ToTokenBucket(policy *policyv1alpha1.RatelimitPolicy) *typev3.TokenBucket

Jump to

Keyboard shortcuts

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