Documentation ¶
Overview ¶
Package types contains all of the structs for objects in Statping including services, hits, failures, Core, and others.
More info on: https://github.com/statping/statping
Index ¶
Constants ¶
View Source
const ( TIME_NANO = "2006-01-02T15:04:05Z" TIME = "2006-01-02 15:04:05" CHART_TIME = "2006-01-02T15:04:05.999999-07:00" TIME_DAY = "2006-01-02" )
Variables ¶
View Source
var ( ErrorServiceSelection = returnErr("error selecting services") // create errors ErrorCreateService = returnErr("error creating service") ErrorCreateMessage = returnErr("error creating messages") ErrorCreateIncident = returnErr("error creating incident") ErrorCreateUser = returnErr("error creating user") ErrorCreateIncidentUp = returnErr("error creating incident update") ErrorCreateGroup = returnErr("error creating group") ErrorCreateCheckinHit = returnErr("error creating checkin hit") ErrorCreateSampleHits = returnErr("error creating sample hits") ErrorCreateCore = returnErr("error creating core") ErrorCreateHit = returnErr("error creating hit for service %v") ErrorDirCreate = returnErr("error creating directory %s") ErrorFileCopy = returnErr("error copying file %s to %s") ErrorConfig = returnErr("error with configuration") ErrorConnection = returnErr("error with connection") ErrorNotFound = returnErrCode("item was not found", http.StatusNotFound) ErrorJSONParse = returnErrCode("could not parse JSON request", http.StatusBadRequest) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.