utils

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRealServer added in v0.0.3

func BuildRealServer(real string) *ipvs.RealServer

func BuildVirtualServer added in v0.0.3

func BuildVirtualServer(vip string) *ipvs.VirtualServer

func Config

func Config(level string)
var LevelMap = map[string]int{
	"EMER": LevelEmergency,
	"ALRT": LevelAlert,
	"CRIT": LevelCritical,
	"EROR": LevelError,
	"WARN": LevelWarning,
	"INFO": LevelInformational,
	"DEBG": LevelDebug,
	"TRAC": LevelTrace,
}

func IsHTTPAPIHealth

func IsHTTPAPIHealth(ip, port, path, schem string) bool

IsHTTPAPIHealth is check http error

func SplitServer

func SplitServer(server string) (string, uint16)

SplitServer is

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL