pelican/kanban.go
Dan Anglin c336fcd82b
feat: add database functions
Add database functions to read and write statuses to the status bucket
in a BoltDB database.

Add database functions to read and write cards to the card bucket.

Use encoding/gob to encode the Status and Card values before writing
them to the database.
2021-08-16 01:56:56 +01:00

15 lines
248 B
Go

package main
// Status represents the status of the Kanban board.
type Status struct {
Id int
Name string
CardIds []int
}
// Card represents a card on a Kanban board
type Card struct {
Id int
Title string
Content string
}