Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTPHeartbeat ¶
type HTTPHeartbeat struct { ID string Service HTTPService Logger *logrus.Logger Mongo *data.MongoClient }
func (*HTTPHeartbeat) CheckHeartbeat ¶
func (h *HTTPHeartbeat) CheckHeartbeat()
CheckHeartbeat - Http
type HTTPService ¶
type HTTPService struct { ID primitive.ObjectID `bson:"_id,omitempty"` Host string `bson:"host,omitempty" json:"host"` Name string `bson:"name,omitempty" json:"name"` Stype string `bson:"stype,omitempty" json:"stype"` AcceptedStatus map[int]bool `bson:"accepted_status,omitempty" json:"accepted_status"` Frequency float64 `bson:"frequency,omitempty" json:"frequency"` RequestMethod string `bson:"request_method,omitempty" json:"request_method"` RequestPayload string `bson:"request_payload,omitempty" json:"request_payload"` RequestHeaders [][2]string `bson:"request_headers,omitempty" json:"request_headers"` Lastupdate time.Time `bson:"last_update,omitempty"` }
Click to show internal directories.
Click to hide internal directories.