register

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClientIP

func AddClientIP(ip string)

AddClientIP adds a client ip to the register

func DeleteClientIP

func DeleteClientIP(ip string)

DeleteClientIP deletes a client ip from the register

func ExistClientIP

func ExistClientIP(ip string) bool

ExistClientIP checks if the client ip is in the register

func KeepAliveClientIP

func KeepAliveClientIP(ip string)

keepAlive keeps the client ip alive

func ListClientIPs added in v1.6.2

func ListClientIPs() []string

ListClientIPs returns the client ips in the register

func PickClientIP

func PickClientIP(cidr string) (clientIP string, prefixLength string)

PickClientIP picks a client ip from the register

Types

This section is empty.

Jump to

Keyboard shortcuts

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