Dan Anglin
c336fcd82b
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.
15 lines
248 B
Go
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
|
|
}
|