Documentation ¶
Index ¶
- func GetDefaultSession() string
- type RedisSessionDataType
- func (sd *RedisSessionDataType) CreateDefaultSession() (ss string)
- func (sd *RedisSessionDataType) DumpData() (rv string)
- func (sd *RedisSessionDataType) FlushSessionToRedis()
- func (sd *RedisSessionDataType) GetData(grp, name string) (dv string, err error)
- func (sd *RedisSessionDataType) GetFreeRedisConn(GetConn func() (*redis.Client, error), PutConn func(*redis.Client)) *RedisSessionDataType
- func (sd *RedisSessionDataType) GetSessionFromRedis() (ss string)
- func (sd *RedisSessionDataType) IsDirty() bool
- func (sd *RedisSessionDataType) Login()
- func (sd *RedisSessionDataType) Logout()
- func (sd *RedisSessionDataType) SetData(grp, name, value string)
- func (sd *RedisSessionDataType) SetDirty(b bool) *RedisSessionDataType
- func (sd *RedisSessionDataType) SetPrefixKey(Prefix, Key string) *RedisSessionDataType
- func (sd *RedisSessionDataType) SetRule(name string, temp, user bool)
- type RedisSessionParse
- type RuleType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultSession ¶
func GetDefaultSession() string
Types ¶
type RedisSessionDataType ¶
type RedisSessionDataType struct { RawData string SessionData RedisSessionParse Prefix string Key string // contains filtered or unexported fields }
func NewRedisSesionDataType ¶
func NewRedisSesionDataType() *RedisSessionDataType
func (*RedisSessionDataType) CreateDefaultSession ¶
func (sd *RedisSessionDataType) CreateDefaultSession() (ss string)
session = rw.Session.CreateDefaultSession()
func (*RedisSessionDataType) DumpData ¶
func (sd *RedisSessionDataType) DumpData() (rv string)
x := rw.Session.DumpData()
func (*RedisSessionDataType) FlushSessionToRedis ¶
func (sd *RedisSessionDataType) FlushSessionToRedis()
func (p *Pool) Get() (*redis.Client, error) { rw.Session.FlushSessionToRedis()
func (*RedisSessionDataType) GetData ¶
func (sd *RedisSessionDataType) GetData(grp, name string) (dv string, err error)
func (*RedisSessionDataType) GetFreeRedisConn ¶
func (sd *RedisSessionDataType) GetFreeRedisConn(GetConn func() (*redis.Client, error), PutConn func(*redis.Client)) *RedisSessionDataType
func (*RedisSessionDataType) GetSessionFromRedis ¶
func (sd *RedisSessionDataType) GetSessionFromRedis() (ss string)
session = rw.Session.GetSessionFromRedis()
func (*RedisSessionDataType) IsDirty ¶
func (sd *RedisSessionDataType) IsDirty() bool
func (*RedisSessionDataType) Login ¶
func (sd *RedisSessionDataType) Login()
func (*RedisSessionDataType) Logout ¶
func (sd *RedisSessionDataType) Logout()
func (*RedisSessionDataType) SetData ¶
func (sd *RedisSessionDataType) SetData(grp, name, value string)
func (*RedisSessionDataType) SetDirty ¶
func (sd *RedisSessionDataType) SetDirty(b bool) *RedisSessionDataType
func (*RedisSessionDataType) SetPrefixKey ¶
func (sd *RedisSessionDataType) SetPrefixKey(Prefix, Key string) *RedisSessionDataType
func (*RedisSessionDataType) SetRule ¶
func (sd *RedisSessionDataType) SetRule(name string, temp, user bool)
type RedisSessionParse ¶
Click to show internal directories.
Click to hide internal directories.