services

package
v0.1.0-alpha.19 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskService

type TaskService interface {
	Get(id int) (*models.Task, error)
	GetAll() ([]*models.Task, error)
	GetIncomplete() ([]*models.Task, error)
	GetComplete() ([]*models.Task, error)
	Create(name string) (*models.Task, error)
}

type TaskServiceSql

type TaskServiceSql struct {
	Sqlx *sqlx.DB
}

func (TaskServiceSql) Create

func (s TaskServiceSql) Create(name string) (*models.Task, error)

func (TaskServiceSql) Get

func (s TaskServiceSql) Get(id int) (*models.Task, error)

func (TaskServiceSql) GetAll

func (s TaskServiceSql) GetAll() ([]*models.Task, error)

func (TaskServiceSql) GetComplete

func (s TaskServiceSql) GetComplete() ([]*models.Task, error)

func (TaskServiceSql) GetIncomplete

func (s TaskServiceSql) GetIncomplete() ([]*models.Task, error)

Jump to

Keyboard shortcuts

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