Documentation ¶
Index ¶
- type Cache
- type Option
- type Server
- func (s Server) GetBookByID(w http.ResponseWriter, req *http.Request)
- func (s Server) GetCoverByID(w http.ResponseWriter, req *http.Request)
- func (s Server) GetPageByID(w http.ResponseWriter, req *http.Request)
- func (s Server) GetThumbnailByID(w http.ResponseWriter, req *http.Request)
- func (s Server) Register(r chi.Router)
- func (s Server) Related(w http.ResponseWriter, req *http.Request)
- func (s Server) Search(w http.ResponseWriter, req *http.Request)
- func (s Server) SearchByTag(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { GetDoujinshi(bookID int) (gnhentai.Doujinshi, error) SetDoujinshi(bookID int, d gnhentai.Doujinshi) error GetPage(bookID, n int) (io.ReadCloser, error) SetPage(bookID int, image io.ReadCloser) error GetCover(bookID int) (io.ReadCloser, error) SetCover(bookID int, image io.ReadCloser) error GetThumbnail(bookID int) (io.ReadCloser, error) SetThumbnail(bookID int, image io.ReadCloser) error Search(q string) ([]gnhentai.Doujinshi, error) SetSearch(q string, result []gnhentai.Doujinshi) error SearchByTag(tag gnhentai.Tag) ([]gnhentai.Doujinshi, error) SetSearchByTag(tag gnhentai.Tag, result []gnhentai.Doujinshi) error Related(bookID int) ([]gnhentai.Doujinshi, error) SetRelated(bookID int, result []gnhentai.Doujinshi) error }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (Server) GetBookByID ¶
func (s Server) GetBookByID(w http.ResponseWriter, req *http.Request)
func (Server) GetCoverByID ¶
func (s Server) GetCoverByID(w http.ResponseWriter, req *http.Request)
func (Server) GetPageByID ¶
func (s Server) GetPageByID(w http.ResponseWriter, req *http.Request)
func (Server) GetThumbnailByID ¶
func (s Server) GetThumbnailByID(w http.ResponseWriter, req *http.Request)
func (Server) SearchByTag ¶
func (s Server) SearchByTag(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.