cfha/engine/check.go

20 lines
345 B
Go
Raw Normal View History

2015-08-23 03:20:58 +00:00
package engine
import (
"time"
"../core"
"../checks"
)
func createCheck(interval uint16, engine *core.Engine, host core.TargetConfig) {
config := core.CheckCreateConfig{
engine,
time.Duration(int64(interval)) * time.Second,
host,
}
switch host.Type {
case "http", "https":
checks.NewHttpChecker(config)
}
}