Versions in this module Expand all Collapse all v0 v0.8.0 Jun 24, 2017 Changes in this version + const BYTE + const EventMetadataKey + const FieldsKey + const GIGABYTE + const KILOBYTE + const MEGABYTE + const TERABYTE + const TagsKey + var ErrKeyNotFound = errors.New("key not found") + func AddTags(ms MapStr, tags []string) error + func AutoGetAddress(addr string) string + func ByteSize(bytes uint64) string + func BytesToUint32(b []byte) (v uint32) + func BytesToUint64(b []byte) (v uint64) + func CheckInstanceLock(p string) + func ClearInstanceLock() + func ContainStr(s, substr string) bool + func CopyFile(src, dst string) (w int64, err error) + func CreateFile(dir string, name string) (string, error) + func DeepCopy(value interface{}) interface + func FileAppendContentWithByte(file string, content []byte) (int, error) + func FileAppendNewLine(file string, content string) (int, error) + func FileAppendNewLineWithByte(file string, content []byte) (int, error) + func FileExists(path string) bool + func FileGetContent(file string) ([]byte, error) + func FileMTime(file string) (int64, error) + func FilePutContent(file string, content string) (int, error) + func FilePutContentWithByte(file string, content []byte) (int, error) + func FileSize(file string) (int64, error) + func FilterDirName(name string) bool + func FormatTime(date *time.Time) string + func FormatUrlForFilter(url []byte) []byte + func GetAvailablePort(ip string, port int) int + func GetHost(url string) string + func GetIncrementID(bucket string) string + func GetRootUrl(source *URL) string + func GetRuntimeErrorMessage(r runtime.Error) string + func GetUUID() string + func GetUrlPathFolderWithoutFile(url []byte) []byte + func GetValidAddress(addr string) string + func HttpGet(resource string) (msg []byte, err error) + func HttpPostJSON(url string, cookie string, postStr string) []byte + func Invoke(any interface{}, name string, args ...interface{}) + func IsExist(path string) bool + func IsFile(file string) bool + func IsValidTLD(tld string) bool + func JoinPath(filenames ...string) string + func MergeFields(ms, fields MapStr, underRoot bool) error + func MergeSpace(in string) (out string) + func NoWordBreak(in string) string + func Post(url string, values url.Values) []byte + func RandomPickName() string + func ReadAllLines(file string) []string + func Readln(r *bufio.Reader) (string, error) + func Rename(file string, to string) error + func StringToUTF16(s string) []uint16 + func SubString(str string, begin, length int) (substr string) + func SubStringWithSuffix(str string, length int, suffix string) string + func TestListenPort(ip string, port int) bool + func TestPort(port int) bool + func ToBytes(s string) (uint64, error) + func ToInt(str string) (int, error) + func ToJson(in interface{}, indent bool) string + func ToMegabytes(s string) (uint64, error) + func Uint32toBytes(b []byte, v uint32) + func Uint64toBytes(b []byte, v uint64) + func UnicodeIndex(str, substr string) int + func Unlink(file string) error + func XSSHandle(src string) string + type EventMetadata struct + Fields MapStr + FieldsUnderRoot bool + Tags []string + type FileRepos []Repository + func (r FileRepos) Len() int + func (r FileRepos) Less(i, j int) bool + func (r FileRepos) Swap(i, j int) + type MapStr map[string]interface + func (m MapStr) Clone() MapStr + func (m MapStr) CopyFieldsTo(to MapStr, key string) error + func (m MapStr) Delete(key string) error + func (m MapStr) GetValue(key string) (interface{}, error) + func (m MapStr) HasKey(key string) (bool, error) + func (m MapStr) Put(key string, value interface{}) (interface{}, error) + func (m MapStr) String() string + func (m MapStr) StringToPrint() string + func (m MapStr) Update(d MapStr) + func MapStrUnion(dict1 MapStr, dict2 MapStr) MapStr + type Repository struct + FileTime int64 + Name string + type Result struct + Body []byte + Headers map[string][]string + Host string + Size uint64 + StatusCode int + Url string + func HttpGetWithCookie(resource string, cookie string, proxy string) (result *Result, err error) + type StringSet map[string]struct + func MakeStringSet(strings ...string) StringSet + func (set StringSet) Add(s string) + func (set StringSet) Count() int + func (set StringSet) Del(s string) + func (set StringSet) Has(s string) (exists bool)