session

package
v0.0.0-...-29e02a0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* @Name: * @Descripttion: * @Warning: * @version: * @Author: moo * @Date: 2020-10-29 14:13:25 * @LastEditors: moo * @LastEditTime: 2020-10-29 14:14:01

Index

Constants

This section is empty.

Variables

View Source
var Store = cookie.NewStore([]byte("very-very-secret"))

Functions

func GetSession

func GetSession(c *gin.Context, sessionId string) (username string)

func SetSession

func SetSession(c *gin.Context, username string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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