cookie

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *gin.Context, value string)

Create creates a new cookie.

func CreateAndRedirect

func CreateAndRedirect(c *gin.Context, value, redirect string)

CreateAndRedirect creates a new cookie.

func GetValue

func GetValue(c *gin.Context) (string, error)

GetValue returns the value of a cookie

func Invalidate

func Invalidate(c *gin.Context)

Invalidate invalidates a cookie

func InvalidateAndRedirect

func InvalidateAndRedirect(c *gin.Context, redirect string)

InvalidateAndRedirect invalidates a cookie

Types

This section is empty.

Jump to

Keyboard shortcuts

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