cookie

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New() *Service

New 新建服务

func (*Service) Get

func (s *Service) Get(c *gin.Context, key string) (string, error)

Get 解密获取 Cookie

func (*Service) Init

func (s *Service) Init(args ...services.Service) services.Service

Init 初始化

func (*Service) Set

func (s *Service) Set(c *gin.Context, key, val string, args ...any)

Set 加密设置 Cookie

Jump to

Keyboard shortcuts

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