config

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: AGPL-3.0-or-later

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BaseURL       string
	Organisation  string
	SecureCookies bool
	AdminEmails   []string
}

type Config

type Config struct {
	App      AppConfig
	Database DatabaseConfig
	OAuth    OAuthConfig
	Server   ServerConfig
	Logger   LoggerConfig
}

func Load

func Load() (*Config, error)

Load loads configuration from environment variables

type DatabaseConfig

type DatabaseConfig struct {
	DSN string
}

type LoggerConfig

type LoggerConfig struct {
	Level string
}

type OAuthConfig

type OAuthConfig struct {
	ClientID      string
	ClientSecret  string
	AuthURL       string
	TokenURL      string
	UserInfoURL   string
	LogoutURL     string
	Scopes        []string
	AllowedDomain string
	CookieSecret  []byte
}

type ServerConfig

type ServerConfig struct {
	ListenAddr string
}

Jump to

Keyboard shortcuts

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