config

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 2 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 {
	RedisURL        string `env:"REDIS_URL,required"`
	SentryDSN       string `env:"SENTRY_DSN,required"`
	PORT            string `env:"PORT,required"`
	AppURL          string `env:"APP_URL,required"`
	WebURL          string `env:"WEB_URL,required"`
	TurnstileSecret string `env:"TURNSTILE_SECRET,required"`
	OsuClientID     string `env:"OSU_CLIENT_ID,required"`
	OsuClientSecret string `env:"OSU_CLIENT_SECRET,required"`
	EncryptionKey   string `env:"ENCRYPTION_KEY,required"`
	DatabaseURL     string `env:"DATABASE_URL,required"`
}

func Read

func Read() (*Config, error)

func (*Config) WebDomain

func (c *Config) WebDomain() string

type OsuAuth

type OsuAuth struct {
	OsuClientID     string `env:"OSU_CLIENT_ID,required"`
	OsuClientSecret string `env:"OSU_CLIENT_SECRET,required"`
}

func ReadOsuAuth

func ReadOsuAuth() (*OsuAuth, error)

Jump to

Keyboard shortcuts

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