rest

package
v0.3.82 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SharedRole = "shared"
	AdminRole  = "admin"
)

Variables

Functions

func GetAnnotation added in v0.3.33

func GetAnnotation(w http.ResponseWriter, r *http.Request)

func GetBook

func GetBook(w http.ResponseWriter, r *http.Request)

func GetBookCover added in v0.1.89

func GetBookCover(w http.ResponseWriter, r *http.Request)

func GetContents added in v0.3.50

func GetContents(w http.ResponseWriter, r *http.Request)
func GetExternalLinks(w http.ResponseWriter, r *http.Request)

func GetFile added in v0.1.4

func GetFile(w http.ResponseWriter, r *http.Request)

func GetFiles added in v0.3.31

func GetFiles(w http.ResponseWriter, r *http.Request)

func GetIcon added in v0.3.30

func GetIcon(w http.ResponseWriter, r *http.Request)

func GetInformation added in v0.3.39

func GetInformation(w http.ResponseWriter, r *http.Request)

func GetLatest added in v0.3.3

func GetLatest(w http.ResponseWriter, r *http.Request)

func GetListCover added in v0.1.89

func GetListCover(w http.ResponseWriter, r *http.Request)

func GetManifest added in v0.3.30

func GetManifest(w http.ResponseWriter, r *http.Request)

func GetReviews added in v0.3.48

func GetReviews(w http.ResponseWriter, r *http.Request)

func GetSearch

func GetSearch(w http.ResponseWriter, r *http.Request)

func GetSimilar added in v0.3.47

func GetSimilar(w http.ResponseWriter, r *http.Request)

func GetVideos added in v0.3.32

func GetVideos(w http.ResponseWriter, r *http.Request)

func HandleFuncs

func HandleFuncs(p int)

func Init

func Init() error

func SetPassword added in v0.1.10

func SetPassword(role, p string)

func SetUsername added in v0.1.10

func SetUsername(role, u string)

Types

type DownloadViewModel added in v0.3.3

type DownloadViewModel struct {
	Id          string
	Filename    string
	Description string
}

type LatestBookViewModel added in v0.3.3

type LatestBookViewModel struct {
	Id      string
	Title   string
	Authors []string
}

type NewBookViewModel added in v0.3.3

type NewBookViewModel struct {
	Id        string
	Title     string
	Authors   []string
	Downloads []*DownloadViewModel
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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