users

package
v0.0.0-...-609b270 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UsersDAO

type UsersDAO interface {
	ValidateUser(ctx context.Context, r *http.Request, userName, password string) (auth.Info, error)
	CreateUser(ctx context.Context, r *http.Request, userName, password string) (auth.Info, error)
}

func NewUserRepository

func NewUserRepository(d *pgxpool.Pool) UsersDAO

type UsersRepsitory

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

func (*UsersRepsitory) CreateUser

func (u *UsersRepsitory) CreateUser(ctx context.Context, r *http.Request, userName, password string) (auth.Info, error)

func (*UsersRepsitory) ValidateUser

func (u *UsersRepsitory) ValidateUser(ctx context.Context, r *http.Request, userName, password string) (auth.Info, error)

Jump to

Keyboard shortcuts

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