mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 23:01:28 +00:00
add ssdb-session interface
This commit is contained in:
parent
cfef97175e
commit
27be1e7ca3
55
session/ssdb/sess_ssdb.go
Normal file
55
session/ssdb/sess_ssdb.go
Normal file
@ -0,0 +1,55 @@
|
||||
package ssdb
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/session"
|
||||
"github.com/ssdb/gossdb/ssdb"
|
||||
)
|
||||
|
||||
var ssdbSsdbProvider = &SsdbSsdbProvider{}
|
||||
|
||||
type SsdbProvider struct {
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionInit(maxlifetime int64, savePath string) error {
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionRead(sid string) (session.Store, error) {
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionExist(sid string) bool {
|
||||
}
|
||||
func (r *SsdbProvider) SessionRegenerate(oldsid, sid string) (session.Store, error) {
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionDestroy(sid string) error {
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionGC() {
|
||||
return
|
||||
}
|
||||
|
||||
func (r *SsdbProvider) SessionAll() int {
|
||||
return 0
|
||||
}
|
||||
|
||||
type SessionStore struct {
|
||||
}
|
||||
|
||||
func (s *SessionStore) Set(key, value interface{}) error {
|
||||
}
|
||||
func (s *SessionStore) Get(key interface{}) interface{} {
|
||||
}
|
||||
func (s *SessionStore) Delete(key interface{}) error {
|
||||
}
|
||||
func (s *SessionStore) Flush() error {
|
||||
}
|
||||
func (s *SessionStore) SessionID() string {
|
||||
}
|
||||
|
||||
func (s *SessionStore) SessionRelease(w http.ResponseWriter) {
|
||||
}
|
||||
func init() {
|
||||
session.Register("redis", redispder)
|
||||
}
|
Loading…
Reference in New Issue
Block a user