libs

package
v0.0.0-...-286f5c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfFileExists

func CheckIfFileExists(filename string, hash string) (bool, string)

func GetAllWordCount

func GetAllWordCount(dir string, w http.ResponseWriter) int

func GetFrequentWords

func GetFrequentWords(order string, limit int, w http.ResponseWriter)

func GetFreqwithCounts

func GetFreqwithCounts() map[int][]string

func GetHashOfFile

func GetHashOfFile(filename string) string

func GetWordsWithCounts

func GetWordsWithCounts() map[string]int

func HashFileContent

func HashFileContent(file []byte) string

func ReadFileWords

func ReadFileWords(filename string, w http.ResponseWriter)

func RemoveFile

func RemoveFile(filename string, hash string, w http.ResponseWriter)

func ReplaceInStore

func ReplaceInStore(name string, hash string, fileContent []byte, w http.ResponseWriter)

func UpdateFreqWithWord

func UpdateFreqWithWord(dir string, w http.ResponseWriter)

func UpdateWordsWithCounts

func UpdateWordsWithCounts(dir string, w http.ResponseWriter)

func WriteToStore

func WriteToStore(name string, hash string, fileContent []byte, w http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL