config

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Name  string
	Env   string
	Debug bool
}
var App *AppConfig

type Connection

type Connection struct {
	Driver   string
	Host     string
	Port     string
	Database string
	Username string
	Password string
	Charset  string
	Prefix   string
	Engine   string
}

type CookieConfig

type CookieConfig struct {
	Prefix   string
	Expires  time.Duration
	Path     string
	Domain   string
	MaxAge   int
	Secure   bool
	HttpOnly bool
}
var Cookie *CookieConfig

var Database *DatabaseConfig

type DatabaseConfig

type DatabaseConfig struct {
	Connection  string
	Connections map[string]Connection
}

type RouteConfig

type RouteConfig struct {
	Static map[string]string
}
var Route *RouteConfig

type SessionConfig

type SessionConfig struct {
	//Default Session Driver
	Driver string

	//Session Cookie Name
	CookieName string

	//Session Lifetime
	Lifetime time.Duration

	//Session Encryption
	Encrypt bool

	//Session File Location
	Files string
}
var Session *SessionConfig

type ViewConfig

type ViewConfig struct {
	Path string
}
var View *ViewConfig

Jump to

Keyboard shortcuts

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