thinkgo: github.com/thinkoner/thinkgo/config Index | Files

package config

import "github.com/thinkoner/thinkgo/config"

Index

Package Files

app.go config.go cookie.go database.go route.go session.go view.go

type AppConfig Uses

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

type Connection Uses

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

type CookieConfig Uses

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 Uses

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

type RouteConfig Uses

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

type SessionConfig Uses

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 Uses

type ViewConfig struct {
    Path string
}
var View *ViewConfig

Package config imports 1 packages (graph) and is imported by 3 packages. Updated 2019-02-16. Refresh now. Tools for package owners.