db_service

package
v0.0.0-...-5387047 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBImpl

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

func NewDBImpl

func NewDBImpl(username, password, ip, port string) *DBImpl

func (*DBImpl) GetUser

func (d *DBImpl) GetUser(ctx context.Context, username string) (*user.UserInfo, error)

func (*DBImpl) GetUserByNickName

func (d *DBImpl) GetUserByNickName(ctx context.Context, nickname string) (*user.UserInfo, error)

func (*DBImpl) UpdateUser

func (d *DBImpl) UpdateUser(ctx context.Context, user *user.UserInfo) error

Jump to

Keyboard shortcuts

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