router

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(handler *handler.Handler, clientset *kubernetes.Clientset, logger logr.Logger, opts ...Option) http.Handler

Types

type Option

type Option func(*Options)

func WithCompressLevel

func WithCompressLevel(level int) Option

func WithKubernetesAuth added in v0.0.2

func WithKubernetesAuth(auth bool, trusted *kubernetesauth.Trusted) Option

func WithRateLimit

func WithRateLimit(requests int, duration time.Duration) Option

type Options

type Options struct {
	CompressLevel     int
	RateLimitRequests *int
	RateLimitDuration *time.Duration
	KubernetesAuth    bool
	KubernetesTrusted *kubernetesauth.Trusted
}

Jump to

Keyboard shortcuts

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