webHandler

package
v0.0.0-...-f3516d7 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeList

type NodeList struct {
	Address string `json:"address"`
}

type WebHandler

type WebHandler struct {
	http.Handler
	Database dbHandler.DBHandler
}

func CreateHandler

func CreateHandler(my_port string, db_path string, bootstrap_node string) *WebHandler

func (*WebHandler) AllUpload

func (wh *WebHandler) AllUpload(w http.ResponseWriter, r *http.Request)

전체 Upload

func (*WebHandler) Close

func (wh *WebHandler) Close()

func (*WebHandler) DownloadHandler

func (wh *WebHandler) DownloadHandler(w http.ResponseWriter, r *http.Request)

func (*WebHandler) GetFileListHandler

func (wh *WebHandler) GetFileListHandler(w http.ResponseWriter, r *http.Request)

func (*WebHandler) GetNodeCntHandler

func (wh *WebHandler) GetNodeCntHandler(w http.ResponseWriter, r *http.Request)

func (*WebHandler) GetStorageInfoHandler

func (wh *WebHandler) GetStorageInfoHandler(w http.ResponseWriter, r *http.Request)

func (WebHandler) HomeHandler

func (wh WebHandler) HomeHandler(w http.ResponseWriter, r *http.Request)

func (*WebHandler) PingHandler

func (wh *WebHandler) PingHandler(w http.ResponseWriter, r *http.Request)

func (*WebHandler) Upload

func (wh *WebHandler) Upload(w http.ResponseWriter, r *http.Request)

단일 Upload

func (*WebHandler) UploadHandler

func (wh *WebHandler) UploadHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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