session

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(c *gin.Context) error

func Delete

func Delete(c *gin.Context, key string) error

func Get

func Get(c *gin.Context, key string) (interface{}, error)

func GetString

func GetString(c *gin.Context, key string) string

func MustGet

func MustGet(c *gin.Context, key string) interface{}

func Set

func Set(c *gin.Context, key, value string) error

Types

type KeyError

type KeyError struct {
	// contains filtered or unexported fields
}

Missing key in session

func (KeyError) Error

func (k KeyError) Error() string

Jump to

Keyboard shortcuts

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