service

package
v0.0.0-...-e6374c3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

func NewUserService

func NewUserService(s storage.Storager) UserService

func (*UserService) CreateUser

func (u *UserService) CreateUser(user models.User) error

func (*UserService) DeleteUser

func (u *UserService) DeleteUser(id int) error

func (*UserService) GetUser

func (u *UserService) GetUser(id int) (models.User, error)

func (*UserService) ListUsers

func (u *UserService) ListUsers() ([]models.User, error)

func (*UserService) UpdateUser

func (u *UserService) UpdateUser(user models.User) error

Jump to

Keyboard shortcuts

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