settings

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: AGPL-3.0 Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Conf *ini.File
View Source
var ConfPath string
View Source
var (
	LastModified string
)
View Source
var ServerSettings = &Server{
	HttpPort:          "9000",
	RunMode:           "debug",
	HTTPChallengePort: "9180",
	Database:          "database",
	Demo:              false,
}

Functions

func Init

func Init(confPath string)

func MapTo

func MapTo()

func ReflectFrom

func ReflectFrom()

func Save

func Save() (err error)

func Setup

func Setup()

Types

type Server

type Server struct {
	HttpPort          string
	RunMode           string
	WebSocketToken    string
	JwtSecret         string
	HTTPChallengePort string
	Email             string
	Database          string
	Demo              bool
}

Jump to

Keyboard shortcuts

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