repository

package
v0.0.0-...-e0cbe86 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func NewDB

func NewDB(c config.Config) error

func NewLocalDB

func NewLocalDB(c config.Config) error

Types

type BoardMutation

type BoardMutation interface {
	CreateBoard(datastruct.Board) (*int64, error)
}

type BoardQuery

type BoardQuery interface {
	GetAllBoards() (*[]datastruct.Board, error)
}

type DAO

type DAO interface {
	NewTaskQuery() TaskQuery
	NewTaskMutation() TaskMutation
	NewBoardQuery() BoardQuery
	NewBoardMutation() BoardMutation
}

func NewDAO

func NewDAO() DAO

type TaskMutation

type TaskMutation interface {
	CreateTask(datastruct.Task) (*int64, error)
	UpdateTask(datastruct.Task) (*datastruct.Task, error)
	DeleteTask(int64) error
}

type TaskQuery

type TaskQuery interface {
	GetAllTasks() (*[]datastruct.Task, error)
}

Jump to

Keyboard shortcuts

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