setup

package
v0.0.0-...-041f5a1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstSetup

func FirstSetup(configLocation string)

FirstSetup displays a webpage where the user is given a brief introduction to gogios and configures starting values and the first admin user

Types

type Setup

type Setup struct {
	AdminName     string
	AdminUsername string
	AdminPassword string

	Interval     string
	CheckTimeout string

	WebConfig webOptions

	DatabasePreference string
	Sqlite             sqlite
	Mysql              mysql

	Errors map[string]string
}

Setup has values that the user enters in the form read into it, which then gets used to do first setup

func (*Setup) CheckValid

func (s *Setup) CheckValid() bool

CheckValid that the data entered into the setup form is valid

Jump to

Keyboard shortcuts

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