services

package
v0.0.0-...-d263f1c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 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 JobService

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

func NewJobService

func NewJobService() *JobService

func (*JobService) Create

func (service *JobService) Create(job models.Job) (models.Job, error)

func (*JobService) Delete

func (service *JobService) Delete(id string) error

func (*JobService) Get

func (service *JobService) Get(id string) (models.Job, error)

func (*JobService) List

func (service *JobService) List() ([]models.Job, error)

func (*JobService) Update

func (service *JobService) Update(id string, job models.Job) (models.Job, error)

type UserService

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

func NewUserService

func NewUserService() *UserService

func (*UserService) Create

func (service *UserService) Create(user models.User) (models.User, error)

func (*UserService) Delete

func (service *UserService) Delete(id string) error

func (*UserService) Get

func (service *UserService) Get(id string) (models.User, error)

func (*UserService) List

func (service *UserService) List() ([]models.User, error)

func (*UserService) Update

func (service *UserService) Update(id string, user models.User) (models.User, error)

Jump to

Keyboard shortcuts

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