Documentation
¶
Index ¶
- type AuthOptions
- type AuthType
- type Optional
- type Options
- type Server
- func (s *Server) AppendImagesToBuf(html string) ([]view.Image, error)
- func (s *Server) Auth(next http.Handler) http.Handler
- func (s *Server) HandleArchive(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleCurrent(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleDelete(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleDisable(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleExit(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleFavicon(w http.ResponseWriter, _ *http.Request)
- func (s *Server) HandleImage(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleLogin(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleLoginPost(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleMenu(w http.ResponseWriter, _ *http.Request)
- func (s *Server) HandleNew(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleNewQuery(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleNext(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandlePrev(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleSetting(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleSettingSet(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleUpdate(w http.ResponseWriter, r *http.Request)
- func (s *Server) LoadCurr()
- func (s *Server) LoadNext()
- func (s *Server) LoadPrev()
- func (s *Server) LoadThumbnail(manga *database.Manga) (path string, updated bool, err error)
- func (s *Server) RegisterRoutes()
- func (s *Server) Start() error
- func (s *Server) UpdateLatestAvailableChapter(manga *database.Manga) (error, bool)
- func (s *Server) UpdateMangaList()
- func (s *Server) ViewMenu(w http.ResponseWriter, mangas []*database.Manga, ...)
- type TlsOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOptions ¶
type Options ¶
type Options struct {
Port int
Auth Optional[AuthOptions]
Tls Optional[TlsOptions]
UpdateInterval time.Duration
}
func NewDefaultOptions ¶
func NewDefaultOptions() Options
type Server ¶
type Server struct {
PrevViewModel *view.ImageViewModel
CurrViewModel *view.ImageViewModel
NextViewModel *view.ImageViewModel
ImageBuffers map[string][]byte
Mutex *sync.Mutex
NextSubUrl string
CurrSubUrl string
PrevSubUrl string
Provider provider.Provider
IsFirst bool
IsLast bool
DbMgr *database.Manager
// contains filtered or unexported fields
}
func (*Server) AppendImagesToBuf ¶
func (*Server) HandleArchive ¶
func (s *Server) HandleArchive(w http.ResponseWriter, r *http.Request)
func (*Server) HandleCurrent ¶
func (s *Server) HandleCurrent(w http.ResponseWriter, r *http.Request)
func (*Server) HandleDelete ¶
func (s *Server) HandleDelete(w http.ResponseWriter, r *http.Request)
func (*Server) HandleDisable ¶
func (s *Server) HandleDisable(w http.ResponseWriter, r *http.Request)
func (*Server) HandleExit ¶
func (s *Server) HandleExit(w http.ResponseWriter, r *http.Request)
func (*Server) HandleFavicon ¶
func (s *Server) HandleFavicon(w http.ResponseWriter, _ *http.Request)
func (*Server) HandleImage ¶
func (s *Server) HandleImage(w http.ResponseWriter, r *http.Request)
func (*Server) HandleLogin ¶
func (s *Server) HandleLogin(w http.ResponseWriter, r *http.Request)
func (*Server) HandleLoginPost ¶
func (s *Server) HandleLoginPost(w http.ResponseWriter, r *http.Request)
func (*Server) HandleMenu ¶
func (s *Server) HandleMenu(w http.ResponseWriter, _ *http.Request)
func (*Server) HandleNewQuery ¶
func (s *Server) HandleNewQuery(w http.ResponseWriter, r *http.Request)
func (*Server) HandleNext ¶
func (s *Server) HandleNext(w http.ResponseWriter, r *http.Request)
func (*Server) HandlePrev ¶
func (s *Server) HandlePrev(w http.ResponseWriter, r *http.Request)
func (*Server) HandleSetting ¶
func (s *Server) HandleSetting(w http.ResponseWriter, r *http.Request)
func (*Server) HandleSettingSet ¶
func (s *Server) HandleSettingSet(w http.ResponseWriter, r *http.Request)
func (*Server) HandleUpdate ¶
func (s *Server) HandleUpdate(w http.ResponseWriter, r *http.Request)
func (*Server) LoadThumbnail ¶
func (*Server) RegisterRoutes ¶
func (s *Server) RegisterRoutes()
func (*Server) UpdateLatestAvailableChapter ¶
func (*Server) UpdateMangaList ¶
func (s *Server) UpdateMangaList()
type TlsOptions ¶
Click to show internal directories.
Click to hide internal directories.