service

package
v0.0.0-...-1fd53b6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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

func NewLvsProxy

func NewLvsProxy(scheduler string) LvsProxy

NewLvsProxy init LvsProxy interface

Jump to

Keyboard shortcuts

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