Documentation ¶
Index ¶
- Constants
- func NewResponseReport(message string, start time.Time, reportID, authorID int64) (string, error)
- func NewResponseReports(success bool, start time.Time, reports []*data.Report) (string, error)
- func StatusMsg(message string, start time.Time) string
- type Comment
- type Comments
- type Report
- type Response
- type ResponseAddress
- type ResponseNewReport
- type ResponseReport
- type ResponseReports
Constants ¶
View Source
const (
XmlHeader string = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n"
)
Variables ¶
This section is empty.
Functions ¶
func NewResponseReport ¶
func NewResponseReports ¶
Types ¶
type Comment ¶
type Comment struct { DateCreated data.CustomTime `json:"DateCreated" xml:"DateCreated"` Comment string `json:"Text" xml:"Text"` }
type Report ¶
type Report struct { ID int64 `json:"Id" xml:"Id"` DateCreated data.CustomTime `json:"DateCreated" xml:"DateCreated"` DateUpdated data.CustomTime `json:"DateUpdated" xml:"DateUpdated"` RequestType string `json:"RequestType" xml:"RequestType"` Description string `json:"Description" xml:"Description"` Votes int64 `json:"Votes" xml:"Votes"` City string `json:"City" xml:"City"` State string `json:"State" xml:"State"` ZipCode string `json:"ZipCode" xml:"ZipCode"` Latitude float64 `xml:"Latitude" json:"Latitude"` Longitude float64 `xml:"Longitude" json:"Longitude"` Directionality string `json:"Directionality" xml:"Directionality"` ImageUrl string `json:"ImageUrl" xml:"ImageUrl"` ImageUrlXl string `json:"ImageUrlXl" xml:"ImageUrlXl"` ImageUrlLg string `json:"ImageUrlLg" xml:"ImageUrlLg"` ImageUrlMd string `json:"ImageUrlMd" xml:"ImageUrlMd"` ImageUrlSm string `json:"ImageUrlSm" xml:"ImageUrlSm"` ImageUrlXs string `json:"ImageUrlXs" xml:"ImageUrlXs"` UrlDetail string `json:"UrlDetail" xml:"UrlDetail"` UrlShortened string `json:"UrlShortened" xml:"UrlShortened"` StatusType string `json:"StatusType" xml:"StatusType"` TicketSLA string `json:"TicketSla" xml:"TicketSla"` Comments Comments `json:"Comments,omitempty" xml:"Comments,omitempty"` }
type ResponseAddress ¶
==============================================================================================================================
Address
==============================================================================================================================
type ResponseNewReport ¶
type ResponseReport ¶
type ResponseReport struct { Response Reports ResponseReports `xml:"Reports"` }
==============================================================================================================================
REPORTS
==============================================================================================================================
type ResponseReports ¶
Click to show internal directories.
Click to hide internal directories.