mysql

package
v0.0.0-...-33050dc Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserManager

type UserManager struct {
	DB *sql.DB
}

func (UserManager) CreateUser

func (m UserManager) CreateUser(u *user.User) error

func (UserManager) FindUsersByIds

func (m UserManager) FindUsersByIds(ids []string) ([]*user.User, error)

func (UserManager) FindUsersByUsernameOrName

func (m UserManager) FindUsersByUsernameOrName(name string) ([]*user.User, error)

func (UserManager) GetUserById

func (m UserManager) GetUserById(id string) (*user.User, error)

func (UserManager) GetUserByUsername

func (m UserManager) GetUserByUsername(username string) (*user.User, error)

func (UserManager) UpdateUser

func (m UserManager) UpdateUser(u *user.User) error

Jump to

Keyboard shortcuts

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