Documentation ¶
Index ¶
- func CSV2IntArray(csv string) ([]int64, error)
- func DecodeBasicAuthHeader(header string) (string, string, error)
- func DiffKeyValuesInMap(X, Y map[string]string) map[string]string
- func DiffSlice(X, Y []string) []string
- func GetTLSConfig(SSLCert, SSLKey, SSLCA string, InsecureSkipVerify bool) (*tls.Config, error)
- func RemoveDuplicatesUnordered(elements []string) []string
- func Splitter(s string, splits string) []string
- func WaitAlignForNextCycle(SecPeriod int, l Logger)
- type Logger
- type NetworkAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSV2IntArray ¶
CSV2IntArray CSV intenger array conversion
func DiffKeyValuesInMap ¶
DiffKeyValuesInMap does a diff key and values from 2 strings maps
func GetTLSConfig ¶
GetTLSConfig gets a tls.Config object from the given certs, key, and CA files. you must give the full path to the files. If all files are blank and InsecureSkipVerify=false, returns a nil pointer.
func RemoveDuplicatesUnordered ¶
RemoveDuplicatesUnordered removes duplicated elements in the array string
func WaitAlignForNextCycle ¶
WaitAlignForNextCycle waiths untile a next cycle begins aligned with second 00 of each minute
Types ¶
type Logger ¶
type Logger interface { Print(args ...interface{}) Printf(format string, args ...interface{}) Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warning(args ...interface{}) Warnf(format string, args ...interface{}) Warningf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) WithFields(fields logrus.Fields) *logrus.Entry }
Logger interface serve as a generic model to be used with *logrus.Logger or *logrus.Entry
type NetworkAddress ¶
func SplitHostPortDefault ¶
func SplitHostPortDefault(input, defaultHost, defaultPort string) (NetworkAddress, error)
Click to show internal directories.
Click to hide internal directories.