users

package
v0.0.0-...-f7c4fe3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository interface {
	Register(ctx context.Context, user models.UserPayload) (uuid.UUID, error)
	GetByUsername(ctx context.Context, username string) (*models.User, error)
	GetById(ctx context.Context, id uuid.UUID) (*models.User, error)
	UpdateById(ctx context.Context, id uuid.UUID, user models.UserPayload) error
	DeleteById(ctx context.Context, id uuid.UUID) error
}

type UsersService

type UsersService interface {
	Register(ctx context.Context, user models.UserPayload) (uuid.UUID, error)
	LoginByUsername(ctx context.Context, user models.UserPayload) (string, error)
	GetById(ctx context.Context, id uuid.UUID) (*models.User, error)
	GetByUsername(ctx context.Context, username string) (*models.User, error)
	UpdateById(ctx context.Context, id uuid.UUID, user models.UserPayload) error
	DeleteById(ctx context.Context, id uuid.UUID) error
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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