search

package
v0.0.0-...-58575ba Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	XMLName           xml.Name `xml:"Report" json:"Report"`
	ID                string   `json:"Id" xml:"Id"`
	DateCreated       string   `json:"DateCreated" xml:"DateCreated"`
	DateUpdated       string   `json:"DateUpdated" xml:"DateUpdated"`
	DeviceType        string   `json:"DeviceType" xml:"DeviceType"`
	DeviceModel       string   `json:"DeviceModel" xml:"DeviceModel"`
	DeviceID          string   `json:"DeviceId" xml:"DeviceId"`
	RequestType       string   `json:"RequestType" xml:"RequestType"`
	RequestTypeID     string   `json:"RequestTypeId" xml:"RequestTypeId"`
	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"`
	City              string   `json:"City" xml:"City"`
	State             string   `json:"State" xml:"State"`
	ZipCode           string   `json:"ZipCode" xml:"ZipCode"`
	Latitude          string   `xml:"Latitude" json:"Latitude"`
	Longitude         string   `xml:"Longitude" json:"Longitude"`
	Directionality    string   `json:"Directionality" xml:"Directionality"`
	Description       string   `json:"Description" xml:"Description"`
	AuthorNameFirst   string   `json:"AuthorNameFirst" xml:"AuthorNameFirst"`
	AuthorNameLast    string   `json:"AuthorNameLast" xml:"AuthorNameLast"`
	AuthorEmail       string   `json:"AuthorEmail" xml:"AuthorEmail"`
	AuthorTelephone   string   `json:"AuthorTelephone" xml:"AuthorTelephone"`
	AuthorIsAnonymous string   `xml:"AuthorIsAnonymous" json:"AuthorIsAnonymous"`
	URLDetail         string   `json:"UrlDetail" xml:"UrlDetail"`
	URLShortened      string   `json:"UrlShortened" xml:"UrlShortened"`
	Votes             string   `json:"Votes" xml:"Votes"`
	StatusType        string   `json:"StatusType" xml:"StatusType"`
	TicketSLA         string   `json:"TicketSla" xml:"TicketSla"`
}

Report is the <Report> sub-element in the CitySourced XML response.

func (Report) String

func (s Report) String() string

Displays the NSearchRequestDID custom type.

type Reports

type Reports struct {
	ReportCount int       `xml:"ReportCount"`
	Reports     []*Report `xml:"Report"`
}

Reports is the <Reports> sub-element in the CitySourced XML response. It contains a list of the reports meeting the search criteria.

type RequestDID

type RequestDID struct {
	XMLName           xml.Name `xml:"CsRequest"`
	APIAuthKey        string   `json:"ApiAuthKey" xml:"ApiAuthKey"`
	APIRequestType    string   `json:"ApiRequestType" xml:"ApiRequestType"`
	APIRequestVersion string   `json:"ApiRequestVersion" xml:"ApiRequestVersion"`
	DeviceType        string   `json:"DeviceType" xml:"DeviceType"`
	DeviceID          string   `json:"DeviceId" xml:"DeviceId"`
	MaxResults        int      `json:"MaxResults" xml:"MaxResults"`
	IncludeDetails    bool     `json:"IncludeDetails" xml:"IncludeDetails"`
	DateRangeStart    string   `json:"DateRangeStart" xml:"DateRangeStart"`
	DateRangeEnd      string   `json:"DateRangeEnd" xml:"DateRangeEnd"`
}

RequestDID represents the XML payload for a report request to CitySourced.

func (*RequestDID) Process

func (r *RequestDID) Process(url string) (*Response, error)

Process executes the request to create a new report.

func (RequestDID) String

func (r RequestDID) String() string

Displays the contents of the Spec_Type custom type.

type RequestLL

type RequestLL struct {
	XMLName           xml.Name `xml:"CsRequest"`
	APIAuthKey        string   `json:"ApiAuthKey" xml:"ApiAuthKey"`
	APIRequestType    string   `json:"ApiRequestType" xml:"ApiRequestType"`
	APIRequestVersion string   `json:"ApiRequestVersion" xml:"ApiRequestVersion"`
	Latitude          float64  `json:"Latitude" xml:"Latitude"`
	Longitude         float64  `json:"Longitude" xml:"Longitude"`
	Radius            int      `json:"Radius" xml:"Radius"`
	MaxResults        int      `json:"MaxResults" xml:"MaxResults"`
	IncludeDetails    bool     `json:"IncludeDetails" xml:"IncludeDetails"`
	DateRangeStart    string   `json:"DateRangeStart" xml:"DateRangeStart"`
	DateRangeEnd      string   `json:"DateRangeEnd" xml:"DateRangeEnd"`
}

RequestLL represents the CitySourced XML payload for a search by Lat/Lng.

func (*RequestLL) Process

func (r *RequestLL) Process(url string) (*Response, error)

Process executes the request to create a new report.

func (RequestLL) String

func (r RequestLL) String() string

Displays the contents of the Spec_Type custom type.

type RequestRID

type RequestRID struct {
	XMLName           xml.Name `xml:"CsRequest"`
	APIAuthKey        string   `json:"ApiAuthKey" xml:"ApiAuthKey"`
	APIRequestType    string   `json:"ApiRequestType" xml:"ApiRequestType"`
	APIRequestVersion string   `json:"ApiRequestVersion" xml:"ApiRequestVersion"`
	ReportID          string   `json:"ReportId" xml:"ReportId"`
	MaxResults        int      `json:"MaxResults" xml:"MaxResults"`
	IncludeDetails    bool     `json:"IncludeDetails" xml:"IncludeDetails"`
	DateRangeStart    string   `json:"DateRangeStart" xml:"DateRangeStart"`
	DateRangeEnd      string   `json:"DateRangeEnd" xml:"DateRangeEnd"`
}

RequestRID represents the XML payload for a report request to CitySourced.

func (*RequestRID) Process

func (r *RequestRID) Process(url string) (*Response, error)

Process executes the request to create a new report.

func (RequestRID) String

func (r RequestRID) String() string

Displays the contents of the Spec_Type custom type.

type Response

type Response struct {
	XMLName      xml.Name `xml:"CsResponse"`
	Message      string   `xml:"Message"`
	ResponseTime string   `xml:"ResponseTime"`
	Reports      Reports  `xml:"Reports"`
}

Response contains the search results.

func (Response) String

func (r Response) String() string

Displays the contents of the Spec_Type custom type.

Jump to

Keyboard shortcuts

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