Documentation ¶
Overview ¶
Package service xxx
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLvsServiceNotInited xxx // ErrEndpointsClientNotInited show endpointsClient not inited ErrLvsServiceNotInited = errors.New("lvsService not inited") )
Functions ¶
This section is empty.
Types ¶
type LvsProxy ¶
type LvsProxy interface { // CreateVirtualServer create the specified VirtualServer by vs CreateVirtualServer(vs string) error // GetVirtualServer get virtual server by lvs GetVirtualServer() (string, error) // IsVirtualServerAvailable check vs available or not IsVirtualServerAvailable(vs string) bool // DeleteVirtualServer delete vs form host DeleteVirtualServer(vs string) error // CreateRealServer create real server CreateRealServer(rs string) error // ListRealServer list real servers by lvs ListRealServer() ([]string, error) // DeleteRealServer delete real server DeleteRealServer(rs string) error // GetScheduler get lvs scheduler GetScheduler() (string, error) }
LvsProxy is lvs virtualServer and realServer operation interface
Click to show internal directories.
Click to hide internal directories.