model

package
v0.0.0-...-2873b17 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package model provides pure(without any method) data structures to be used across the boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormAddTask

type FormAddTask struct {
	Title       string
	Due         time.Time
	Description string
	Type        TaskType
	ParentID    int64
	Order       uint64
}

FormAddTask represents the input from user while adding a new task.

type Task

type Task struct {
	ID          int64
	Title       string
	Type        TaskType
	State       TaskState
	Due         time.Time
	Description string
	Order       uint64
}

Task is the response of a task to user.

type TaskState

type TaskState int

TaskState indicates the state of a task.

const (
	TaskStateNormal TaskState = iota
	TaskStateCompleted
)

All TaskState(s).

type TaskType

type TaskType int

TaskType indicates the type of the task.

const (
	TaskTypeCategory TaskType = iota
	TaskTypeTask
)

All task types.

Jump to

Keyboard shortcuts

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