Documentation ¶
Index ¶
- func CodeCount(n, key string, times int) bool
- func DeleteHealthCheck(jsonObj interface{}, timeNow time.Time) (a *MyERR.MyError)
- func DownHC(upstreamName, protocal, path string, times, timeout int)
- func DownOneStart(ctx context.Context, upstreamName, protocal, path string, ...)
- func GetHealthCheck(jsonObj interface{}, timeNow time.Time) (*MyERR.MyError, string)
- func HC()
- func HTTP(request string, t int) (code int, err error)
- func InitHealthCheck(timeNow time.Time) *MyERR.MyError
- func PatchHealthCheck(jsonObj interface{}, timeNow time.Time) (a *MyERR.MyError)
- func PutHealthCheck(jsonObj interface{}, timeNow time.Time) *MyERR.MyError
- func TCP(ip string, pingTimeout int) bool
- func TempToNuts(v []byte, h *healthCheck)
- func UpDownToNuts(u *upstream)
- func UpHC(upstreamName, protocal, path string, times, timeout int)
- func UpOneStart(ctx context.Context, upstreamName, protocal, path string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHealthCheck ¶
DeleteHealthCheck : method for delete health check
func DownOneStart ¶
func DownOneStart(ctx context.Context, upstreamName, protocal, path string, sInterval, sTimes, sTimeout, fInterval, fTimes, fTimeout int)
DownOneStart : down status health check driver
func GetHealthCheck ¶
GetHealthCheck : method for get health check
func InitHealthCheck ¶
InitHealthCheck : goroutines for Init Health Check
func PatchHealthCheck ¶
PatchHealthCheck : method for patch health check
func PutHealthCheck ¶
PutHealthCheck : method for put health check
func TempToNuts ¶
func TempToNuts(v []byte, h *healthCheck)
TempToNuts : set health check template to nutsDB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.