task

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Create

type Create struct {
	Host        ID     `json:"host"`
	Project     ID     `json:"project"`
	Parent      ID     `json:"parent"`
	PrevSib     *ID    `json:"prevSib,omitempty"`
	Name        string `json:"name"`
	Description string `json:"description"`
	IsParallel  bool   `json:"isParallel"`
	User        *ID    `json:"user,omitempty"`
	TimeEst     uint64 `json:"timeEst"`
	CostEst     uint64 `json:"costEst"`
}

func (*Create) Do

func (a *Create) Do(c *app.Client) (*CreateRes, error)

func (*Create) MustDo

func (a *Create) MustDo(c *app.Client) *CreateRes

func (*Create) Path

func (_ *Create) Path() string

type CreateRes

type CreateRes struct {
	Parent *Task `json:"parent,omitempty"`
	Task   *Task `json:"task"`
}

type Delete

type Delete Get

func (*Delete) Do

func (a *Delete) Do(c *app.Client) (*Task, error)

func (*Delete) MustDo

func (a *Delete) MustDo(c *app.Client) *Task

func (*Delete) Path

func (_ *Delete) Path() string

type Get

type Get struct {
	Host    ID `json:"host"`
	Project ID `json:"project"`
	ID      ID `json:"id"`
}

func (*Get) Do

func (a *Get) Do(c *app.Client) (*Task, error)

func (*Get) MustDo

func (a *Get) MustDo(c *app.Client) *Task

func (*Get) Path

func (_ *Get) Path() string

type GetAncestors

type GetAncestors struct {
	Host    ID     `json:"host"`
	Project ID     `json:"project"`
	ID      ID     `json:"id"`
	Limit   uint16 `json:"limit,omitempty"`
}

func (*GetAncestors) Do

func (a *GetAncestors) Do(c *app.Client) (*GetSetRes, error)

func (*GetAncestors) MustDo

func (a *GetAncestors) MustDo(c *app.Client) *GetSetRes

func (*GetAncestors) Path

func (_ *GetAncestors) Path() string

type GetChildren

type GetChildren struct {
	Host    ID     `json:"host"`
	Project ID     `json:"project"`
	ID      ID     `json:"id"`
	After   *ID    `json:"after,omitempty"`
	Limit   uint16 `json:"limit,omitempty"`
}

func (*GetChildren) Do

func (a *GetChildren) Do(c *app.Client) (*GetSetRes, error)

func (*GetChildren) MustDo

func (a *GetChildren) MustDo(c *app.Client) *GetSetRes

func (*GetChildren) Path

func (_ *GetChildren) Path() string

type GetSetRes

type GetSetRes struct {
	Set  []*Task `json:"set"`
	More bool    `json:"more"`
}

type GetTree

type GetTree struct {
	Host    ID `json:"host"`
	Project ID `json:"project"`
	ID      ID `json:"id"`
}

can only be called on a node with <= 1000 descN

func (*GetTree) Do

func (a *GetTree) Do(c *app.Client) (GetTreeRes, error)

func (*GetTree) MustDo

func (a *GetTree) MustDo(c *app.Client) GetTreeRes

func (*GetTree) Path

func (_ *GetTree) Path() string

type GetTreeRes

type GetTreeRes map[ID]*Task

type Task

type Task struct {
	ID          ID        `json:"id"`
	Parent      *ID       `json:"parent"`
	FirstChild  *ID       `json:"firstChild"`
	NextSib     *ID       `json:"nextSib"`
	User        *ID       `json:"user"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	CreatedBy   ID        `json:"createdBy"`
	CreatedOn   time.Time `json:"createdOn"`
	TimeSubMin  uint64    `json:"timeSubMin"`
	TimeEst     uint64    `json:"timeEst"`
	TimeInc     uint64    `json:"timeInc"`
	TimeSubEst  uint64    `json:"timeSubEst"`
	TimeSubInc  uint64    `json:"timeSubInc"`
	CostEst     uint64    `json:"costEst"`
	CostInc     uint64    `json:"costInc"`
	CostSubEst  uint64    `json:"costSubEst"`
	CostSubInc  uint64    `json:"costSubInc"`
	FileN       uint64    `json:"fileN"`
	FileSize    uint64    `json:"fileSize"`
	FileSubN    uint64    `json:"fileSubN"`
	FileSubSize uint64    `json:"fileSubSize"`
	ChildN      uint64    `json:"childN"`
	DescN       uint64    `json:"descN"`
	IsParallel  bool      `json:"isParallel"`
}

type Update

type Update struct {
	Host        ID            `json:"host"`
	Project     ID            `json:"project"`
	ID          ID            `json:"id"`
	Parent      *field.ID     `json:"parent,omitempty"`
	PrevSib     *field.IDPtr  `json:"prevSib,omitempty"`
	Name        *field.String `json:"name,omitempty"`
	Description *field.String `json:"description,omitempty"`
	IsParallel  *field.Bool   `json:"isParallel,omitempty"`
	User        *field.IDPtr  `json:"user,omitempty"`
	TimeEst     *field.UInt64 `json:"timeEst,omitempty"`
	CostEst     *field.UInt64 `json:"costEst,omitempty"`
}

func (*Update) Do

func (a *Update) Do(c *app.Client) (*UpdateRes, error)

func (*Update) MustDo

func (a *Update) MustDo(c *app.Client) *UpdateRes

func (*Update) Path

func (_ *Update) Path() string

type UpdateRes

type UpdateRes struct {
	OldParent *Task `json:"oldParent,omitempty"`
	NewParent *Task `json:"newParent,omitempty"`
	Task      *Task `json:"task"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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