utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const NAT = "1:1_NAT"
View Source
const PORT_FORWARD = "PORT_FORWARD"

Variables

View Source
var Mutex = KeyMutex{}

Functions

func GetExistingNat

func GetExistingNat(natRules []swagger.InboundNatRule,
	natEntry swagger.InboundNatRule) (index int)

func Hash

func Hash(input interface{}) string

Types

type KeyMutex

type KeyMutex struct {
	// contains filtered or unexported fields
}

func (*KeyMutex) Get

func (ctx *KeyMutex) Get(key string) *sync.Mutex

Jump to

Keyboard shortcuts

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