Documentation ¶ Index ¶ type DBImpl func NewDBImpl(username, password, ip, port string) *DBImpl func (d *DBImpl) GetUser(ctx context.Context, username string) (*user.UserInfo, error) func (d *DBImpl) GetUserByNickName(ctx context.Context, nickname string) (*user.UserInfo, error) func (d *DBImpl) UpdateUser(ctx context.Context, user *user.UserInfo) error 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 Source Files ¶ View all Source files db_service.go Click to show internal directories. Click to hide internal directories.