api

package
v0.0.0-...-7412f86 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2015 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthScope

type AuthScope int

type AuthScopes

type AuthScopes map[AuthScope]string

type EventKey

type EventKey string

type FormParams

type FormParams UrlQueries

type HttpHeaders

type HttpHeaders map[string]string

type HttpMethod

type HttpMethod string
var (
	HEAD      HttpMethod = HttpMethod("HEAD")
	PATCH     HttpMethod = HttpMethod("PATCH")
	GET       HttpMethod = HttpMethod("GET")
	POST      HttpMethod = HttpMethod("POST")
	PUT       HttpMethod = HttpMethod("PUT")
	DELETE    HttpMethod = HttpMethod("DELETE")
	MULTIPART HttpMethod = HttpMethod("POST")
)

type MethodSpec

type MethodSpec struct {
	Doc                  string
	UrlRoute             string
	HttpHeaders          HttpHeaders
	HttpMethod           HttpMethod
	HttpMethods          []HttpMethod
	UrlQueries           UrlQueries
	FormParams           FormParams
	ContentTypes         []string
	RequestBody          ObjectFactory
	ResponseBody         ObjectFactory
	CallbackEvent        EventKey
	CallbackBodyTemplate string
	AuthScope            string
}

type ObjectFactory

type ObjectFactory func(*http.Request) interface{}

type QueryDefault

type QueryDefault interface{}

type ServiceMethod

type ServiceMethod int

type ServiceMethods

type ServiceMethods map[ServiceMethod]MethodSpec

type UrlQueries

type UrlQueries map[string]QueryDefault

Jump to

Keyboard shortcuts

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