Documentation ¶
Index ¶
- func Bandwidth() (*hubtypes.Bandwidth, error)
- func FetchGeoIPLocation() (*types.GeoIPLocation, error)
- func PrepareLogger() (tmlog.Logger, error)
- func ValidError(v error) error
- func WriteErrorToResponse(w http.ResponseWriter, status, code int, message string)
- func WriteResultToResponse(w http.ResponseWriter, status int, result interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchGeoIPLocation ¶
func FetchGeoIPLocation() (*types.GeoIPLocation, error)
func PrepareLogger ¶
func ValidError ¶
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.
Click to show internal directories.
Click to hide internal directories.