db

package
v0.0.0-...-9626b3f Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SEEMANGAS = iota
	MANGAINN
	READM
	MANGAS_CHAN
)

It represents a site where manga data will be scraped, and also collections avaliable

View Source
const (
	ALL = iota
	HIGHLIGHTS
	POPULARS
	RECENT_UPLOADS
)

Options

Variables

View Source
var AuthUpload = os.Getenv("AUTH_KEY")

This key will be used by me when uploading manga data using another language or tool (such as Python[Selenium])

View Source
var ErrMangaNotFound = errors.New("manga not found")

Errors

View Source
var ErrUnauthorized = errors.New("you're not unauthorized to use this service")

Functions

func AddManga

func AddManga(server int, manga *web.Manga)

func FindManga

func FindManga(server int, title string) (manga web.Manga, err error)

Finds by the exactly given manga title on the database

func GetManga

func GetManga(server int, title string) (manga web.Manga, err error)

Returns a specified manga with the given title. E.g: "vinland saga"

func SearchManga

func SearchManga(server int, title string) (mangas []web.Manga, err error)

Search all mangas with the given title

func UpdateManga

func UpdateManga(server int, manga *web.Manga) (err error)

Update manga data on database

Types

This section is empty.

Jump to

Keyboard shortcuts

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