Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RespStatus = prometheus.NewCounterVec(prometheus.CounterOpts{ Name: "response_code", Help: "Count different responses", }, []string{"url", "response_code"}) )
Functions ¶
func TimeUrl ¶
func TimeUrl(url string, c *TimedClient)
Types ¶
type ApiHandler ¶
type ApiHandler struct {
// contains filtered or unexported fields
}
func GetApiHandler ¶
func GetApiHandler(urls *[]string, urlsUpdateChan chan []string, urlAddChan chan string) *ApiHandler
func (*ApiHandler) Router ¶
func (a *ApiHandler) Router() *mux.Router
type ConnectionTimes ¶
type ReqResponse ¶
type ReqResponse struct { Status int Durations *ConnectionTimes }
type TimedClient ¶
type TimedClient struct {
// contains filtered or unexported fields
}
func (*TimedClient) Get ¶
func (c *TimedClient) Get(url string) ReqResponse
Click to show internal directories.
Click to hide internal directories.