config

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr           string        `fig:"addr" default:":8080"`
	DBPath         string        `fig:"db_path" default:"rssgrid.db"`
	UpdateInterval time.Duration `fig:"update_interval" default:"30m"`
	SessionKey     string        `fig:"session_key" env:"RSSGRID_SESSION_KEY" required:"true"`
	OIDC           struct {
		IssuerURL    string `fig:"issuer_url" env:"RSSGRID_OIDC_ISSUER_URL" required:"true"`
		ClientID     string `fig:"client_id" env:"RSSGRID_OIDC_CLIENT_ID" required:"true"`
		ClientSecret string `fig:"client_secret" env:"RSSGRID_OIDC_CLIENT_SECRET" required:"true"`
		RedirectURL  string `fig:"redirect_url" default:"http://localhost:8080/auth/callback"`
	} `fig:"oidc"`
}

func Load

func Load() (*Config, error)

func LoadWithPath

func LoadWithPath(configPath string) (*Config, error)

Jump to

Keyboard shortcuts

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