Documentation
¶
Overview ¶
balance handles the load balancing portion of portal.
Index ¶
- Variables
- func DeleteServer(svcId, srvId string) error
- func DeleteService(id string) error
- func GetServer(svcId, srvId string) (*core.Server, error)
- func GetService(id string) (*core.Service, error)
- func GetServices() ([]core.Service, error)
- func Init() error
- func SetServer(svcId string, server *core.Server) error
- func SetServers(svcId string, servers []core.Server) error
- func SetService(service *core.Service) error
- func SetServices(services []core.Service) error
- func Sync() error
- type Lvs
- func (l *Lvs) DeleteServer(svcId, srvId string) error
- func (l *Lvs) DeleteService(id string) error
- func (l *Lvs) GetServer(svcId, srvId string) (*core.Server, error)
- func (l *Lvs) GetService(id string) (*core.Service, error)
- func (l *Lvs) GetServices() ([]core.Service, error)
- func (l *Lvs) Init() error
- func (l *Lvs) SetServer(svcId string, server *core.Server) error
- func (l *Lvs) SetServers(svcId string, servers []core.Server) error
- func (l *Lvs) SetService(service *core.Service) error
- func (l *Lvs) SetServices(services []core.Service) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeleteServer ¶
func DeleteService ¶
func GetServices ¶
func SetService ¶
func SetServices ¶
Types ¶
type Lvs ¶
type Lvs struct { }
func (*Lvs) GetServices ¶
GetServices doesn't need to be a pointer method because it doesn't modify original object
func (*Lvs) SetServers ¶
SetServers
Click to show internal directories.
Click to hide internal directories.