types

package
v0.0.0-...-a1b4a84 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayOption

type GatewayOption struct {
	Address      string        `yaml:"address" mapstructure:"address"`
	HTTPAddress  string        `yaml:"http_address" mapstructure:"http_address"`
	ReadTimeout  time.Duration `yaml:"read_timeout" mapstructure:"read_timeout"`
	WriteTimeout time.Duration `yaml:"write_timeout" mapstructure:"write_timeout"`

	EnableRateLimit bool             `yaml:"enable_rate_limit" mapstructure:"enable_rate_limit"`
	RateLimit       *RateLimitOption `yaml:"rate_limit" mapstructure:"rate_limit"`

	EnablePprof bool `yaml:"pprof" mapstructure:"pprof"`
}

type RateLimitOption

type RateLimitOption struct {
	Limit float64 `yaml:"limit" mapstructure:"limit"`
	Burst int     `yaml:"burst" mapstructure:"burst"`
}

Jump to

Keyboard shortcuts

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