mapping

package
v0.0.0-...-28f18a2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiSearchResult

type ApiSearchResult struct {
	XMLName      xml.Name   `xml:"response" json:"-"`
	Query        string     `xml:"query" json:"query"`
	Location     string     `xml:"location" json:"location"`
	DupeFilter   bool       `xml:"dupefilter" json:"dupefilter"`
	HighLight    bool       `xml:"highlight" json:"highlight"`
	TotalResults int        `xml:"totalresults" json:"totalresults"`
	Start        int        `xml:"start" json:"start"`
	End          int        `xml:"end" json:"end"`
	Radius       int        `xml:"radius" json:"radius"`
	PageNumber   int        `xml:"pageNumber" json:"pageNumber"`
	Results      JobResults `xml:"results" json:"results"`
}

TODO: Fix json unmarshalling issues. Current story only calls for XML.

type ApplicationEvent

type ApplicationEvent struct {
	XMLName xml.Name  `xml:"event" json:"-"`
	Level   string    `xml:"level"`
	Message string    `xml:"message"`
	Date    time.Time `xml:"date"`
	Logger  string    `xml:"logger"`
	Path    string    `xml:"path"`
	Line    int       `xml:"line"`
	Address string    `xml:"address"`
}

type JobResult

type JobResult struct {
	XMLName               xml.Name   `xml:"result"`
	JobTitle              string     `xml:"jobtitle" json:"jobtitle"`
	Company               string     `xml:"company" json:"company"`
	City                  string     `xml:"city" json:"city"`
	State                 string     `xml:"state" json:"state"`
	Country               string     `xml:"country" json:"country"`
	FormattedLocation     string     `xml:"formattedLocation" json:"formattedLocation"`
	Source                string     `xml:"source" json:"source"`
	Date                  customTime `xml:"date" json:"date"`
	Snippet               string     `xml:"snippet" json:"snippet"`
	Url                   string     `xml:"url" json:"url"`
	OnMouseDown           string     `xml:"onmousedown" json:"onmousedown"`
	Latitude              float64    `xml:"latitude" json:"latitude"`
	Longitude             float64    `xml:"longitude" json:"longitude"`
	JobKey                string     `xml:"jobkey" json:"jobkey"`
	Sponsored             bool       `xml:"sponsored" json:"sponsored"`
	Expired               bool       `xml:"expired" json:"expired"`
	FormattedLocationFull string     `xml:"formattedLocationFull" json:"formattedLocationFull"`
	FormattedRelativeTime string     `xml:"formattedRelativeTime" json:"formattedRelativeTime"`
	FullJobSummary        string     `xml:"fullJobSummary"`
}

func NewLastJobResult

func NewLastJobResult() JobResult

func (*JobResult) GetDateString

func (j *JobResult) GetDateString() string

func (*JobResult) IsLast

func (j *JobResult) IsLast() bool

type JobResults

type JobResults struct {
	XMLName       xml.Name    `xml:"results" json:"-"`
	JobResultList []JobResult `xml:"result"`
}

Jump to

Keyboard shortcuts

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