user

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("user not found")

Functions

This section is empty.

Types

type MysqlRepo

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

func New

func New(q *query.Query, log *zap.Logger) (MysqlRepo, error)

func (MysqlRepo) GetByToken

func (m MysqlRepo) GetByToken(ctx context.Context, token string) (model.User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳