handler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	FileHandler func(http.ResponseWriter, *http.Request)
	// contains filtered or unexported fields
}

File struct

func (*File) Init

func (f *File) Init(meta *server.Meta, fileService *services.FileService)

Init method

func (File) ServeHTTP

func (f File) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP checks if is valid method

func (File) ValidateRequest

func (f File) ValidateRequest(w http.ResponseWriter, r *http.Request) (interface{}, error)

ValidateRequest checks if request is valid

Jump to

Keyboard shortcuts

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