controller

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 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