taskmanager

package module
v0.0.0-...-5deee31 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TaskManager

func TaskManager(w http.ResponseWriter, r *http.Request)

TaskManager is entry point of Cloud Functions.

Types

type Parameter

type Parameter struct {
	ID     int64  `json:"ID"`
	Title  string `json:"title"`
	Status Status `json:"status"`
}

Parameter is the structure of the json parameter.

type Status

type Status int

Status is the progress of the task.

const (
	// ToDo is the task progress status.
	ToDo Status = iota + 1
	// InProgress is the task progress status.
	InProgress
	// Done is the task progress status.
	Done
)

type Task

type Task struct {
	ID        int64     `datastore:"-"`
	Title     string    `datastore:"title"`
	Status    Status    `datastore:"status"`
	CreatedAt time.Time `datastore:"createdAt"`
}

Task is the structure of the task.

Jump to

Keyboard shortcuts

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