controller

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	GetConfig func(v any)
	GetProxy  func(requestProxy *base.RequestProxy) func(*http.Request) (*url.URL, error)
	FileController
}

func NewController

func NewController() *Controller

type DefaultFileController

type DefaultFileController struct {
}

func (*DefaultFileController) Touch

func (c *DefaultFileController) Touch(name string, size int64) (file *os.File, err error)

type FileController

type FileController interface {
	Touch(name string, size int64) (file *os.File, err error)
}

Jump to

Keyboard shortcuts

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