rtgo

package module
v0.0.0-...-9777845 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalShort

func UnmarshalShort(dataStr string, v interface{}) error

Types

type RT

type RT struct {
	// URL of the request tracker REST API
	URL string

	// Username to authenticate with
	Username string

	// Password to authenticate with
	Password string

	Client *http.Client
}

func NewRT

func NewRT(url string, username string, password string) *RT

Constructs a new RT instance for API requests. The URL is the base URL to the request tracker installation, without a trailing slash.

func (*RT) CreateTicket

func (rt *RT) CreateTicket(queue string, requestor string, subject string, text string) (int, error)

type Ticket

type Ticket struct {
	ID              string `rt:"id"`
	Queue           string
	Owner           string
	Creator         string
	Subject         string
	Status          string
	Priority        int
	InitialPriority int
	FinalPriority   int
	Requestors      string
	Cc              string
	AdminCc         string
	Created         time.Time
	Starts          time.Time
	Started         time.Time
	Due             time.Time
	Resolved        time.Time
	Told            time.Time
	LastUpdated     time.Time
	TimeEstimated   int
	TimeWorked      int
	TimeLeft        int
}

Jump to

Keyboard shortcuts

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