db

package
v0.0.0-...-b78f4d8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ISO8601 ISO8601
	ISO8601 = "2006-01-02T15:04:05.000-07:00"
)

Variables

View Source
var (

	// UIDPrefixPlayer User ID prefix for exposed fields in scripts (init)
	UIDPrefixPlayer = flag.String("UIDPrefixPlayer", "player:", "player uid prefix")

	ErrNotFoundMainUID     = errors.New("not found main uid")
	ErrNotFoundUID         = errors.New("not found uid")
	ErrNotFoundTokenBucket = errors.New("not found token bucket")
	ErrNotFoundToken       = errors.New("not found token")

	ErrNotFoundMainPlatform = errors.New("not found main platform")
	ErrCreatePlatformFail   = errors.New("create platform fail")
)

Functions

func DbGetUIDbyPUID

func DbGetUIDbyPUID(platform, pUID string, ininfo *string) (string, []string, string, error)

DbGetUIDbyPUID Find user ID by platform ID

func DbLoginRequ

func DbLoginRequ(uid, dbToken string) (string, error)

DbLoginRequ login by dbToken

func Init

func Init()

Init init db

func UnInit

func UnInit()

UnInit UnInit

Types

This section is empty.

Jump to

Keyboard shortcuts

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