Help us shape the future of Go! Take the 2026 Go Developer Survey

handlers

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

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(fs *file.Service, baseURL string) http.HandlerFunc

NavigationHandler fetches navigation data using the file.Service.

func WindowHandler

func WindowHandler(loader *meta.Service, baseURL string, baseURI string) http.HandlerFunc

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.

Jump to

Keyboard shortcuts

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