Documentation
¶
Index ¶
- Constants
- Variables
- func AddLogger(logger *logger.Logger, connector, status string, ...)
- func AddRedacted(newRedacted string, useMutex bool)
- func AnonymizeURL(url string) string
- func AsJSON(data interface{}) string
- func Base64DecodeCookies(enc []byte) (cookies []string, err error)
- func Base64DecodeHeaders(enc []byte) (headers map[string][]string, err error)
- func Base64EncodeCookies(cookies []string) (enc []byte)
- func Base64EncodeHeaders(headers map[string][]string) (enc []byte)
- func BytesToStringTrunc(data []byte, maxLen int, addLenInfo bool) (str string)
- func ConvertTimeToFloat(t time.Time) float64
- func CookieToString(c *http.Cookie) (s string)
- func CreateESCache(ctx *Ctx)
- func DedupContributors(inContributors []insights.Contributor) (outContributors []insights.Contributor)
- func DeepSet(m interface{}, ks []string, v interface{}, create bool) (err error)
- func Dig(iface interface{}, keys []string, fatal, silent bool) (v interface{}, ok bool)
- func DumpKeys(i interface{}) string
- func DumpPreview(i interface{}, l int) string
- func ESCacheDelete(ctx *Ctx, key string)
- func ESCacheDeleteExpired(ctx *Ctx)
- func ESCacheSet(ctx *Ctx, key string, entry *ESCacheEntry)
- func EnsurePath(path string, noLastDir bool) (string, error)
- func ExecCommand(ctx *Ctx, cmdAndArgs []string, cwd string, env map[string]string) (sout, serr string, err error)
- func ExecCommandPipe(ctx *Ctx, cmdAndArgs []string, cwd string, env map[string]string) (stdOutPipe io.ReadCloser, cmd *exec.Cmd, err error)
- func FatalOnError(err error) string
- func Fatalf(f string, a ...interface{})
- func FilterRedacted(str string) string
- func FlagPassed(ctx *Ctx, name string) bool
- func GetDaysBetweenDates(t1 time.Time, t2 time.Time) float64
- func GetESCache(ctx *Ctx, k string) (b []byte, tg string, expires time.Time, ok bool)
- func GetL2Cache(ctx *Ctx, k string) (b []byte, ok bool)
- func GetLastUpdate(ctx *Ctx, key string) (lastUpdate *time.Time)
- func GetOldestDate(t1 *time.Time, t2 *time.Time) *time.Time
- func GetRedacted() (str string)
- func GetThreadsNum(ctx *Ctx) int
- func IndexAt(s, sep string, n int) int
- func InterfaceToStringTrunc(iface interface{}, maxLen int, addLenInfo bool) (str string)
- func IsBotIdentity(name, username, email, datasource string, botNameR string, botUsernameR string, ...) bool
- func IsValidDomain(domain string) (valid bool)
- func IsValidEmail(email string, validateDomain, guess bool) (valid bool, newEmail string)
- func JSONEscape(str string) string
- func KeysOnly(i interface{}) (o map[string]interface{})
- func MatchGroups(re *regexp.Regexp, arg string) (result map[string]string)
- func MatchGroupsArray(re *regexp.Regexp, arg string) (result map[string][]string)
- func MaybeESCacheCleanup(ctx *Ctx)
- func MaybeMemCacheCleanup(ctx *Ctx)
- func MemCacheDeleteExpired(ctx *Ctx)
- func NoSSLVerify()