Versions in this module Expand all Collapse all v0 v0.5.0 Aug 8, 2018 Changes in this version + func NewHandler(handler MetadataHandler) http.Handler + func NewHealthCheckHandler() http.Handler + type API struct + Credentials *Credentials + Spec json.RawMessage + TargetUrl string + type CreateServiceResponse struct + ID string + type Credentials struct + Oauth Oauth + type DocsObject struct + Source string + Title string + Type string + type Documentation struct + Description string + DisplayName string + Docs []DocsObject + Tags []string + Type string + type ErrorHandler struct + Code int + Message string + func NewErrorHandler(code int, message string) *ErrorHandler + func (eh *ErrorHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Events struct + Spec json.RawMessage + type MetadataHandler interface + CreateService func(w http.ResponseWriter, r *http.Request) + DeleteService func(w http.ResponseWriter, r *http.Request) + GetService func(w http.ResponseWriter, r *http.Request) + GetServices func(w http.ResponseWriter, r *http.Request) + UpdateService func(w http.ResponseWriter, r *http.Request) + func NewInvalidStateMetadataHandler(message string) MetadataHandler + func NewMetadataHandler(validator ServiceDetailsValidator, ...) MetadataHandler + type Oauth struct + ClientID string + ClientSecret string + URL string + type Service struct + Description string + ID string + Name string + Provider string + type ServiceDetails struct + Api *API + Description string + Documentation *Documentation + Events *Events + Name string + Provider string + type ServiceDetailsValidator interface + Validate func(details ServiceDetails) apperrors.AppError + func NewServiceDetailsValidator() ServiceDetailsValidator + type ServiceDetailsValidatorFunc func(details ServiceDetails) apperrors.AppError + func (f ServiceDetailsValidatorFunc) Validate(details ServiceDetails) apperrors.AppError