handler

package
v0.0.0-...-80df595 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePathRequest

type CreatePathRequest struct {
	Name string `json:"name"`
}

type CreatePathResponse

type CreatePathResponse struct {
	Id string `json:"id"`
}

type CreateStatRequest

type CreateStatRequest struct {
	Name string `json:"name"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(pathstore *pathmodel.PathStore) *Handler

func (*Handler) HandleCreatePath

func (h *Handler) HandleCreatePath(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleCreateStat

func (h *Handler) HandleCreateStat(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleDeletePath

func (h *Handler) HandleDeletePath(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleDeleteStat

func (h *Handler) HandleDeleteStat(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleHomePaths

func (h *Handler) HandleHomePaths(w http.ResponseWriter, r *http.Request)

func (*Handler) HandlePath

func (h *Handler) HandlePath(w http.ResponseWriter, r *http.Request)

single path

func (*Handler) HandleUpdatePath

func (h *Handler) HandleUpdatePath(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleUpdateStat

func (h *Handler) HandleUpdateStat(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleUpdateStatsCounts

func (h *Handler) HandleUpdateStatsCounts(w http.ResponseWriter, r *http.Request)

func (*Handler) HandleUserPaths

func (h *Handler) HandleUserPaths(w http.ResponseWriter, r *http.Request)

Multiple paths

type PathResponse

type PathResponse struct {
	Path      pathmodel.FullPath `json:"path"`
	EditRight bool               `json:"editRight"`
}

Jump to

Keyboard shortcuts

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