package
0.4.3
Repository: https://github.com/jmpsec/osctrl.git
Documentation: pkg.go.dev

# Functions

BytesReceivedConversion - Helper to format bytes received into KB, MB, TB..
CheckUUID - Helper to check if a string is a valid UUID.
DebugHTTP - Helper for debugging purposes and dump a full HTTP request.
DebugHTTPDump - Helper for debugging purposes and dump a full HTTP request.
DurationSeconds - Helper to get the seconds value fom a Duration.
GenKSUID - Helper to generate a KSUID See https://github.com/segmentio/ksuid for more info about KSUIDs.
GenRandomString - Helper to generate a random string of n characters.
GenUUID - Helper to generate a UUID See https://github.com/google/uuid for more info about UUIDs.
GetIP - Helper to get the IP address from a HTTP request.
HTTPDownload - Helper to send HTTP response with a file.
HTTPResponse - Helper to send HTTP response.
InFutureTime - Helper to format future times only returning one value (minute, hour, day).
No description provided by the author
PastFutureTimes - Helper to format past or future times.
PastFutureTimesEpoch - Helper to format past or future times.
PastTimeAgo - Helper to format past times only returning one value (minute, hour, day).
Helper to generate a random MD5 to be used with queries/carves.
SendRequest - Helper function to send HTTP requests.
StringifyTime - Helper to get a string based on the difference of two times.
StringToBoolean - Helper to convert a string into boolean.
StringToInteger - Helper to convert a string into integer.
TimeTimestamp - Helper to format times in timestamp format.

# Constants

Authorization for header key.
CacheControl for header key.
CacheControlMustRevalidate for header key.
Connection for header key.
ContentDescription for header key.
ContentDisposition for header key.
ContentLength for header key.
ContentTransferEncoding for header key.
ContentType for header key.
Expires for header key.
JSONApplication for Content-Type headers.
JSONApplicationUTF8 for Content-Type headers, UTF charset.
KeepAlive for Connection headers.
OctetStream for Content-Type headers.
OsctrlUserAgent for customized User-Agent.
Pragma for header key.
PragmaPublic for header key.
TextPlain for Content-Type headers.
TextPlainUTF8 for Content-Type headers, UTF charset.
TransferEncodingBinary for header key.
UserAgent for header key.
No description provided by the author
XRealIP for header key.

# Variables

FifteenDays - 1296000 seconds.
OneDay - 86400 seconds.
OneHour - 3600 seconds.
OneMinute - 60 seconds.
SixHours - 21600 seconds.