request

package
v0.0.0-...-d5107d6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Process

func Process(input string, start time.Time) (string, error)

Types

type CreateReportComment

type CreateReportComment struct {
	Request
	Processor
	ReportID string `xml:"ReportId" json:"ReportId"`

	Comment string `xml:"Comment" json:"Comment"`
	// contains filtered or unexported fields
}

func (*CreateReportComment) Run

func (st *CreateReportComment) Run() (string, error)

func (CreateReportComment) String

func (st CreateReportComment) String() string

func (*CreateReportComment) Validate

func (st *CreateReportComment) Validate(start time.Time) string

type CreateReportVote

type CreateReportVote struct {
	Request
	Processor
	ReportID string `xml:"ReportId" json:"ReportId"`
	// contains filtered or unexported fields
}

func (*CreateReportVote) Run

func (st *CreateReportVote) Run() (string, error)

func (CreateReportVote) String

func (st CreateReportVote) String() string

func (*CreateReportVote) Validate

func (st *CreateReportVote) Validate(start time.Time) string

type CreateThreeOneOne

type CreateThreeOneOne struct {
	Request
	Processor
	data.BaseReport
	KeyValuePairs []KeyValuePair `xml:"KeyValuePairs>KeyValuePair"`
}

func (*CreateThreeOneOne) Run

func (st *CreateThreeOneOne) Run() (string, error)

func (CreateThreeOneOne) String

func (s CreateThreeOneOne) String() string

func (*CreateThreeOneOne) Validate

func (st *CreateThreeOneOne) Validate(start time.Time) string

type GetReport

type GetReport struct {
	Request
	Processor
	ReportID       string `xml:"ReportId" json:"ReportId"`
	ReportIDV      int64  //
	IncludeDetails string `xml:"IncludeDetails" json:"IncludeDetails"`

	IncludeComments string `xml:"IncludeComments" json:"IncludeComments"`

	IncludeVotes string `xml:"IncludeVotes" json:"IncludeVotes"`

	DateRangeStart data.CustomTime `xml:"DateRangeStart" json:"DateRangeStart"`
	DateRangeEnd   data.CustomTime `xml:"DateRangeEnd" json:"DateRangeEnd"`
	CurrentStatus  string          `xml:"CurrentStatus" json:"CurrentStatus"`
	// contains filtered or unexported fields
}

func (*GetReport) Run

func (st *GetReport) Run() (string, error)

func (GetReport) String

func (st GetReport) String() string

func (*GetReport) Validate

func (st *GetReport) Validate(start time.Time) string

type GetReportsByAddress

type GetReportsByAddress struct {
	Request
	Processor
	Address string `xml:"Address" json:"Address"`
	Radius  string `xml:"Radius" json:"Radius"`

	MaxResults string `xml:"MaxResults" json:"MaxResults"`

	IncludeDetails string `xml:"IncludeDetails" json:"IncludeDetails"`

	IncludeComments string `xml:"IncludeComments" json:"IncludeComments"`

	DateRangeStart data.CustomTime `xml:"DateRangeStart" json:"DateRangeStart"`
	DateRangeEnd   data.CustomTime `xml:"DateRangeEnd" json:"DateRangeEnd"`
	CurrentStatus  string          `xml:"CurrentStatus" json:"CurrentStatus"`
	// contains filtered or unexported fields
}

func (*GetReportsByAddress) Run

func (st *GetReportsByAddress) Run() (string, error)

func (GetReportsByAddress) String

func (st GetReportsByAddress) String() string

func (*GetReportsByAddress) Validate

func (st *GetReportsByAddress) Validate(start time.Time) string

type GetReportsByDeviceID

type GetReportsByDeviceID struct {
	Request
	Processor
	DeviceID   string `xml:"DeviceId" json:"DeviceId"`
	MaxResults string `xml:"MaxResults" json:"MaxResults"`

	IncludeDetails string `xml:"IncludeDetails" json:"IncludeDetails"`

	IncludeComments string `xml:"IncludeComments" json:"IncludeComments"`

	DateRangeStart data.CustomTime `xml:"DateRangeStart" json:"DateRangeStart"`
	DateRangeEnd   data.CustomTime `xml:"DateRangeEnd" json:"DateRangeEnd"`
	CurrentStatus  string          `xml:"CurrentStatus" json:"CurrentStatus"`
	// contains filtered or unexported fields
}

func (*GetReportsByDeviceID) Run

func (st *GetReportsByDeviceID) Run() (string, error)

func (GetReportsByDeviceID) String

func (st GetReportsByDeviceID) String() string

func (*GetReportsByDeviceID) Validate

func (st *GetReportsByDeviceID) Validate(start time.Time) string

type GetReportsByLatLng

type GetReportsByLatLng struct {
	Request
	Processor
	Latitude   string  `xml:"Latitude" json:"Latitude"`
	LatitudeV  float64 //
	Longitude  string  `xml:"Longitude" json:"Longitude"`
	LongitudeV float64 //
	Radius     string  `xml:"Radius" json:"Radius"`

	MaxResults string `xml:"MaxResults" json:"MaxResults"`

	IncludeDetails string `xml:"IncludeDetails" json:"IncludeDetails"`

	IncludeComments string `xml:"IncludeComments" json:"IncludeComments"`

	DateRangeStart data.CustomTime `xml:"DateRangeStart" json:"DateRangeStart"`
	DateRangeEnd   data.CustomTime `xml:"DateRangeEnd" json:"DateRangeEnd"`
	CurrentStatus  string          `xml:"CurrentStatus" json:"CurrentStatus"`
	// contains filtered or unexported fields
}

func (*GetReportsByLatLng) Run

func (st *GetReportsByLatLng) Run() (string, error)

func (GetReportsByLatLng) String

func (st GetReportsByLatLng) String() string

func (*GetReportsByLatLng) Validate

func (st *GetReportsByLatLng) Validate(start time.Time) string

type GetReportsByZipCode

type GetReportsByZipCode struct {
	Request
	Processor
	ZipCode    string `xml:"ZipCode" json:"ZipCode"`
	MaxResults string `xml:"MaxResults" json:"MaxResults"`

	IncludeDetails string `xml:"IncludeDetails" json:"IncludeDetails"`

	IncludeComments string `xml:"IncludeComments" json:"IncludeComments"`

	DateRangeStart data.CustomTime `xml:"DateRangeStart" json:"DateRangeStart"`
	DateRangeEnd   data.CustomTime `xml:"DateRangeEnd" json:"DateRangeEnd"`
	CurrentStatus  string          `xml:"CurrentStatus" json:"CurrentStatus"`
	// contains filtered or unexported fields
}

func (*GetReportsByZipCode) Run

func (st *GetReportsByZipCode) Run() (string, error)

func (GetReportsByZipCode) String

func (st GetReportsByZipCode) String() string

func (*GetReportsByZipCode) Validate

func (st *GetReportsByZipCode) Validate(start time.Time) string

type KeyValuePair

type KeyValuePair struct {
	Value string `xml:",chardata"`
	Key   string `xml:"Key,attr"`
}

type Processor

type Processor interface {
	Validate(time.Time) string
	Run() (string, error)
}

type Request

type Request struct {
	XMLName           xml.Name `xml:"CsRequest" json:"CsRequest"`
	ApiAuthKey        string   `xml:"ApiAuthKey" json:"ApiAuthKey"`
	ApiRequestType    string   `xml:"ApiRequestType" json:"ApiRequestType"`
	ApiRequestVersion string   `xml:"ApiRequestVersion" json:"ApiRequestVersion"`
	// contains filtered or unexported fields
}

func (*Request) SetStart

func (r *Request) SetStart(start time.Time)

func (*Request) Start

func (r *Request) Start() time.Time

func (Request) String

func (r Request) String() string

type UpdateThreeOneOne

type UpdateThreeOneOne struct {
	Request
	Processor
	ReportID string `xml:"TicketId" json:"TicketId"`

	TicketSLA string `xml:"TicketSla" json:"TicketSla"`
	// contains filtered or unexported fields
}

func (*UpdateThreeOneOne) Run

func (st *UpdateThreeOneOne) Run() (string, error)

func (UpdateThreeOneOne) String

func (st UpdateThreeOneOne) String() string

func (*UpdateThreeOneOne) Validate

func (st *UpdateThreeOneOne) Validate(start time.Time) string

Jump to

Keyboard shortcuts

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