handler

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultHandlerFunc added in v0.4.4

func NewDefaultHandlerFunc(logger *logger.Logger) gin.HandlerFunc

NewDefaultHandlerFunc returns a gin.HandlerFunc that shows the default home page

func NewFileApiHandlerFunc added in v0.4.4

func NewFileApiHandlerFunc(logger *logger.Logger, root http.Dir, chunkSize int64, checkpointCount int, hash hashutil.Hash) gin.HandlerFunc

NewFileApiHandlerFunc returns a gin.HandlerFunc that queries the file info

func NewLoginHandlerFunc added in v0.4.4

func NewLoginHandlerFunc(users []*auth.User, logger *logger.Logger) gin.HandlerFunc

NewLoginHandlerFunc returns a gin.HandlerFunc that providers a login api

func NewManageHandlerFunc added in v0.4.4

func NewManageHandlerFunc(logger *logger.Logger, conf conf.Config) gin.HandlerFunc

NewManageHandlerFunc returns a gin.HandlerFunc that shows the application config

func NewPushHandlerFunc added in v0.4.4

func NewPushHandlerFunc(logger *logger.Logger, source core.VFS, enableLogicallyDelete bool, hash hashutil.Hash) gin.HandlerFunc

NewPushHandlerFunc returns a gin.HandlerFunc that to manage the files

func NewReportHandlerFunc added in v0.4.4

func NewReportHandlerFunc(logger *logger.Logger, reporter report.Reporter) gin.HandlerFunc

NewReportHandlerFunc returns a gin.HandlerFunc that providers a report api to show the application status

Types

This section is empty.

Jump to

Keyboard shortcuts

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