Documentation ¶
Index ¶
- func CheckIfFileExists(filename string, hash string) (bool, string)
- func GetAllWordCount(dir string, w http.ResponseWriter) int
- func GetFrequentWords(order string, limit int, w http.ResponseWriter)
- func GetFreqwithCounts() map[int][]string
- func GetHashOfFile(filename string) string
- func GetWordsWithCounts() map[string]int
- func HashFileContent(file []byte) string
- func ReadFileWords(filename string, w http.ResponseWriter)
- func RemoveFile(filename string, hash string, w http.ResponseWriter)
- func ReplaceInStore(name string, hash string, fileContent []byte, w http.ResponseWriter)
- func UpdateFreqWithWord(dir string, w http.ResponseWriter)
- func UpdateWordsWithCounts(dir string, w http.ResponseWriter)
- func WriteToStore(name string, hash string, fileContent []byte, w http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllWordCount ¶
func GetAllWordCount(dir string, w http.ResponseWriter) int
func GetFrequentWords ¶
func GetFrequentWords(order string, limit int, w http.ResponseWriter)
func GetFreqwithCounts ¶
func GetHashOfFile ¶
func GetWordsWithCounts ¶
func HashFileContent ¶
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.
Click to show internal directories.
Click to hide internal directories.