utils

package
v0.0.0-...-c46a175 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRealServer

func BuildRealServer(real string) *ipvs.RealServer

BuildRealServer build real to ipvs.RealServer

func BuildVirtualServer

func BuildVirtualServer(vip string) *ipvs.VirtualServer

BuildVirtualServer build vip to ipvs.VirtualServer

func SplitServer

func SplitServer(server string) (string, uint32)

SplitServer split server to ip, port

Types

type EndPoint

type EndPoint struct {
	IP   string
	Port uint32
}

EndPoint wrap IP&Port

func (EndPoint) String

func (ep EndPoint) String() string

String trans endpoint to ip:port

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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