utils

package
Version: v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bandwidth

func Bandwidth() (*hubtypes.Bandwidth, error)

func FetchGeoIPLocation

func FetchGeoIPLocation() (*types.GeoIPLocation, error)

func PrepareLogger

func PrepareLogger() (tmlog.Logger, error)

func ValidError

func ValidError(v error) error

func WriteErrorToResponse

func WriteErrorToResponse(w http.ResponseWriter, status, code int, message string)

func WriteResultToResponse

func WriteResultToResponse(w http.ResponseWriter, status int, result interface{})

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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