Documentation

Overview

    Package api contains routes, client models, and API related utilities. Models should be exported for go client consumption.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func ErrorHandler

    func ErrorHandler(err error, c echo.Context)

    Types

    type DataBinder

    type DataBinder struct{}

    func (*DataBinder) Bind

    func (b *DataBinder) Bind(i interface{}, c echo.Context) (err error)

    type DefaultApplier

    type DefaultApplier interface {
    	ApplyDefaults() error
    }

    type ValidationErrorResponse

    type ValidationErrorResponse struct {
    	Message          string            `json:"message"`
    	ValidationErrors map[string]string `json:"validationErrors,omitempty"`
    }

      Note: This model is shared between API versions. Therefore any change here is breaking for all API versions.

      type Validator

      type Validator interface {
      	Validate() error
      }

      Directories

      Path Synopsis
      v1
      Package v1 contains the v1 api and client models.
      Package v1 contains the v1 api and client models.
      model Module