comment

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Task      ID        `json:"task"`
	ID        ID        `json:"id"`
	CreatedBy ID        `json:"createdBy"`
	CreatedOn time.Time `json:"createdOn"`
	Body      string    `json:"body"`
}

type Create

type Create struct {
	Host    ID     `json:"host"`
	Project ID     `json:"project"`
	Task    ID     `json:"task"`
	Body    string `json:"Body"`
}

func (*Create) Do

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

func (*Create) MustDo

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

func (*Create) Path

func (_ *Create) Path() string

type Delete

type Delete struct {
	Host    ID `json:"host"`
	Project ID `json:"project"`
	Task    ID `json:"task"`
	ID      ID `json:"id"`
}

func (*Delete) Do

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

func (*Delete) MustDo

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

func (*Delete) Path

func (_ *Delete) Path() string

type Get

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

func (*Get) Do

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

func (*Get) MustDo

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

func (*Get) Path

func (_ *Get) Path() string

type GetRes

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

type Update

type Update struct {
	Host    ID     `json:"host"`
	Project ID     `json:"project"`
	Task    ID     `json:"task"`
	ID      ID     `json:"id"`
	Body    string `json:"body"`
}

func (*Update) Do

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

func (*Update) MustDo

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

func (*Update) Path

func (_ *Update) Path() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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