gin_adapter

package
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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) Del

func (m *GinManager) Del(c *gin.Context, name string) error

func (*GinManager) Destroy

func (m *GinManager) Destroy(c *gin.Context) error

func (*GinManager) Flashes

func (m *GinManager) Flashes(c *gin.Context, name string, dst any) error

func (*GinManager) Get

func (m *GinManager) Get(c *gin.Context, name string, dst any) error

func (*GinManager) GetSessionId

func (m *GinManager) GetSessionId(c *gin.Context) (string, error)

func (*GinManager) GetUp

func (m *GinManager) GetUp(c *gin.Context, name string, dst any) error

func (*GinManager) GetUpByDuration

func (m *GinManager) GetUpByDuration(c *gin.Context, name string, dst any, duration time.Duration) error

func (*GinManager) GetUpByRemainTime

func (m *GinManager) GetUpByRemainTime(c *gin.Context, name string, dst any, duration time.Duration) error

func (*GinManager) Set

func (m *GinManager) Set(c *gin.Context, value *session.Value) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL