sqlite

package
v0.0.0-...-413c2b4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 7 Imported by: 0

README

why hashmaps?


names of manga are absurd
so instead of using hardcoded names as links
we map the name to a unique identifier in database (sqlite)


name               | identifier (unique)
----------------------------------------
8938467505p4       | Vagabond
3289376fkjg0       | Sousou No Frieren

this way
next time we open link, it will be
8938467505p4 -> Vagabond


next time we user requests 8938467505p4 
we find the corresponding directory
we go to manga/Vagabond
list all the cbz of manga/Vagabond/*.cbz

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfMangaExists

func CheckIfMangaExists(id int) int

func ClearHashmap

func ClearHashmap()

func GenerateUniqueIdenfitiers

func GenerateUniqueIdenfitiers()

func InsertChapters

func InsertChapters(volume int, id int)

func RetriveID

func RetriveID(hash string) int

func RetriveManga

func RetriveManga(name string, retrive RETRIVE_TYPE) string

Types

type RETRIVE_TYPE

type RETRIVE_TYPE uint8
const (
	HASH RETRIVE_TYPE = 0
	NAME RETRIVE_TYPE = 1
)

Jump to

Keyboard shortcuts

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