Discover Packages
gopkg.in/reportportal/commons-go.v5
commons
package
Version:
v5.0.3
Opens a new window with list of versions in this module.
Published: Jan 8, 2019
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetLocalIP returns first non-loopback IP address
KeySet returns array of map keys
Retry executes callback func until it executes successfully
func Schedule(timeout time .Duration , noDelay bool , callback func()) chan<- struct{}
Schedule executes callback func with some period.
no delays force callback to execute first time immediately
Function returns channel to stop scheduled execution
func ShutdownHook(hook func() error )
ShutdownHook adds function to be performed on app shutdown
type BuildInfo struct {
Version string `json:"version,omitempty"`
Branch string `json:"branch,omitempty"`
BuildDate string `json:"build_date,omitempty"`
Name string `json:"name,omitempty"`
Repo string `json:"repo,omitempty"`
}
BuildInfo contains information about the current build
GetBuildInfo returns build info data
Source Files
¶
Click to show internal directories.
Click to hide internal directories.