Documentation ¶
Index ¶
- Constants
- Variables
- func Init(mode string, r *mux.Router, log utils.Logger)
- func RemoveTable(creq goapp.CallRequest, id string) error
- func UpdateTable(creq goapp.CallRequest, t Table) error
- type App
- type BaseTicket
- type Client
- type Config
- type CreateTicketResponse
- type Table
- type Tables
- type TicketDomain
Constants ¶
View Source
const ( FieldShortDescription = "short_description" FieldLongDescription = "description" )
Variables ¶
View Source
var BuildDate string
View Source
var BuildHash string
View Source
var BuildHashShort string
View Source
var ErrUnexpectedStatus = errors.New("returned with unexpected status")
Functions ¶
func RemoveTable ¶
func RemoveTable(creq goapp.CallRequest, id string) error
func UpdateTable ¶
func UpdateTable(creq goapp.CallRequest, t Table) error
Types ¶
type App ¶
func (*App) CreateIncident ¶
type BaseTicket ¶
type BaseTicket struct { ID string `json:"sys_id"` ClassName string `json:"sys_class_name"` Tags string `json:"sys_tags"` Domain TicketDomain `json:"sys_domain"` DomainPath string `json:"sys_domain_path"` ModCount string `json:"sys_mod_count"` UpdatedBy string `json:"sys_updated_by"` CreatedBy string `json:"sys_created_by"` }
type CreateTicketResponse ¶
type CreateTicketResponse struct {
Result BaseTicket `json:"result"`
}
type Table ¶
type Table struct { // Table ID and name ID string DisplayName string // Fields to include in the form to create tickets Fields []*apps.Field // BindTo controls what top-level bindings the table is exposed in. // PostFieldName indicates what text field is to be defaulted to the post's // message if invoked from the post menu. BindTo apps.Locations PostFieldName string }
type TicketDomain ¶
Click to show internal directories.
Click to hide internal directories.