Documentation ¶
Index ¶
- type MongoSessionStore
- func (this *MongoSessionStore) Destroy(sid interface{}) error
- func (this *MongoSessionStore) Get(sid interface{}) (*session.Session, error)
- func (this *MongoSessionStore) Init(sessionOptions string) error
- func (this *MongoSessionStore) Save(session *session.Session) (interface{}, error)
- func (this *MongoSessionStore) SessionDestroy(sid string) error
- func (this *MongoSessionStore) StoreName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoSessionStore ¶
type MongoSessionStore struct {
// contains filtered or unexported fields
}
func NewMongoSessionStore ¶
func NewMongoSessionStore(options string) *MongoSessionStore
create MongoSessionStore instance
func (*MongoSessionStore) Destroy ¶
func (this *MongoSessionStore) Destroy(sid interface{}) error
func (*MongoSessionStore) Get ¶
func (this *MongoSessionStore) Get(sid interface{}) (*session.Session, error)
func (*MongoSessionStore) Init ¶
func (this *MongoSessionStore) Init(sessionOptions string) error
func (*MongoSessionStore) Save ¶
func (this *MongoSessionStore) Save(session *session.Session) (interface{}, error)
func (*MongoSessionStore) SessionDestroy ¶
func (this *MongoSessionStore) SessionDestroy(sid string) error
SessionDestroy delete mongodb session by id
func (*MongoSessionStore) StoreName ¶
func (this *MongoSessionStore) StoreName() string
Click to show internal directories.
Click to hide internal directories.