Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Debug bool
Testing bool
Redis struct {
Connection string
Connections []string
Username string
Password string
Cluster bool
Failover bool
MasterName string
Concurrency int
}
Server struct {
Enable bool
BindIP string
Port string
BodyLimit int
Concurrency int
ProxyHeader string
EnableIPValidation bool
TrustProxy bool
TrustLoopback bool
TrustProxies []string
ReduceMemoryUsage bool
ServerHeader string
Limiter struct {
MaxReqests int
PerDurationInSeconds int
IgnoreFailedRequests bool
UseRedis bool
}
}
Worker struct {
Enable bool
}
Database struct {
Enable bool
Connection string
}
Users []user.User
Targets []target.Target
}
func (*Config) GetApplication ¶
func (cfg *Config) GetApplication(userKey string, token string) (application.Application, error)
func (*Config) GetTargetByID ¶
func (*Config) GetTargets ¶ added in v0.4.3
Click to show internal directories.
Click to hide internal directories.