db

package
v0.0.0-...-607cd57 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const SID_VERSION string = "V1"

Variables

This section is empty.

Functions

func Login

func Login(userName string, password string) (uint64, bool)

func SessionDecode

func SessionDecode(sid string) uint64

func SessionNew

func SessionNew(uid uint64) (string, error)

func ValidUidAndSid

func ValidUidAndSid(uid uint64, sid string) bool

Types

type SidAndUid

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

type UserNameAndPassword

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

Jump to

Keyboard shortcuts

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