config

package
v0.0.0-...-f39640c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSession

func InitSession(sessionMan *scs.SessionManager) *scs.SessionManager

Types

type AppConfig

type AppConfig struct {
	Port              string
	TemplateCache     map[string]*template.Template
	UseCacheTemplates bool
	InfoLog           *log.Logger
	ErrorLog          *log.Logger
	IsProduction      bool
	Session           *scs.SessionManager
	SameSite          http.SameSite
}

AppConfig holds the app config

func (*AppConfig) InitApp

func (app *AppConfig) InitApp(serverPort string, sessionMan *scs.SessionManager)

InitApp acts like contructor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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