Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a babbage client
func (*Client) Checker ¶
Checker calls babbage health endpoint and returns a check object to the caller.
func (*Client) GetReleaseCalendar ¶
type Description ¶
type Description struct { Summary string `json:"summary"` NextRelease string `json:"nextRelease"` ReleaseDate time.Time `json:"releaseDate"` Finalised bool `json:"finalised"` Source string `json:"source"` Published bool `json:"published"` Title string `json:"title"` NationalStatistic bool `json:"nationalStatistic"` Unit string `json:"unit"` Contact *Contact `json:"contact"` ProvisionalDate string `json:"provisionalDate"` Cancelled bool `json:"cancelled"` PreUnit string `json:"preUnit"` CancellationNotice []string `json:"cancellationNotice"` }
type ErrInvalidBabbageResponse ¶
type ErrInvalidBabbageResponse struct {
// contains filtered or unexported fields
}
ErrInvalidBabbageResponse is returned when the babbage service does not respond with a status 200
func (ErrInvalidBabbageResponse) Code ¶
func (e ErrInvalidBabbageResponse) Code() int
Code returns the status code received from babbage if an error is returned
func (ErrInvalidBabbageResponse) Error ¶
func (e ErrInvalidBabbageResponse) Error() string
Error should be called by the user to print out the stringified version of the error
type ReleaseCalendar ¶
type Results ¶
type Results struct { Type string `json:"type"` Description *Description `json:"description"` SearchBoost *[]interface{} `json:"searchBoost"` URI string `json:"uri"` }
Click to show internal directories.
Click to hide internal directories.