Discover Packages
github.com/yashkundu/falcon
pkg
parsing
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 1, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Backend struct {
Url string `toml:"url"`
VarName string `toml:"varName"`
}
type Config struct {
Core Core `toml:"core"`
LimitReq LimitReq `toml:"limitReq"`
Proxy Proxy `toml:"proxy"`
}
The configuration struct of config.toml
type Core struct {
Listen int `toml:"listen"`
ApiPort int `toml:"apiport"`
LimitMaxConn int `toml:"limitMaxConn"`
ReadTimeout int `toml:"readTimeout"`
WriteTimeout int `toml:"writeTimeout"`
IdleTimeout int `toml:"idleTimeout"`
EnableServerStats bool `toml:"enableServerStats"`
}
type File struct {
FilePath string
}
type LimitReq struct {
Enable bool `toml:"enable"`
Interval int `toml:"interval"`
Frequency int `toml:"frequency"`
Mode int `toml:"mode"`
}
type Proxy struct {
Routes []Route `toml:"routes"`
}
type Route struct {
Endpoint string `toml:"endpoint"`
Match int `toml:"match"`
Balancer int `toml:"balancer"`
Backends []Backend `toml:"backends"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.