Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultURL the default api service url DefaultURL = "https://tel.search.ch/api/" // TestURL the test api service url TestURL = "https://tel.search.ch/examples/api-response.xml" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { ID string `xml:"id"` Updated time.Time `xml:"updated"` Published time.Time `xml:"published"` Title Type `xml:"title"` Content Type `xml:"content"` Nopromo string `xml:"nopromo"` Autor Author `xml:"autor"` Link []Link `xml:"link"` Pos string `xml:"pos"` Type string `xml:"type"` Name string `xml:"name"` Firstname string `xml:"firstname"` Occupation string `xml:"occupation"` Street string `xml:"street"` StreetNo string `xml:"streetno"` Zip string `xml:"zip"` City string `xml:"city"` Canton string `xml:"canton"` Phone string `xml:"phone"` Category []string `xml:"category"` Extra []Type `xml:"extra"` }
Entry result entry
type Feed ¶
type Feed struct { XMLName xml.Name `xml:"feed"` Lang string `xml:"lang,attr"` Xmlns string `xml:"xmlns,attr"` OpenSearch string `xml:"openSearch,attr"` Tel string `xml:"tel,attr"` ID string `xml:"id"` Title Type `xml:"title"` Generator Generator `xml:"generator"` Updated string `xml:"updated"` Link []Link `xml:"link"` ErrorCode int `xml:"errorCode,omitempty"` ErrorReason string `xml:"errorReason,omitempty"` ErrorMessage string `xml:"errorMessage,omitempty"` TotalResults int `xml:"totalResults"` StartIndex int `xml:"startIndex"` ItemsPerPage int `xml:"itemsPerPage"` Query Query `xml:"Query"` Entry []Entry `xml:"entry"` }
Feed result feed
type Link ¶
type Link struct { Href string `xml:"href,attr"` Title string `xml:"title,attr"` Rel string `xml:"rel,attr"` Type string `xml:"type,attr"` }
Link link element
Click to show internal directories.
Click to hide internal directories.