dbagent

package
v0.0.0-...-081a204 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindUID

func BindUID(platform int, appID string, openID string, UID uint64) error

BindUID bind a platform UID to master UID

func Init

func Init() error

Init init a default DBAgent agnet object use config

func InsertPlatformUID

func InsertPlatformUID(platform int, appID string, openID string, UID uint64) error

InsertPlatformUID insert a usre's UID to db

func InsertUID

func InsertUID(UID uint64) error

InsertUID insert a UID to db

func QueryUID

func QueryUID(platform int, appID string, openID string) (UID uint64, err error)

QueryUID query a user's UID

Types

type DBAgent

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

DBAgent is a Database proxy

Jump to

Keyboard shortcuts

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