Documentation
¶
Index ¶
- func Delete(w http.ResponseWriter, r *http.Request)
- func Deploy(w http.ResponseWriter, r *http.Request)
- func ErrorAuthAPIError() error
- func ErrorAuthForbidden() error
- func ErrorAuthHeaderMalformed() error
- func ErrorAuthHeaderMissing() error
- func GetAggregate(w http.ResponseWriter, r *http.Request)
- func GetResources(w http.ResponseWriter, r *http.Request)
- func ReadLogs(w http.ResponseWriter, r *http.Request)
- func RecoverAndRespond(w http.ResponseWriter, strs ...string)
- func Respond(w http.ResponseWriter, response interface{})
- func RespondError(w http.ResponseWriter, err error, strs ...string)
- func RespondErrorCode(w http.ResponseWriter, code int, err error, strs ...string)
- func RespondIfError(w http.ResponseWriter, err error, strs ...string) bool
- type EndpointsError
- type ErrorKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorAuthAPIError ¶
func ErrorAuthAPIError() error
func ErrorAuthForbidden ¶
func ErrorAuthForbidden() error
func ErrorAuthHeaderMalformed ¶
func ErrorAuthHeaderMalformed() error
func ErrorAuthHeaderMissing ¶
func ErrorAuthHeaderMissing() error
func GetAggregate ¶
func GetAggregate(w http.ResponseWriter, r *http.Request)
func GetResources ¶
func GetResources(w http.ResponseWriter, r *http.Request)
func RecoverAndRespond ¶
func RecoverAndRespond(w http.ResponseWriter, strs ...string)
func Respond ¶
func Respond(w http.ResponseWriter, response interface{})
func RespondError ¶
func RespondError(w http.ResponseWriter, err error, strs ...string)
func RespondErrorCode ¶
func RespondErrorCode(w http.ResponseWriter, code int, err error, strs ...string)
func RespondIfError ¶
func RespondIfError(w http.ResponseWriter, err error, strs ...string) bool
Types ¶
type EndpointsError ¶
type EndpointsError struct { Kind ErrorKind // contains filtered or unexported fields }
func (EndpointsError) Error ¶
func (e EndpointsError) Error() string
type ErrorKind ¶
type ErrorKind int
func (ErrorKind) MarshalBinary ¶
MarshalBinary satisfies BinaryMarshaler
func (ErrorKind) MarshalText ¶
MarshalText satisfies TextMarshaler
func (*ErrorKind) UnmarshalBinary ¶
UnmarshalBinary satisfies BinaryUnmarshaler Needed for msgpack
func (*ErrorKind) UnmarshalText ¶
UnmarshalText satisfies TextUnmarshaler
Click to show internal directories.
Click to hide internal directories.