colonyutil

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.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