Documentation ¶
Index ¶
- func AddFile(sample mdbcommon.NewSample) error
- func Entropy(p []byte) float64
- func FileTypeIDFromBytes(fileContents []byte, config *utils.ServerConfigFile) (int, error)
- func HandleExecutable(fileContents []byte, fileID int64, fileTypeID int)
- func HandleFileSubmission(fileName string, fileContents []byte, fileType int, userID int, sourceID int64)
- func HashToBytes(sha256Hash string) ([]byte, error)
- func HashToPath(sha256Hash string) string
- func RunSDHashBuffer(fileName string, fileContents []byte) string
- func RunSDHashPath(fPath string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileTypeIDFromBytes ¶
func FileTypeIDFromBytes(fileContents []byte, config *utils.ServerConfigFile) (int, error)
func HandleExecutable ¶
func HandleFileSubmission ¶
func HashToBytes ¶
func HashToPath ¶
func RunSDHashBuffer ¶
func RunSDHashPath ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.