Versions in this module Expand all Collapse all v0 v0.0.0 Jul 26, 2020 Changes in this version + const ERROR0 + const ERROR1 + const ERROR2 + const ERROR3 + const ERROR4 + const GetFileSources + const GetServerInfoURL + const GetServerSupportedFileTypes + const SearchBySampleInfoURL + const UploadSampleURL + const UserLoginURL + const VERSION + const WEBSITE + func Exists(path string) bool + func PasswordToBytes(password []byte) ([]byte, error) + type FileHashes struct + LZJD string + MD5 string + SDHash string + SHA1 string + SHA256 string + SHA512 string + SSDeep string + func GetFileHashesFromBytes(fileContents []byte) FileHashes + func GetFileHashesFromFilePath(fPath string) (*FileHashes, error) + func (hashes *FileHashes) GetSearchQuery() SearchSample + type FileType struct + Description string + TypeExecutable bool + TypeMagic []string + TypeName string + type GetSetAPIKey struct + APIKey string + Message string + UserName string + UserPassword string + type GetSourcesRequest struct + APIKey string + ReleasableOnly bool + type NewSample struct + FileContentsBase64 string + FileName string + SourceID int64 + UserKey string + type SampleInfo struct + ConfirmedMalicious bool + Entropy float64 + FileContentsBase64 string + FileCreatedDate string + FileExecutable bool + FileType string + FirstUploadDate string + ID int64 + LZJD string + Labels []string + MD5 string + SDHash string + SHA1 string + SHA256 string + SHA512 string + SSDeep string + SimilarityScore float64 + Size int + Sources []SampleSource + type SampleSource struct + FileNames []string + SourceID int64 + SourceName string + UploaderUname string + type SearchResult struct + FoundSamples []SampleInfo + Message string + NumResults int + type SearchSample struct + APIKey string + LZJD string + MD5 string + SDHash string + SHA1 string + SHA256 string + SHA512 string + SSDeep string + SendSample bool + SimilarityThreshold float64 + type ServerFileTypes struct + FileTypes []FileType + NumFileTypes int + type ServerInfo struct + DBVersion string + GoVersion string + MDBVersion string + NumSamples int + OSName string + OSVersion string + Uptime string + type SourceInfo struct + Description string + FirstAcquisition time.Time + Id int64 + IsReleasable bool + Name string + URL string + type Sources struct + NumSources int + ResponseMessage string + Sources []SourceInfo