Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BraceCapture ¶ added in v0.3.0
BraceCapture links to the related URI parameter
type Parameter ¶
type Parameter struct { Description string `json:"info"` Type string `json:"type"` Rename string `json:"name,omitempty"` Optional bool // ExtractType is the type the Validator will cast into ExtractType reflect.Type // Validator is inferred from the "type" property Validator datatype.Validator }
Parameter represents a parameter definition (from api.json)
type Server ¶ added in v0.3.0
Server definition
type Service ¶ added in v0.2.0
type Service struct { Method string `json:"method"` Pattern string `json:"path"` Scope [][]string `json:"scope"` Description string `json:"info"` Input map[string]*Parameter `json:"in"` Output map[string]*Parameter `json:"out"` // Captures contains references to URI parameters from the `Input` map. The format // of these parameter names is "{paramName}" Captures []*BraceCapture // Query contains references to HTTP Query parameters from the `Input` map. // Query parameters names are "GET@paramName", this map contains escaped names (e.g. "paramName") Query map[string]*Parameter // Form references form parameters from the `Input` map (all but Captures and Query). Form map[string]*Parameter }
Service definition
Click to show internal directories.
Click to hide internal directories.