Documentation ¶
Index ¶
- func DefaultGinSessionManager(keeper dao.Keeper, domain string) func(*gin.Context)
- func GinSessionManager(keeper dao.Keeper, domain string, expiration time.Duration, ...) func(*gin.Context)
- type GinSession
- func (g *GinSession) Check() (flag bool)
- func (g *GinSession) Dump() (data map[string]string)
- func (g *GinSession) Get(key string) (value string, ok bool)
- func (g *GinSession) GetStruct(key string, pointer interface{}) (err error)
- func (g *GinSession) Set(key string, value string)
- func (g *GinSession) SetStruct(key string, value interface{}) (err error)
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GinSession ¶
type GinSession struct {
// contains filtered or unexported fields
}
func New ¶
func New(data map[string]string) (g *GinSession)
func (*GinSession) Check ¶
func (g *GinSession) Check() (flag bool)
func (*GinSession) Dump ¶
func (g *GinSession) Dump() (data map[string]string)
func (*GinSession) GetStruct ¶
func (g *GinSession) GetStruct(key string, pointer interface{}) (err error)
func (*GinSession) Set ¶
func (g *GinSession) Set(key string, value string)
func (*GinSession) SetStruct ¶
func (g *GinSession) SetStruct(key string, value interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.