model

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID       TaskID     `json:"id"       db:"id"`
	UserID   UserID     `json:"userid"   db:"userid"`
	Title    string     `json:"title"    db:"title"`
	Status   TaskStatus `json:"status"   db:"status"`
	Created  string     `json:"created"  db:"created"`
	Modified string     `json:"modified" db:"modified"`
}

type TaskID

type TaskID int

type TaskList

type TaskList []*Task

type TaskStatus

type TaskStatus string
const (
	TaskStatusTodo  TaskStatus = "todo"
	TaskStatusDoing TaskStatus = "doing"
	TaskStatusDone  TaskStatus = "done"
)

type User added in v0.0.16

type User struct {
	ID       UserID `json:"id"       db:"id"`
	Name     string `json:"name"     db:"name"`
	Password string `json:"password" db:"password"`
	Created  string `json:"created"  db:"created"`
	Modified string `json:"modified" db:"modified"`
}

type UserID added in v0.0.16

type UserID int

Jump to

Keyboard shortcuts

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