Documentation
¶
Index ¶
- type CarService
- func (service *CarService) CreateCar(car models.Car) []models.Car
- func (service *CarService) DeleteCar(car models.Car) []models.Car
- func (service *CarService) FindAll() []models.Car
- func (service *CarService) FindByID(id string) []models.Car
- func (service *CarService) UpdateCar(car models.Car) []models.Car
- type UserService
- func (service *UserService) CreateUser(user models.User) []models.User
- func (service *UserService) DeleteUser(user models.User) []models.User
- func (service *UserService) FindAll() []models.User
- func (service *UserService) FindByField(field string, value interface{}) []models.User
- func (service *UserService) UpdateUser(user models.User) []models.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarService ¶
type CarService struct {
// contains filtered or unexported fields
}
func NewCarService ¶
func NewCarService(config *models.Config, repository *repos.CarRepository) *CarService
func (*CarService) FindAll ¶
func (service *CarService) FindAll() []models.Car
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(config *models.Config, repository *repos.UserRepository) *UserService
func (*UserService) CreateUser ¶
func (service *UserService) CreateUser(user models.User) []models.User
func (*UserService) DeleteUser ¶
func (service *UserService) DeleteUser(user models.User) []models.User
func (*UserService) FindAll ¶
func (service *UserService) FindAll() []models.User
func (*UserService) FindByField ¶
func (service *UserService) FindByField(field string, value interface{}) []models.User
func (*UserService) UpdateUser ¶
func (service *UserService) UpdateUser(user models.User) []models.User
Click to show internal directories.
Click to hide internal directories.