Documentation
¶
Index ¶
- func NewDefaultHandlerFunc(logger *logger.Logger) gin.HandlerFunc
- func NewFileApiHandlerFunc(logger *logger.Logger, root http.Dir, chunkSize int64, checkpointCount int, ...) gin.HandlerFunc
- func NewLoginHandlerFunc(users []*auth.User, logger *logger.Logger) gin.HandlerFunc
- func NewManageHandlerFunc(logger *logger.Logger, conf conf.Config) gin.HandlerFunc
- func NewPushHandlerFunc(logger *logger.Logger, source core.VFS, enableLogicallyDelete bool, ...) gin.HandlerFunc
- func NewReportHandlerFunc(logger *logger.Logger, reporter report.Reporter) gin.HandlerFunc
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
NewLoginHandlerFunc returns a gin.HandlerFunc that providers a login api
func NewManageHandlerFunc ¶ added in v0.4.4
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
NewReportHandlerFunc returns a gin.HandlerFunc that providers a report api to show the application status
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.