gorai

package module
v0.0.0-...-235fb7f Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2016 License: MIT Imports: 17 Imported by: 0

README

gorai

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() *gorai

Types

type Config

type Config struct {
	Framework   ConfigFramework   `json:"framework"`
	Application ConfigApplication `json:"application"`
}

type ConfigApplication

type ConfigApplication struct {
	Name                      string `json:"name"`
	GoogleAnalyticsTrackingId string `json:"google_analytics_tracking_id"`
}

type ConfigFramework

type ConfigFramework struct {
	WebServer    ConfigWebServer    `json:"web_server"`
	WebServerSSL ConfigWebServerSSL `json:"web_server_ssl"`
	SystemLog    log551.Config      `json:"system_log"`
	CommandLog   log551.Config      `json:"command_log"`
	Session      ConfigSession      `json:"session"`
	Database     mysql551.Config    `json:"database"`
	Auth         auth551.Config     `json:"auth"`
}

type ConfigSession

type ConfigSession struct {
	CookieKeyName string             `json:"cookie_key_name"`
	Server        memcache551.Config `json:"server"`
}

type ConfigWebServer

type ConfigWebServer struct {
	Host         string        `json:"host"`
	Port         string        `json:"port"`
	ReadTimeout  time.Duration `json:"read_timeout"`
	WriteTimeout time.Duration `json:"write_timeout"`
}

type ConfigWebServerSSL

type ConfigWebServerSSL struct {
	Host         string        `json:"host"`
	Port         string        `json:"port"`
	ReadTimeout  time.Duration `json:"read_timeout"`
	WriteTimeout time.Duration `json:"write_timeout"`
	CtrFile      string        `json:"crt_file"`
	KeyFile      string        `json:"key_file"`
}

Jump to

Keyboard shortcuts

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