repository

package
v0.0.0-...-43feff1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implemented")

Functions

This section is empty.

Types

type Repository

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

func New

func New(dbpath string) (*Repository, error)

func (*Repository) Add

func (r *Repository) Add(ctx context.Context, user *model.User) error

func (*Repository) Get

func (r *Repository) Get(ctx context.Context, user *model.User) (*model.User, error)

func (*Repository) Has

func (r *Repository) Has(ctx context.Context, user *model.User) (bool, error)

func (*Repository) Refresh

func (r *Repository) Refresh(ctx context.Context, user *model.User) error

Jump to

Keyboard shortcuts

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