session

package
Version: v0.0.0-...-798c9db Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RandBytesCount int = 16
)

Variables

This section is empty.

Functions

func IsSession

func IsSession(k [RandBytesCount]byte) bool

func IsSessionBase58

func IsSessionBase58(k string) bool

func IsValid

func IsValid(k [RandBytesCount]byte) bool

func IsValidBase58

func IsValidBase58(k string) bool

func SessionActiveBase58

func SessionActiveBase58(k string)

func StartTimeOut

func StartTimeOut()

func StopTimeOut

func StopTimeOut()

Types

type SessionDesc

type SessionDesc struct {
	IsVerify       bool
	LastAccessTime int64
}

func NewSession

func NewSession() ([RandBytesCount]byte, *SessionDesc)

func NewSession2

func NewSession2() (string, *SessionDesc)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL