options

package
v0.0.0-...-0edc9b0 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 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	KCPProxyOptions *kcpproxyoptions.Options
	RateLimit       *RateLimit
}

func NewOptions

func NewOptions() *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Complete

func (o *Options) Complete() error

func (*Options) Validate

func (o *Options) Validate() []error

type RateLimit

type RateLimit struct {
	RequestLimit   int
	BurstLimit     int
	ExcludePattern string
}

func NewRateLimit

func NewRateLimit() *RateLimit

func (*RateLimit) AddFlags

func (o *RateLimit) AddFlags(fs *pflag.FlagSet)

func (*RateLimit) Validate

func (o *RateLimit) Validate() []error

Jump to

Keyboard shortcuts

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