frontend

package
v0.2.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	SelfServiceRegistrationEnabled bool `` /* 211-byte string literal not displayed */
}

AuthConfig contains standalone frontend authentication display configuration.

type Config

type Config struct {
	Deployment config.DeploymentConfig `toml:"deployment"`
	Server     ServerConfig            `toml:"frontend_server"`
	Database   DatabaseConfig          `toml:"database"`
	Session    SessionConfig           `toml:"frontend_session"`
	Security   SecurityConfig          `toml:"security"`
	Auth       AuthConfig              `toml:"auth"`

	Logging          LoggingConfig        `toml:"logging"`
	Tracing          config.TracingConfig `toml:"tracing"`
	Metrics          config.MetricsConfig `toml:"metrics"`
	DocumentationURL string               `` /* 136-byte string literal not displayed */
	FrontendURL      string               `toml:"frontend_url"    env:"FRONTEND_URL"    flag:"frontend-url"    desc:"Canonical browser application origin"`

	BackendAPIURL string `` /* 134-byte string literal not displayed */
}

Config represents the standalone frontend runtime configuration.

func Load

func Load(path string) (*Config, error)

Load reads and parses standalone frontend configuration.

func LoadWithArgs

func LoadWithArgs(path string, args []string) (*Config, error)

LoadWithArgs reads frontend settings through an isolated command-line flag set.

type DatabaseConfig

type DatabaseConfig = config.DatabaseConfig

DatabaseConfig contains standalone frontend database connection configuration.

type LoggingConfig

type LoggingConfig struct {
	Level            string          `` /* 131-byte string literal not displayed */
	File             string          `` /* 141-byte string literal not displayed */
	RotationInterval config.Duration `` /* 131-byte string literal not displayed */
	LogHTTPRequests  bool            `` /* 129-byte string literal not displayed */
	MaxFileSizeMB    int             `` /* 132-byte string literal not displayed */
	Environment      string          `` /* 131-byte string literal not displayed */
	OTLPLogsEndpoint string          `` /* 155-byte string literal not displayed */
}

LoggingConfig contains standalone frontend logging configuration.

type SecurityConfig

type SecurityConfig struct {
	AllowPrivateDataSourceHosts bool `` /* 197-byte string literal not displayed */
}

SecurityConfig contains standalone frontend security display configuration.

type ServerConfig

type ServerConfig struct {
	Host              string          `` /* 142-byte string literal not displayed */
	Port              int             `` /* 142-byte string literal not displayed */
	ShutdownTimeout   config.Duration `` /* 172-byte string literal not displayed */
	DrainTimeout      config.Duration `` /* 196-byte string literal not displayed */
	StaticCacheMaxAge uint            `` /* 213-byte string literal not displayed */
	ProxyHeader       string          `` /* 169-byte string literal not displayed */
	TrustedProxies    []string        `` /* 181-byte string literal not displayed */
}

ServerConfig contains standalone frontend HTTP server configuration.

func (*ServerConfig) Address

func (s *ServerConfig) Address() string

Address returns the frontend server address string.

type SessionConfig

type SessionConfig struct {
	TableName    string `` /* 130-byte string literal not displayed */
	CookieSecure bool   `` /* 146-byte string literal not displayed */
}

SessionConfig contains standalone frontend session storage configuration.

Jump to

Keyboard shortcuts

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