repository

package
v0.0.0-...-8d2d31d Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserPostgressRepository

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

func CreatePostgressRepository

func CreatePostgressRepository(dsn string) UserPostgressRepository

func (UserPostgressRepository) AuthGetId

func (t UserPostgressRepository) AuthGetId(ctx context.Context, id uuid.UUID) (domain.User, error)

func (UserPostgressRepository) CheckUser

func (t UserPostgressRepository) CheckUser(ctx context.Context, login string, password string) string

func (*UserPostgressRepository) Create

func (t *UserPostgressRepository) Create(ctx context.Context, user domain.User) error

func (*UserPostgressRepository) Delete

func (UserPostgressRepository) FindById

func (UserPostgressRepository) Get

func (*UserPostgressRepository) Update

func (t *UserPostgressRepository) Update(ctx context.Context, user domain.User) error

Jump to

Keyboard shortcuts

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