handlers

package
v0.0.0-...-dc1fdd5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConnector

type CloudConnector struct {
}

CloudConnector represents the User API method handler set.

func (*CloudConnector) AwsCloud

func (connector *CloudConnector) AwsCloud(ctx context.Context, writer http.ResponseWriter, request *http.Request) error

AwsCloud triggers a set of rules based on the user input 200 OK, 400 Bad Request, 500 Internal Error

func (*CloudConnector) CallWebhook

func (connector *CloudConnector) CallWebhook(ctx context.Context, writer http.ResponseWriter, request *http.Request) error

CallWebhook 200 OK, 400 Bad Request, 404 endpoint not found, 500 Internal Error

func (*CloudConnector) Index

func (connector *CloudConnector) Index(ctx context.Context, writer http.ResponseWriter, request *http.Request) error

Index is used for Docker Healthcheck commands to indicate whether the http server is up and running to take requests nolint: unparam

type ErrReport

type ErrReport struct {
	Field       string      `json:"field"`
	ErrorType   string      `json:"errortype"`
	Value       interface{} `json:"value"`
	Description string      `json:"description"`
}

ErrReport is used to wrap schema validation errors int json object

type ErrorList

type ErrorList struct {
	// The error list
	// in: body
	Errors []ErrReport `json:"errors"`
}

ErrorList provides a collection of errors for processing swagger:response ErrReport

type Response

type Response struct {
	Results interface{} `json:"results"`
	Count   int         `json:"count,omitempty"`
}

Response wraps results, inlinecount, and extra fields in a json object swagger:model resultsResponse

Jump to

Keyboard shortcuts

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