config

package
v0.0.0-...-006488c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Contact struct {
	Mailgun struct {
		PublicValidationKey string
		PrivateAPIKey       string
	}
	Email struct {
		Domain    string
		ToAddress string
		Subject   string
	}
	MaxLengths struct {
		Name    uint
		Email   uint
		Message uint
	}
}

Contact contains all the Contact-Page related configuration in the app.

View Source
var Server struct {
	Port uint16
}

Server contains all the general Server related configuration in the app.

Functions

func ContactMaxLength

func ContactMaxLength(field string) (uint, error)

ContactMaxLength gets the max length of a contact field from the field name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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