config

package
v0.0.0-...-aef9128 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GoogleOAuthConfig = &oauth2.Config{
		ClientID:     "fd",
		ClientSecret: "",
		RedirectURL:  "",
		Scopes:       []string{"openid", "profile", "email"},
		Endpoint:     google.Endpoint,
	}
)

Functions

func DbConfiguration

func DbConfiguration() (string, string)

func InitialiseOAuthGoogle

func InitialiseOAuthGoogle()

func ServerConfig

func ServerConfig() string

func SetupConfig

func SetupConfig() error

SetupConfig configuration

Types

type Configuration

type Configuration struct {
	Server   ServerConfiguration
	Database DatabaseConfiguration
}

type DatabaseConfiguration

type DatabaseConfiguration struct {
	Driver   string
	Dbname   string
	Username string
	Password string
	Host     string
	Port     string
	LogMode  bool
}

type ServerConfiguration

type ServerConfiguration struct {
	Port                 string
	Secret               string
	LimitCountPerRequest int64
}

Jump to

Keyboard shortcuts

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