user

package
v0.0.0-...-01cd274 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB_ACCOUNT  *leveldb.DB
	DB_PASSWORD *leveldb.DB
	DB_SALT     *leveldb.DB
	DB_TOKEN    *leveldb.DB

	CA_TOKEN sync.Map

	CH_USERID chan int64
)

Functions

func Identity

func Identity(uid, token string) bool

Types

type Account

type Account struct {
	ID    string
	Token string
}

func (*Account) Register

func (a *Account) Register(account, password string) bool

func (*Account) SignRenew

func (a *Account) SignRenew()

func (*Account) Signin

func (a *Account) Signin(account, password string) bool

func (*Account) Signout

func (a *Account) Signout()

Jump to

Keyboard shortcuts

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