Documentation ¶
Index ¶
- func ConnMongo(config *DbConf) *mongo.Database
- func ConnPg(config *DbConf) *sql.DB
- func GenerateSid() string
- func InitSessionManager(storer SessionStore, sessName string, cookiePrefix string, ...) *sessionManager
- type ActionFunc
- type DAO
- type DbConf
- type FilterFunc
- type GoEngine
- func (this *GoEngine) ListenTCP(port string)
- func (this *GoEngine) ListenUnix(addr string)
- func (this *GoEngine) Range(res http.ResponseWriter, req *http.Request) bool
- func (this *GoEngine) ServeHTTP(res http.ResponseWriter, req *http.Request)
- func (this *GoEngine) Use(handle FilterFunc)
- func (this *GoEngine) UseRouter(router *HttpRoute)
- type HttpAction
- type HttpRoute
- func (this *HttpRoute) Range(res http.ResponseWriter, req *http.Request) bool
- func (this *HttpRoute) ServeHTTP(res http.ResponseWriter, req *http.Request) bool
- func (this *HttpRoute) Set(path string, handle ActionFunc)
- func (this *HttpRoute) SetRegexp(route *regexp.Regexp, handle ActionFunc)
- func (this *HttpRoute) SetWith(path string, handle ActionFunc)
- func (this *HttpRoute) Use(handle FilterFunc)
- func (this *HttpRoute) UseRouter(path string, router *HttpRoute)
- type NullTime
- type RedisStore
- type Session
- type SessionManager
- type SessionStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSid ¶
func GenerateSid() string
func InitSessionManager ¶
func InitSessionManager(storer SessionStore, sessName string, cookiePrefix string, sessionPrefix string, domain string) *sessionManager
Types ¶
type ActionFunc ¶
type ActionFunc func(http.ResponseWriter, *http.Request)
type GoEngine ¶
type GoEngine struct {
// contains filtered or unexported fields
}
unix "golang.org/x/sys/unix"
func New ¶
func New(sessionManager SessionManager) *GoEngine
func (*GoEngine) ListenUnix ¶
func (*GoEngine) Range ¶
func (this *GoEngine) Range(res http.ResponseWriter, req *http.Request) bool
@return stop
func (*GoEngine) ServeHTTP ¶
func (this *GoEngine) ServeHTTP(res http.ResponseWriter, req *http.Request)
func (*GoEngine) Use ¶
func (this *GoEngine) Use(handle FilterFunc)
type HttpAction ¶
type HttpAction interface {
Bind(*HttpRoute)
}
type HttpRoute ¶
type HttpRoute struct {
// contains filtered or unexported fields
}
func InitHttpRoute ¶
func InitHttpRoute() *HttpRoute
func (*HttpRoute) Range ¶
func (this *HttpRoute) Range(res http.ResponseWriter, req *http.Request) bool
@return stop
func (*HttpRoute) Set ¶
func (this *HttpRoute) Set(path string, handle ActionFunc)
func (*HttpRoute) SetRegexp ¶
func (this *HttpRoute) SetRegexp(route *regexp.Regexp, handle ActionFunc)
func (*HttpRoute) SetWith ¶
func (this *HttpRoute) SetWith(path string, handle ActionFunc)
func (*HttpRoute) Use ¶
func (this *HttpRoute) Use(handle FilterFunc)
type RedisStore ¶
type RedisStore struct {
// contains filtered or unexported fields
}
func NewRedisStore ¶
func NewRedisStore(Addr string, Password string, DB int) *RedisStore
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
*
- @class Session
- @author JamesWatson
- @time 2017-06-10
type SessionManager ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.