config

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 4 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 {
	Database struct {
		Recreate              bool   `yaml:"Recreate,omitempty"`
		Filename              string `yaml:"Filename,omitempty"`
		ReadConnectionParams  string `yaml:"ReadConnectionParams"`
		WriteConnectionParams string `yaml:"WriteConnectionParams"`
		UsersFilename         string `yaml:"UsersFilename,omitempty"`
		DebugLogging          bool   `yaml:"DebugLogging,omitempty"`
		SkipUpgrade           bool   `yaml:"SkipUpgrade,omitempty"`
	}
	Auth struct {
		Secret       string `yaml:"Secret,omitempty"`
		URL          string `yaml:"URL,omitempty"`
		DisableXSRF  bool   `yaml:"DisableXSRF,omitempty"`
		SecureCookie bool   `yaml:"SecureCookie,omitempty"`
	}
	Discord struct {
		Enabled               bool   `yaml:"Enabled,omitempty"`
		ClientID              string `yaml:"ClientID,omitempty"`
		ClientSecret          string `yaml:"ClientSecret,omitempty"`
		CookieDuration        string `yaml:"CookieDuration,omitempty"`
		WebhookNotify         bool   `yaml:"WebhookNotify,omitempty"`
		WebhookID             string `yaml:"WebhookID,omitempty"`
		WebhookToken          string `yaml:"WebhookToken,omitempty"`
		WebhookNotifyForAdmin bool   `yaml:"WebhookNotifyForAdmin,omitempty"`
	}
	Game struct {
		InviteLinkSalt string `yaml:"InviteLinkSalt,omitempty"`
	}
	GeneratedUserPassword string
	Address               string
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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