utils

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchGeoIPLocation

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

func FindInternetSpeed added in v0.3.2

func FindInternetSpeed() (*hubtypes.Bandwidth, 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