config

package
v0.0.0-...-7b9b616 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2015 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Port int `default:"7000" env:"PORT"`
	Host string
	DB   struct {
		Name        string `default:"qor_example"`
		Adapter     string `default:"postgres"`
		User        string
		Password    string
		Host        string `default:"localhost"`
		Port        uint   `default:"5432"`
		Debug       bool   `default:"false"`
		Connections int    `default:"100"`
	}
	Redis struct {
		Host     string `default:"localhost"`
		Port     uint   `default:"6379"`
		Protocol string `default:"tcp"`
		Password string
	}
	Session struct {
		Name    string `default:"sessionid"`
		Adapter string `default:"cookie"`
	}
	Secret string `default:"secret"`
	Limit  int    `default:"5"`
}

Jump to

Keyboard shortcuts

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