config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBlobS3MaxRetries = 2
View Source
const DefaultBlobS3RequestTimeout = 30 * time.Second
View Source
const DefaultMaxAuthBodyBytes int64 = 8 << 20
View Source
const DefaultMaxBlobUploadBytes int64 = 64 << 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName         string
	Environment         string
	ListenAddress       string
	DefaultOrganization string
	ReadTimeout         time.Duration
	WriteTimeout        time.Duration
	ShutdownTimeout     time.Duration
	AuthSkew            time.Duration
	MaxAuthBodyBytes    int64
	MaxBlobUploadBytes  int64
	BootstrapMode       bool

	PostgresDSN          string
	OpenSearchURL        string
	BlobBackend          string
	BlobStorageURL       string
	BlobS3Endpoint       string
	BlobS3Region         string
	BlobS3ForcePathStyle bool
	BlobS3DisableTLS     bool
	BlobS3AccessKeyID    string
	BlobS3SecretKey      string
	BlobS3SessionToken   string
	BlobS3RequestTimeout time.Duration
	BlobS3MaxRetries     int

	BootstrapRequestorName          string
	BootstrapRequestorType          string
	BootstrapRequestorOrganization  string
	BootstrapRequestorKeyID         string
	BootstrapRequestorPublicKeyPath string
}

func LoadFromEnv

func LoadFromEnv() (Config, error)

func (Config) Redacted

func (c Config) Redacted() map[string]string

Jump to

Keyboard shortcuts

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