config

package
v0.0.0-...-06a0142 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: BSD-2-Clause Imports: 5 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 {
	Debug    bool
	HTTP     *HTTP
	Guild    *Guild
	Database *Database
	Platform *Platform
}

func Get

func Get() *Config

type Database

type Database struct {
	DSN string
}

type DiscordWebhook

type DiscordWebhook struct {
	URL      string
	ThreadID string
}

type Guild

type Guild struct {
	SessionToken string
	SocietyID    string
}

type HTTP

type HTTP struct {
	Host string
	Port int
}

func (*HTTP) Address

func (h *HTTP) Address() string

type Platform

type Platform struct {
	SocietyName         string
	AdminToken          string
	SessionSigningToken string
	DiscordWebhook      *DiscordWebhook
}

Jump to

Keyboard shortcuts

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