model

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2017 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Index

Constants

View Source
const SignatureHeader = "X-API-Auth-Signature"

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRequestData

type APIRequestData struct {
	Headers   map[string][]string    `json:"headers,omitempty"`
	Body      map[string]interface{} `json:"body,omitempty"`
	UUID      string                 `json:"UUID,omitempty"`
	APIPath   string                 `json:"APIPath,omitempty"`
	APIMethod string                 `json:"APIMethod,omitempty"`
	EnvID     string                 `json:"envID,omitempty"`
	Status    int                    `json:"status,omitempty"`
	Message   string                 `json:"message,omitempty"`
}

APIRequestData defines the properties of a API Request/Response Body sent to/from a filter

type FilterData

type FilterData struct {
	Type        string   `json:"type"`
	Endpoint    string   `json:"endpoint"`
	SecretToken string   `json:"secretToken"`
	Methods     []string `json:"methods"`
	Paths       []string `json:"paths"`
	Timeout     string   `json:"timeout"`
}

FilterData defines the properties of a pre/post API filter

type ProxyError

type ProxyError struct {
	Status  string `json:"status"`
	Message string `json:"message"`
}

ProxyError structure contains the error resource definition

Jump to

Keyboard shortcuts

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