config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *lecho.Logger

Logger is global since we will need it everywhere

Functions

This section is empty.

Types

type FrontEndConfig

type FrontEndConfig struct {
	NewDocumentNumber int
	ServerAPIURL      string
}

FrontEndConfig stores all of the frontend settings

type ServerConfig

type ServerConfig struct {
	StormID              int `storm:"id"`
	ListenAddrIP         string
	ListenAddrPort       string
	IngressPath          string
	IngressDelete        bool
	IngressMoveFolder    string
	IngressPreserve      bool
	DocumentPath         string
	NewDocumentFolder    string //absolute path to new document folder
	NewDocumentFolderRel string //relative path to new document folder Needed for multiple levels deep.
	WebUIPass            bool
	ClientUsername       string
	ClientPassword       string
	PushBulletToken      string `json:"-"`
	MagickPath           string
	TesseractPath        string
	UseReverseProxy      bool
	BaseURL              string
	IngressInterval      int
	FrontEndConfig
}

ServerConfig contains all of the server settings defined in the TOML file

func SetupServer

func SetupServer() (ServerConfig, *lecho.Logger)

SetupServer does the initial configuration

Jump to

Keyboard shortcuts

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