package
1.44.0
Repository: https://github.com/rudderlabs/rudder-server.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Copy copies the exported fields from src to dest Used for copying the default transport.
No description provided by the author
No description provided by the author
No description provided by the author
CreateTMPDIR creates tmp dir at path configured via RUDDER_TMPDIR env var.
DiskUsage calculates the path's disk usage recursively in bytes.
No description provided by the author
No description provided by the author
 Returns chronological timestamp of the event using the formula  timestamp = receivedAt - (sentAt - originalTimestamp).
GetConnectionString Returns Jobs DB connection configuration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetMandatoryJSONFieldNames returns all the json field names defined against the json tag for each field.
GetMD5Hash returns EncodeToString(md5 hash of the input string).
No description provided by the author
GetParsedTimestamp returns the parsed timestamp.
GetReservedFolderPaths returns all temporary folder paths.
No description provided by the author
No description provided by the author
No description provided by the author
GetTagName gets the tag name using a uuid and name.
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
No description provided by the author
No description provided by the author
IsValidUUID will check if provided string is a valid UUID */.
No description provided by the author
No description provided by the author
MapLookup returns the value of the key in the map, or nil if the key is not present.
MergeMaps merging with one level of nesting.
NestedMapLookup m: a map from strings to other maps or values, of arbitrary depth ks: successive keys to reach an internal or leaf node (variadic) If an internal node is reached, will return the internal map Returns: (Exactly one of these will be nil) rval: the target node (if found) err: an error created by fmt.Errorf.
NewAsyncInit returns a new AsyncInit object with the given expected initialization events count.
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
RemoveContents removes all the contents of the directory.
RemoveEmptyFolderStructureForFilePath recursively cleans up everything till it reaches the stage where the folders are not empty or parent.
RemoveFilePaths removes filePaths as well as cleans up the empty folder structure.
No description provided by the author
No description provided by the author
RetryWithNotify retries a function f with a timeout and a maximum number of attempts & calls notify on each failure.
RunWithTimeout runs provided function f until provided timeout d.
SanitizeJSON makes a json payload safe for writing into postgres.
No description provided by the author
SetAppNameInDBConnURL sets application name in db connection url if application name is already present in dns it will get override by the appName.
No description provided by the author
SleepCtx sleeps for the given duration or until the context is canceled.
TailTruncateStr returns the last `count` digits of a string.
No description provided by the author
No description provided by the author
UpdateJSONWithNewKeyVal enhances the json passed with key, val.

# Constants

No description provided by the author
RFC3339Milli with milli sec precision.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AsyncInit is a helper object to wait for multiple asynchronous initialization events.
No description provided by the author
ErrorStoreT : DS to store the app errors.
ExponentialNumber is a simple exponentially increasing number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RudderError : to store rudder error.
No description provided by the author

# Interfaces

No description provided by the author

# Type aliases

DefaultString is a utility type for providing default values using one-liners in otherwise multi-line scenarios.
No description provided by the author