package
1.65.4
Repository: https://github.com/untangle/golang-shared.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

ContainsString checks if a string is contained in an array of strings.
DecodeAttribute is used to decode strings into base64 encoded strings.
Pulls specified filenames out of a tar or tar.gz, depending on if isGzip is set.
NewSingleton -- new singleton.
NewSingletonNoConstructor -- returns a singleton without a constructor.
Helper function to randomize the order of an array.
StringArrayToDB converts a string array into a single string, using pipe as a delimiter.
WaitGroupDoneOrTimeout waits for the waitgroup for the specified max timeout.

# Structs

Executor is the struct used by most of the code: handlerResourceProvider, dynamic_lists, and system.
Observable type has a list of Listener objects that are called with a given session and 'extra information' put into an interface{} object when NotifyListeners are called.
Singleton implements a singleton.
ThreadsafeObservable is an observable that is threadsafe.

# Interfaces

ExecutorInterface allows us to mock calls to exec.Cmd.
ObservableInterface is an interface all Observables should adhere to.

# Type aliases

Listener type for geoip.