Documentation ¶
Index ¶
- Variables
- func Exists(cx *goblet.Context, key string) (bool, error)
- func Get(cx *goblet.Context, Key string) (interface{}, error)
- func GetBool(cx *goblet.Context, Key string) (bool, error)
- func GetBytes(cx *goblet.Context, Key string) ([]byte, error)
- func GetFloat64(cx *goblet.Context, Key string) (float64, error)
- func GetInt(cx *goblet.Context, Key string) (int, error)
- func GetInt64(cx *goblet.Context, Key string) (int64, error)
- func GetInt64Map(cx *goblet.Context, Key string) (map[string]int64, error)
- func GetIntMap(cx *goblet.Context, Key string) (map[string]int, error)
- func GetInts(cx *goblet.Context, Key string) ([]int, error)
- func GetString(cx *goblet.Context, Key string) (string, error)
- func GetStringMap(cx *goblet.Context, Key string) (map[string]string, error)
- func GetStrings(cx *goblet.Context, Key string) ([]string, error)
- func GetUint64(cx *goblet.Context, Key string) (uint64, error)
- func RemoveItem(cx *goblet.Context, Key string) error
- func Store(cx *goblet.Context, key string, item interface{}) (err error)
- type RedisSession
Constants ¶
This section is empty.
Variables ¶
View Source
var PoolMaxIdle = 10
Functions ¶
Types ¶
type RedisSession ¶
type RedisSession struct { Address string `goblet:"address,localhost:6379"` Pwd string `goblet:"pwd"` Db int64 `goblet:"db"` SessionType string `goblet:"type,cookie"` TokenName string `goblet:"token_name,token"` }
func (*RedisSession) AddCfgAndInit ¶
func (r *RedisSession) AddCfgAndInit(server *goblet.Server) error
func (*RedisSession) OnNewRequest ¶
func (s *RedisSession) OnNewRequest(ctx *goblet.Context) error
Click to show internal directories.
Click to hide internal directories.