repository

package
v0.0.0-...-69d8ed6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = sql.ErrNoRows
)

Functions

This section is empty.

Types

type Profile

type Profile interface {
	Get(ctx context.Context, username string) (*models.Profile, error)
	Create(ctx context.Context, profile models.Profile) (*models.Profile, error)
}

func NewProfileRepository

func NewProfileRepository(db bsql.Factory) Profile

type Transactor

type Transactor = bsql.Transactor

type User

type User interface {
	Get(ctx context.Context, username string) (*models.User, error)
	Create(ctx context.Context, user models.User) (*models.User, error)
}

func NewUserRepository

func NewUserRepository(db bsql.Factory) User

Jump to

Keyboard shortcuts

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