config

package
v0.0.0-...-f828163 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSSettings

type AWSSettings struct {
	BucketName *m.Secret[string]
	ID         *m.Secret[string]
	Secret     *m.Secret[string]
	Region     *m.Secret[string]
}

type ApplicationSettings

type ApplicationSettings struct {
	Port      uint16 `env:"PORT"`
	Host      string `env:"HOST"`
	PublicURL string `env:"PUBLIC_URL"`
}

type CalendarSettings

type CalendarSettings struct {
	MaxTerminationDate time.Time
}

type DatabaseSettings

type DatabaseSettings struct {
	Username     string
	Password     *m.Secret[string]
	Port         uint
	Host         string
	DatabaseName string
	RequireSSL   bool
}

func (*DatabaseSettings) PostgresConn

func (s *DatabaseSettings) PostgresConn() string

func (*DatabaseSettings) WithDb

func (s *DatabaseSettings) WithDb() string

func (*DatabaseSettings) WithoutDb

func (s *DatabaseSettings) WithoutDb() string

type GoogleOAuthSettings

type GoogleOAuthSettings struct {
	Key    *m.Secret[string]
	Secret *m.Secret[string]
}

type Integrations

type Integrations struct {
	Google          GoogleOAuthSettings
	MicrosoftWeb    MicrosoftWebOAuthSettings
	MicrosoftMobile MicrosoftMobileOAuthSettings
	AWS             AWSSettings
	Resend          ResendSettings
	Search          SearchSettings
}

type MicrosoftMobileOAuthSettings

type MicrosoftMobileOAuthSettings struct {
	Key    *m.Secret[string]
	Tenant string
}

type MicrosoftWebOAuthSettings

type MicrosoftWebOAuthSettings struct {
	Key    *m.Secret[string]
	Secret *m.Secret[string]
	Tenant string
}

type RedisSettings

type RedisSettings struct {
	// contains filtered or unexported fields
}

func (*RedisSettings) Into

func (r *RedisSettings) Into() *redis.Client

type ResendSettings

type ResendSettings struct {
	APIKey *m.Secret[string]
}

type SearchSettings

type SearchSettings struct {
	URI string `env:"URI"`
}

type SessionSettings

type SessionSettings struct {
	Redis      RedisSettings
	PassPhrase *m.Secret[string]
}

type Settings

type Settings struct {
	Application  ApplicationSettings
	Database     DatabaseSettings
	DBCache      RedisSettings
	Session      SessionSettings
	RedisLimiter RedisSettings
	SuperUser    SuperUserSettings
	Calendar     CalendarSettings
	Integrations
}

func GetConfiguration

func GetConfiguration(path string) (*Settings, error)

type SuperUserSettings

type SuperUserSettings struct {
	Password *m.Secret[string]
}

Jump to

Keyboard shortcuts

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