snowuly / session-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Session Go

func Register(string, Provider)

type Provider interface {
	SessionInit(sid string) (Session, error)
	SessionRead(sid string) (Session, error)
	SessionDestroy(sid string)
	GC(maxLifetime int)
}


type Session interface {
	Get(string) interface{}
	Set(string, interface{})
	Del(string)
	SessionId() string
}

About


Languages

Language:Go 100.0%