Documentation
¶
Index ¶
- type Handler
- func (h *Handler) HandleConfig(cfg *config.Config) (string, []byte, bool)
- func (h *Handler) HandleDefault() (string, []byte, bool)
- func (h *Handler) HandleHistoryRecent(u *neturl.URL) (string, []byte, bool)
- func (h *Handler) HandleHistorySearch(u *neturl.URL) (string, []byte, bool)
- func (h *Handler) HandleHistoryStats() (string, []byte, bool)
- func (h *Handler) HandleRenderingStatus(cfg *config.Config) (string, []byte, bool)
- type SchemeHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler provides API endpoint handling functionality
func NewHandler ¶
func NewHandler(browserService *services.BrowserService) *Handler
NewHandler creates a new API handler
func (*Handler) HandleConfig ¶
HandleConfig handles GET /config endpoint
func (*Handler) HandleDefault ¶
HandleDefault returns empty JSON for unknown endpoints
func (*Handler) HandleHistoryRecent ¶
HandleHistoryRecent handles GET /history/recent endpoint
func (*Handler) HandleHistorySearch ¶
HandleHistorySearch handles GET /history/search endpoint
func (*Handler) HandleHistoryStats ¶
HandleHistoryStats handles GET /history/stats endpoint
type SchemeHandler ¶
type SchemeHandler struct {
// contains filtered or unexported fields
}
SchemeHandler handles custom dumb:// scheme resolution
func NewSchemeHandler ¶
func NewSchemeHandler( assets embed.FS, parserService *services.ParserService, browserService *services.BrowserService, ) *SchemeHandler
NewSchemeHandler creates a new scheme handler
Click to show internal directories.
Click to hide internal directories.