# Functions
AddFileToZip adds file to zip including size header stats.
AppendError creates or appends second error to first error.
No description provided by the author
Contains returns true if an element is present in a iteratee.
No description provided by the author
Copy copies the exported fields from src to destUsed for copying the default transport.
No description provided by the author
CreateTMPDIR creates tmp dir at path configured via RUDDER_TMPDIR env var.
Returns chronological timestamp of the event using the formula timestamp = receivedAt - (sentAt - originalTimestamp).
No description provided by the author
GetIPFromReq gets ip address from request.
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).
GetMD5UUID hashes the given string into md5 and returns it as auuid.
No description provided by the author
GetOutboundIP returns preferred outbound ip of this machine https://stackoverflow.com/a/37382208.
GetParsedTimestamp returns the parsed timestamp.
GetRudderEventVal returns the value corresponding to the key in the message structure.
GetRudderID return the UserID from the object.
No description provided by the author
GetTagName gets the tag name using a uuid and name.
No description provided by the author
IncrementMapByKey starts with 1 and increments the counter of a key.
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
MakeRetryablePostRequest is Util function to make a post request.
No description provided by the author
No description provided by the author
No description provided by the author
ParseRudderEventBatch looks for the batch structure inside event.
PrintMemUsage outputs the current, total and OS memory being used.
No description provided by the author
ReadLines reads a whole file into memory and returns a slice of its lines.
RecordAppError appends the error occured to error_store.json.
No description provided by the author
No description provided by the author
No description provided by the author
RunWithTimeout runs provided function f until provided timeout d.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TailTruncateStr returns the last `count` digits of a string.
No description provided by the author
UnZipSingleFile unzips zip containing single file into ouputfile path passed.
ZipFiles compresses files[] into zip at filename.
# Constants
RFC3339Milli with milli sec precision.
# Variables
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
ErrorStoreT : DS to store the app errors.
No description provided by the author
PerfStats is the class for managing performance stats.
RudderError : to store rudder error.
No description provided by the author