Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocketConfig

type LocketConfig struct {
	CaFile                        string                `json:"ca_file"`
	CertFile                      string                `json:"cert_file"`
	DatabaseConnectionString      string                `json:"database_connection_string"`
	DBConnectionTimeout           durationjson.Duration `json:"db_connection_timeout,omitempty"`
	DBReadTimeout                 durationjson.Duration `json:"db_read_timeout,omitempty"`
	DBWriteTimeout                durationjson.Duration `json:"db_write_timeout,omitempty"`
	DBOperationTimeout            durationjson.Duration `json:"db_operation_timeout,omitempty"`
	MaxOpenDatabaseConnections    int                   `json:"max_open_database_connections,omitempty"`
	MaxDatabaseConnectionLifetime durationjson.Duration `json:"max_database_connection_lifetime,omitempty"`
	DatabaseDriver                string                `json:"database_driver,omitempty"`
	KeyFile                       string                `json:"key_file"`
	ListenAddress                 string                `json:"listen_address"`
	SQLCACertFile                 string                `json:"sql_ca_cert_file,omitempty"`
	SQLEnableIdentityVerification bool                  `json:"sql_enable_identity_verification,omitempty"`
	LoggregatorConfig             loggingclient.Config  `json:"loggregator"`
	ReportInterval                durationjson.Duration `json:"report_interval,omitempty"`
	HealthCheckTimeout            durationjson.Duration `json:"health_check_timeout,omitempty"`
	HealthCheckFailureThreshold   int                   `json:"health_check_failure_threshold,omitempty"`
	HealthCheckInterval           durationjson.Duration `json:"health_check_interval,omitempty"`
	EnableDBHealthCheck           bool                  `json:"enable_db_health_check,omitempty"`
	debugserver.DebugServerConfig
	lagerflags.LagerConfig
}

func NewLocketConfig

func NewLocketConfig(configPath string) (LocketConfig, error)

Jump to

Keyboard shortcuts

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