session_helper

package
v1.1.27 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SESSION_CODE_FLAG       = int32(0x40 << 24) // 0100 0000
	MAJOR_SESSION_FLAG      = int32(0x00)       // 0000 0000
	MINOR_SESSION_FLAG      = int32(0x20 << 24) // 0010 0000
	TEMP_SESSION_FLAG       = int32(0x10 << 24) // 0001 0000
	STARTUP_SESSION_MASK    = int64(0x7fffffff00000000)
	CONNECTION_SESSION_MASK = int64(0x000000007fffffff)
)

Variables

View Source
var (
	STARTUP_SESSION_EXPIRE = 120 * time.Second
)

Functions

func GenerateMajorSession

func GenerateMajorSession() int32

func GenerateMinorSession

func GenerateMinorSession() int32

func GenerateStartupSession

func GenerateStartupSession() int32

func GenerateTempSession

func GenerateTempSession() int32

func GetConnectionSession

func GetConnectionSession(s int64) int32

func GetStartupSession

func GetStartupSession(s int64) int32

func IsMajorSession

func IsMajorSession(s int64) bool

func IsMinorSession

func IsMinorSession(s int64) bool

func IsTempSession

func IsTempSession(s int64) bool

func NewSession

func NewSession(startup, conn int32) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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