repository

package
v0.0.0-...-68ba144 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

This section is empty.

Types

type CategoryQuery

type CategoryQuery interface {
	CreateCategory(category *model.Category) error
	GetAllCategories() []model.Category
}

type DAO

type DAO interface {
	NewTaskQuery() TaskQuery
	NewCategoryQuery() CategoryQuery
	CloseDBConnection()
}

Interface that holds functions that returns object that implements those interfaces

func NewDao

func NewDao(db *gorm.DB) DAO

type TaskQuery

type TaskQuery interface {
	CreateTask(task *model.Task)
	ListTasks() []model.Task
	GetTask(taskId int) model.Task
	UpdateTask(task *model.Task)
}

Jump to

Keyboard shortcuts

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