alkasir: Index | Files

package apiutils

import ""


Package Files

errutils.go gorestjson.go util.go

func ErrToAPIStatus Uses

func ErrToAPIStatus(err error) *api.Status

errToAPIStatus converts an error to an api.Status object.

func IsNetError Uses

func IsNetError(err error) bool

func IsTimeoutError Uses

func IsTimeoutError(err error) bool

IsTimeout tests if this is a timeout error in the underlying transport. This is unbelievably ugly. See: for details

func WriteRestError Uses

func WriteRestError(w rest.ResponseWriter, err error)

Package apiutils imports 9 packages (graph) and is imported by 3 packages. Updated 2016-07-24. Refresh now. Tools for package owners.