alkasir: github.com/alkasir/alkasir/pkg/shared/apiutils Index | Files

package apiutils

import "github.com/alkasir/alkasir/pkg/shared/apiutils"

Index

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: http://stackoverflow.com/questions/23494950/specifically-check-for-timeout-error 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.