sessions

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSESS

func InitSESS(logger *zerolog.Logger) redissess.SESSRedisDriver

InitSESS init session connection and instance

Types

type SESSInterface

type SESSInterface interface {
	Close()

	SetCommonSession(key string, val interface{}) error
	SetExpireSession(key string, val interface{}, expire int) error
	GetCommonSession(key string) ([]byte, error)

	RedisLockRefresh(redisKey string, expiration time.Duration) (succ bool)
	DelRedisKey(redisKey string) error

	SetCompletePart(dfsID string, allParts interface{})
	GetCompletePart(dfsID string) (allParts []byte)
	DelCompletePart(dfsID string)

	SetImurs(dfsID string, imurs interface{})
	GetImurs(dfsID string) (imurs []byte)
	DelImurs(dfsID string)

	DelAllParts(dfsID string)
}

SESSInterface interface for cross sessions

var SESS SESSInterface

SESS session query object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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