Documentation ¶
Index ¶
- Constants
- Variables
- func ChangeFileNameToCompleteAndMoveOrDelete(input string, output string, delete bool) error
- func ChangeFileNameToFailedAndMove(input, output string) error
- func ContainsInt(slice *[]int, i *int) bool
- func ContainsString(slice *[]string, s *string) bool
- func ConvertHexadecimalToInt(s *string) *int64
- func ConvertStringToFloat64(s *string) (*float64, error)
- func ConvertStringToIPCisco(ip *string) (*string, error)
- func ConvertStringToInt(s *string) (*int, error)
- func ConvertStringToInt64(s *string) (*int64, error)
- func ConvertStringToKeyValuePairs(s *string, d string, e string) map[string]string
- func ConvertStringToUnixTime(s *string, t *time.Location) (*int64, error)
- func ExtractPhoneNumberFromString(s *string) *string
- func ExtractTimeLocationFromString(s *string) (*time.Location, error)
- func FilenameFriendlyTimeStamp() string
- func ParseCUCMFilenameTimestamp(input string) (*int64, error)
- func RemoveSpaceFromString(s *string) *string
Constants ¶
View Source
const PhoneNumberSplit = "#:"
Variables ¶
View Source
var ( // ParseCUCMCDRs CMRReg = regexp.MustCompile(`^cmr_.*`) CDRReg = regexp.MustCompile(`^cdr_.*`) )
View Source
var ( ErrInvalidNTPReferenceAsterisk = errors.New("device has invalid ntp reference as indicated by asterisk (*) prepended to time") ErrInvalidNTPReferencePeriod = errors.New("device has invalid ntp reference as indicated by period (.) prepended to time") ErrInvalidTimeFormat = errors.New("time format is invalid") )
Functions ¶
func ContainsInt ¶
func ContainsString ¶
func ConvertHexadecimalToInt ¶
func ConvertStringToFloat64 ¶
func ConvertStringToIPCisco ¶
func ConvertStringToInt ¶
func ConvertStringToInt64 ¶
func ConvertStringToKeyValuePairs ¶
Take String, Delimiter, and Equality Charachter and return a map of key value pairs
func ConvertStringToUnixTime ¶
func FilenameFriendlyTimeStamp ¶
func FilenameFriendlyTimeStamp() string
func RemoveSpaceFromString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.