config

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB, dropFile, createFile, insertFile string) error

Types

type Cfg

type Cfg struct {
	Http struct {
		Port string
	}
	Auth struct {
		InviteCodeRequired bool
	}
	DB struct {
		AuthMain CfgDB
		AuthRead CfgDB
		Blade    CfgDB
	}
}

func Init

func Init() (Cfg, error)

type CfgDB

type CfgDB struct {
	Connect struct {
		Host     string
		Port     string
		SSLMode  string
		DBName   string
		User     string
		Password string
	}
	Migrate struct {
		DropFile   string
		CreateFile string
		InsertFile string
	}
}

Jump to

Keyboard shortcuts

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