UploadFiles

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 17 Imported by: 0

README

Moved into ~/go/src/github.com/Go-SQL/server/midlib/...

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UploadHandlerType

type UploadHandlerType struct {
	Next            http.Handler //
	Paths           []string     //
	UploadDirectory string       // Directory to place file in
	FileNameTmpl    string       // Qt template for file name
	MaxMemory       int          // Maximum mejory in K (*1024)
	LineNo          int          //
	// contains filtered or unexported fields
}

func NewQRRedirectServer

func NewQRRedirectServer(n http.Handler, p []string, to string) *UploadHandlerType

func (*UploadHandlerType) InitializeWithConfigData

func (hdlr *UploadHandlerType) InitializeWithConfigData(next http.Handler, gCfg *cfg.ServerGlobalConfigType, serverName string, pNo, callNo int) (err error)

func (*UploadHandlerType) InsertIntoDB

func (hdlr *UploadHandlerType) InsertIntoDB(mdata map[string]string, www http.ResponseWriter, req *http.Request)

func (*UploadHandlerType) PreValidate

func (hdlr *UploadHandlerType) PreValidate(gCfg *cfg.ServerGlobalConfigType, cfgData map[string]interface{}, serverName string, pNo, callNo int) (err error)

func (*UploadHandlerType) ServeHTTP

func (hdlr *UploadHandlerType) ServeHTTP(www http.ResponseWriter, req *http.Request)

type UploadReturnType

type UploadReturnType struct {
	FileName string
	DBId     string
}

Jump to

Keyboard shortcuts

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