Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func NewLocalDB ¶
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 }
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)
}
Click to show internal directories.
Click to hide internal directories.