api

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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 added in v0.0.10

type DataBinder struct{}

func (*DataBinder) Bind added in v0.0.10

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

type DefaultApplier added in v0.0.10

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 added in v0.0.10

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

Jump to

Keyboard shortcuts

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