api

package
v0.0.0-...-91d7570 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Body string `json:"body"`
}

type CreateTicket

type CreateTicket struct {
	Subject string  `json:"subject"`
	Comment Comment `json:"comment"`
}

type CreateTicketEnvelope

type CreateTicketEnvelope struct {
	Ticket CreateTicket `json:"ticket"`
}

type CustomField

type CustomField struct {
	ID    int    `json:"id"`
	Value string `json:"value"`
}

type Group

type Group struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type GroupEnvelope

type GroupEnvelope struct {
	Group Group `json:"group"`
}

type GroupMembership

type GroupMembership struct {
	Id      int  `json:"id"`
	Default bool `json:"default"`
	UserId  int  `json:"user_id"`
	GroupId int  `json:"group_id"`
}

type GroupMembershipsEnvelope

type GroupMembershipsEnvelope struct {
	GroupMemberships []GroupMembership `json:"group_memberships"`
}

type JobStatus

type JobStatus struct {
	Id       int    `json:"id"`
	Url      string `json:"url"`
	Total    int    `json:"total"`
	Progress int    `json:"progress"`
	Status   string `json:"status"`
}

type JobStatusEnvelope

type JobStatusEnvelope struct {
	JobStatus JobStatus `json:"job_status"`
}

type Ticket

type Ticket struct {
	ID           int           `json:"id"`
	Subject      string        `json:"subject"`
	CustomFields []CustomField `json:"custom_fields"`
}

type TicketEnvelope

type TicketEnvelope struct {
	Ticket Ticket `json:"ticket"`
}

type User

type User struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

type UserEnvelope

type UserEnvelope struct {
	User User `json:"user"`
}

Jump to

Keyboard shortcuts

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