Documentation
¶
Index ¶
- type GinManager
- func (m *GinManager) Close() error
- func (m *GinManager) Del(c *gin.Context, name string) error
- func (m *GinManager) Destroy(c *gin.Context) error
- func (m *GinManager) Flashes(c *gin.Context, name string, dst any) error
- func (m *GinManager) Get(c *gin.Context, name string, dst any) error
- func (m *GinManager) GetSessionId(c *gin.Context) (string, error)
- func (m *GinManager) GetUp(c *gin.Context, name string, dst any) error
- func (m *GinManager) GetUpByDuration(c *gin.Context, name string, dst any, duration time.Duration) error
- func (m *GinManager) GetUpByRemainTime(c *gin.Context, name string, dst any, duration time.Duration) error
- func (m *GinManager) Set(c *gin.Context, value *session.Value) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GinManager ¶
type GinManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(manager *session.Manager) *GinManager
func (*GinManager) Close ¶
func (m *GinManager) Close() error
func (*GinManager) GetSessionId ¶
func (m *GinManager) GetSessionId(c *gin.Context) (string, error)
func (*GinManager) GetUpByDuration ¶
func (*GinManager) GetUpByRemainTime ¶
Click to show internal directories.
Click to hide internal directories.