Documentation
¶
Index ¶
- func FetchNavigationData(ctx context.Context, fs *file.Service, baseURL string) ([]types.NavigationItem, error)
- func LoadWindow(ctx context.Context, loader *meta.Service, baseURL, key, subKey string) (*types.Window, error)
- func NavigationHandler(fs *file.Service, baseURL string) http.HandlerFunc
- func WindowHandler(loader *meta.Service, baseURL string, baseURI string) http.HandlerFunc
- type FileHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchNavigationData ¶
func FetchNavigationData(ctx context.Context, fs *file.Service, baseURL string) ([]types.NavigationItem, error)
FetchNavigationData navigation data using the file.Service.
func LoadWindow ¶
func LoadWindow(ctx context.Context, loader *meta.Service, baseURL, key, subKey string) (*types.Window, error)
LoadWindow loads window data using the file.Service.
func NavigationHandler ¶
func NavigationHandler(fs *file.Service, baseURL string) http.HandlerFunc
NavigationHandler fetches navigation data using the file.Service.
func WindowHandler ¶
WindowHandler fetches window data using the file.Service.
Types ¶
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
FileHandler wraps the Service to serve file operations via HTTP.
func NewFileBrowser ¶
func NewFileBrowser(fs *file.Service) *FileHandler
NewFileBrowser creates a FileHandler with the provided Service instance.
func (*FileHandler) DownloadHandler ¶
func (h *FileHandler) DownloadHandler(w http.ResponseWriter, r *http.Request)
DownloadHandler handles the `/download` endpoint.
func (*FileHandler) ListHandler ¶
func (h *FileHandler) ListHandler(w http.ResponseWriter, r *http.Request)
ListHandler handles the `/list` endpoint.
Click to show internal directories.
Click to hide internal directories.