http

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2017 License: NCSA Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureAPI

func ConfigureAPI(api *operations.DlframeworkAPI) http.Handler

func PredictorPredictHandler

func PredictorPredictHandler(params predictor.PredictParams) middleware.Responder

func RegistryFrameworkAgentsHandler

func RegistryFrameworkAgentsHandler(params registry.FrameworkAgentsParams) middleware.Responder

func RegistryFrameworkManifestsHandler

func RegistryFrameworkManifestsHandler(params registry.FrameworkManifestsParams) middleware.Responder

func RegistryModelAgentsHandler

func RegistryModelAgentsHandler(params registry.ModelAgentsParams) middleware.Responder

func RegistryModelManifestsHandler

func RegistryModelManifestsHandler(params registry.ModelManifestsParams) middleware.Responder

func ServeError

func ServeError(rw http.ResponseWriter, r *http.Request, err error)

ServeError the error handler interface implemenation

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(name string, message error) *Error

func (*Error) Code

func (e *Error) Code() int32

func (*Error) Error

func (e *Error) Error() string

func (*Error) MarshalJSON

func (e *Error) MarshalJSON() ([]byte, error)

func (*Error) WithCode

func (e *Error) WithCode(code int) *Error

func (*Error) WithMessage

func (e *Error) WithMessage(message error) *Error

func (*Error) WithName

func (e *Error) WithName(name string) *Error

func (*Error) WriteResponse

func (e *Error) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL