utils

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const TestTimeout = 1 * time.Second

Variables

This section is empty.

Functions

func MakeMapFromAttractorList

func MakeMapFromAttractorList(lst []*reader.Attractor) map[string]reader.Attractor

Input is a slice of Attractors. Return a map with key as attractor names.

func MakeMapFromConduitList

func MakeMapFromConduitList(lst []*reader.Conduit) map[string]reader.Conduit

Input is a slice of Conduits. Return a map with key as conduit names.

func MakeMapFromFlowList

func MakeMapFromFlowList(lst []*reader.Flow) map[string]reader.Flow

Input is a slice of Flows. Return a map with key as flow names.

func MakeMapFromGWList

func MakeMapFromGWList(lst []*reader.Gateway) map[string]reader.Gateway

Input is a slice of Gateways. Return a map with key as gateway names.

func MakeMapFromStreamList

func MakeMapFromStreamList(lst []*reader.Stream) map[string]reader.Stream

Input is a slice of Streams. Return a map with key as stream names.

func MakeMapFromVipList

func MakeMapFromVipList(lst []*reader.Vip) map[string]reader.Vip

Input is a slice of Vips. Return a map with key as vip names.

func WaitTimeout added in v1.0.1

func WaitTimeout(wg *sync.WaitGroup, timeout time.Duration) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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