datastruct

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BoardTableName = "board"
View Source
const TaskTableName = "task"

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	ID   int64  `db:"id"`
	Name string `db:"name"`
	Desc string `db:"description"`
}

func (Board) Description

func (b Board) Description() string

func (Board) FilterValue

func (b Board) FilterValue() string

func (Board) String

func (b Board) String() string

func (Board) Title

func (b Board) Title() string

type Status

type Status int
const (
	Todo Status = iota
	InProgress
	Done
)

type Task

type Task struct {
	ID      int64  `db:"id"`
	Status  Status `db:"status"`
	Subject string `db:"subject"`
	Desc    string `db:"description"`
}

func (Task) Description

func (i Task) Description() string

func (Task) FilterValue

func (i Task) FilterValue() string

func (Task) String

func (t Task) String() string

func (Task) Title

func (i Task) Title() string

Jump to

Keyboard shortcuts

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