Documentation ¶
Index ¶
- Variables
- type AppConfig
- type AuditLogger
- type AutoPprof
- type Backup
- type Database
- type DatabaseBackupMode
- type Feature
- type File
- type Insecure
- type JobPipeline
- type LDAP
- type Listener
- type Lock
- type Log
- type LogfFn
- type MFA
- type Password
- type Prometheus
- type Pyroscope
- type RateLimit
- type Sentry
- type TLS
- type Threshold
- type Tracing
- type WebServer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEnvUnset = errors.New("env var unset")
)
nolint
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig interface { AppID() uuid.UUID RootDir() string ShutdownGracePeriod() time.Duration InsecureFastScrypt() bool EVMEnabled() bool EVMRPCEnabled() bool Validate() error ValidateDB() error LogConfiguration(log, warn LogfFn) SetLogLevel(lvl zapcore.Level) error SetLogSQL(logSQL bool) SetPasswords(keystore, vrf *string) AuditLogger() AuditLogger AutoPprof() AutoPprof Database() Database Feature() Feature Insecure() Insecure JobPipeline() JobPipeline Log() Log Password() Password Prometheus() Prometheus Pyroscope() Pyroscope Sentry() Sentry Threshold() Threshold WebServer() WebServer Tracing() Tracing }
type AuditLogger ¶
type AutoPprof ¶
type AutoPprof interface { BlockProfileRate() int CPUProfileRate() int Enabled() bool GatherDuration() models.Duration GatherTraceDuration() models.Duration GoroutineThreshold() int MaxProfileSize() utils.FileSize MemProfileRate() int MemThreshold() utils.FileSize MutexProfileFraction() int PollInterval() models.Duration ProfileRoot() string }
type Database ¶
type Database interface { Backup() Backup Listener() Listener Lock() Lock DefaultIdleInTxSessionTimeout() time.Duration DefaultLockTimeout() time.Duration DefaultQueryTimeout() time.Duration Dialect() dialects.DialectName LogSQL() bool MaxIdleConns() int MaxOpenConns() int MigrateDatabase() bool URL() url.URL }
type DatabaseBackupMode ¶
type DatabaseBackupMode string
var ( DatabaseBackupModeNone DatabaseBackupMode = "none" DatabaseBackupModeLite DatabaseBackupMode = "lite" DatabaseBackupModeFull DatabaseBackupMode = "full" )
type JobPipeline ¶
type LDAP ¶
type LDAP interface { ServerAddress() string ReadOnlyUserLogin() string ReadOnlyUserPass() string ServerTLS() bool SessionTimeout() models.Duration QueryTimeout() time.Duration BaseUserAttr() string BaseDN() string UsersDN() string GroupsDN() string ActiveAttribute() string ActiveAttributeAllowedValue() string AdminUserGroupCN() string EditUserGroupCN() string RunUserGroupCN() string ReadUserGroupCN() string UserApiTokenEnabled() bool UserAPITokenDuration() models.Duration UpstreamSyncInterval() models.Duration UpstreamSyncRateLimit() models.Duration }
type Prometheus ¶
type Prometheus interface {
AuthToken() string
}
type WebServer ¶
type WebServer interface { AuthenticationMethod() string AllowOrigins() string BridgeCacheTTL() time.Duration BridgeResponseURL() *url.URL HTTPMaxSize() int64 StartTimeout() time.Duration HTTPWriteTimeout() time.Duration HTTPPort() uint16 SessionReaperExpiration() models.Duration SecureCookies() bool SessionOptions() sessions.Options SessionTimeout() models.Duration ListenIP() net.IP TLS() TLS RateLimit() RateLimit MFA() MFA LDAP() LDAP }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.