task

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "BACKLOG",
		1: "TODO",
		2: "INPROGRESS",
		3: "DONE",
	}
	Status_value = map[string]int32{
		"BACKLOG":    0,
		"TODO":       1,
		"INPROGRESS": 2,
		"DONE":       3,
	}
)

Enum value maps for Status.

View Source
var File_internal_pkg_entities_task_task_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Status

type Status int32
const (
	Status_BACKLOG    Status = 0
	Status_TODO       Status = 1
	Status_INPROGRESS Status = 2
	Status_DONE       Status = 3
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type Task

type Task struct {
	// ID describe the unique identify code of task
	ID string `json:"id" db:"id"`

	// ResultID describe the parent key result's id
	ResultID string `json:"result_id" db:"result_id"`

	// Title describe the title of task
	Title string `json:"title" db:"title"`

	// Status describe the status of task
	Status Status `json:"status" db:"status"`

	// Completed describe the completed of task
	Completed bool `json:"completed" db:"completed"`

	// CreateAt describe the task create milliseconds
	CreateAt int64 `json:"create_at" db:"create_at"`
}

Task declare a task basic information

func (*Task) ToLine

func (t *Task) ToLine() []string

ToLine serve caller to print a string slice

Jump to

Keyboard shortcuts

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