morning-dairy: github.com/Jackong/morning-dairy/global Index | Files

package global

import "github.com/Jackong/morning-dairy/global"

*

* User: jackong
* Date: 11/13/13
* Time: 11:08 AM

*

* User: jackong
* Date: 11/15/13
* Time: 4:41 PM

*

* User: jackong
* Date: 11/15/13
* Time: 2:23 PM

*

* User: jackong
* Date: 11/5/13
* Time: 4:50 PM

*

* User: jackong
* Date: 11/6/13
* Time: 4:28 PM

*

* User: jackong
* Date: 11/14/13
* Time: 2:03 PM

*

* User: jackong
* Date: 11/11/13
* Time: 7:29 PM

Index

Package Files

code.go common.go event.go global.go log.go model.go router.go

Constants

const (
    CODE_FAIL = -1
    CODE_OK   = (iota - 1)
    CODE_EXIST
    CODE_SIGN_IN_REQUIRED
)
const (
    FORMAT_DATE      = "2006-01-02"
    FORMAT_DATE_TIME = "2006-01-02 15:04:05"
)

Variables

var (
    GoPath  string
    Now     func() string
    Time    func() time.Time
    Today   func() string
    Project config.Config
    Access  *accessLog
    Log     log.Logger
    Conn    db.Database
    Router  *router
)

func Collection Uses

func Collection(name string) db.Collection

func OnAfter Uses

func OnAfter(after ...http.HandlerFunc)

func OnBefore Uses

func OnBefore(before ...BeforeFunc)

func OnBeforeRoute Uses

func OnBeforeRoute(handler http.Handler, before ...BeforeFunc) http.Handler

func OnBeforeRouteFunc Uses

func OnBeforeRouteFunc(handlerFunc http.HandlerFunc, before ...BeforeFunc) http.HandlerFunc

func OnShutDown Uses

func OnShutDown(shutdown func())

func ShutDown Uses

func ShutDown()

type BeforeFunc Uses

type BeforeFunc func(http.ResponseWriter, *http.Request) error

Package global imports 13 packages (graph). Updated 2017-08-10. Refresh now. Tools for package owners.

The go get command cannot install this package because of the following issues: