colonyutil

package
v1.2.0-rc Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMd5

func CheckMd5(path string) (string, error)

func GetFileName

func GetFileName(path string) string

func GetFileSize

func GetFileSize(path string) (int64, error)

func LoggingMiddleware

func LoggingMiddleware(next http.Handler) http.Handler

func WriteData

func WriteData(w http.ResponseWriter, v interface{})

func WriteErr

func WriteErr(w http.ResponseWriter, code, msg string)

func WriteError

func WriteError(w http.ResponseWriter, code int, err error)

func WriteJSON

func WriteJSON(w http.ResponseWriter, v interface{})

TODO Deprecated util

Types

This section is empty.

Jump to

Keyboard shortcuts

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