config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DbConnMaxLifetime time.Duration = time.Hour
View Source
const DbMaxIdleConns int = 5
View Source
const DbMaxOpenConns int = 10

DbMaxOpenConns Database Connection Pooling settings

View Source
const DoMinifyCss = true

DoMinifyCss indicates if the app should compile minified global.css using npx postcss? Can be done manually or on compile instead with Note that this is also required for tailwindcss to work. uses `npx postcss`

View Source
const GzipCompressionLevel = gzip.BestSpeed

Set level of gzip compression

View Source
const ListenPort = 8080

ListenPort Internal port to listen on

View Source
const TimeoutSeconds = 15

TimeoutSeconds for server to wait for response

View Source
const WebsiteTitle = "GoWebsite-Boilerplate"
View Source
const WsReadBufferSize = 1024

WsReadBufferSize WebSocket settings

View Source
const WsWriteBufferSize = 1024

Variables

View Source
var DefaultTemplateDefinitions = []DefaultTemplateDefinition{
	{"head", ""},
	{"content", "This page has no content"},
	{"scripts", ""},
}

DefaultTemplateDefinitions Go templating requires all called templates to be defined This is a list of default template items and it's content that will be used if not defined

Functions

This section is empty.

Types

type DefaultTemplateDefinition

type DefaultTemplateDefinition struct {
	Definition string
	Content    string
}

Jump to

Keyboard shortcuts

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