pb

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: GPL-3.0 Imports: 9 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_pb_task_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Goal added in v1.2.8

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

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

	// KeyResults describe key results of objective
	KeyResults []*Result `json:"key_results" db:"key_results"`

	// StartAt describe the objective start timex milliseconds
	StartAt int64 `json:"start_at" db:"start_at"`

	// EndAt describe the objective end timex milliseconds
	EndAt int64 `json:"end_at" db:"end_at"`

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

Goal declare an objective basic information

func (*Goal) ToLine added in v1.2.8

func (o *Goal) ToLine() []string

ToLine serve caller to print a string slice

type Profile added in v1.2.10

type Profile struct {
	// ID describe the unique identify code of user
	ID string `json:"-" db:"sn"`

	// AccessToken describe this user's accessToken
	AccessToken string `json:"access_token" db:"access_token"`

	// Password describe user's password to login system
	Password string `json:"-" db:"password"`

	// Email describe user's email to login system
	Email string `json:"email" db:"email"`

	// SignupAt describe user signup platform milliseconds
	SignupAt int64 `json:"-" db:"signup_at"`
}

Profile declare a user basic information

type Result added in v1.2.8

type Result struct {
	// ID describe the unique identify code of key result
	ID string `json:"id" db:"id"`

	// GoalID describe the parent goal's id
	GoalID string `json:"goal_id" db:"goal_id"`

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

	// Target describe the target of key result
	Target int `json:"target" db:"target"`

	// Actual describe the actual of key result
	Actual int `json:"actual" db:"actual"`

	// Progress describe the progress of key result
	Progress int `json:"-"`

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

Result declare a key result basic information

func (*Result) ToLine added in v1.2.8

func (k *Result) ToLine() []string

ToLine serve caller to print a string slice

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