db

package
v0.0.0-...-cec6815 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2019 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddWarnToUser

func AddWarnToUser(ctx *context.Context, userId int) (int, error)

func Initialize

func Initialize(ctx *context.Context)

func ResetUserWarn

func ResetUserWarn(ctx *context.Context, userId int) error

func UpdateUserData

func UpdateUserData(ctx *context.Context, User *UserData) (err error)

Types

type UserData

type UserData struct {
	Username string `json:"username"`
	UserID   int    `json:"id"`
	Name     string `json:"name"`
}

func GetUserData

func GetUserData(ctx *context.Context, username string) (*UserData, error)

Jump to

Keyboard shortcuts

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