Versions in this module Expand all Collapse all v0 v0.1.0 Dec 14, 2015 Changes in this version + var FuncMap template.FuncMap = map[string]interface + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func GenerateClient(name string, modelNames, operationIDs []string, opts GenOpts) error + func GenerateDefinition(modelNames []string, includeModel, includeValidator bool, opts GenOpts) error + func GenerateServerOperation(operationNames, tags []string, ...) error + func GenerateSupport(name string, modelNames, operationIDs []string, opts GenOpts) error + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type GenApp struct + BasePath string + Consumes []GenSerGroup + DefaultConsumes string + DefaultImports []string + DefaultProduces string + ExternalDocs *spec.ExternalDocumentation + Host string + Imports map[string]string + Info *spec.Info + Models []GenDefinition + Name string + OperationGroups GenOperationGroups + Operations GenOperations + Package string + Principal string + Produces []GenSerGroup + ReceiverName string + Schemes []string + SecurityDefinitions []GenSecurityScheme + SwaggerJSON string + type GenDefinition struct + DefaultImports []string + DependsOn []string + ExtraSchemas []GenSchema + Imports map[string]string + IncludeValidator bool + Package string + func (rt *GenDefinition) Zero() string + type GenHeader struct + Converter string + Description string + Formatter string + Name string + Package string + Path string + ReceiverName string + Title string + func (rt *GenHeader) Zero() string + type GenHeaders []GenHeader + func (g GenHeaders) Len() int + func (g GenHeaders) Less(i, j int) bool + func (g GenHeaders) Swap(i, j int) + type GenItems struct + Child *GenItems + CollectionFormat string + Converter string + Formatter string + Location string + Name string + Parent *GenItems + Path string + ValueExpression string + func (rt *GenItems) Zero() string + type GenOperation struct + Authorized bool + DefaultImports []string + DefaultResponse *GenResponse + Description string + ExtraSchemas []GenSchema + FormParams GenParameters + HasFileParams bool + HasFormParams bool + HasQueryParams bool + HeaderParams GenParameters + Imports map[string]string + Method string + Name string + Package string + Params GenParameters + Path string + PathParams GenParameters + Principal string + QueryParams GenParameters + ReceiverName string + Responses map[int]GenResponse + Schemes []string + SuccessResponse *GenResponse + Summary string + Tags []string + type GenOperationGroup struct + DefaultImports []string + Description string + Imports map[string]string + Name string + Operations GenOperations + Summary string + type GenOperationGroups []GenOperationGroup + func (g GenOperationGroups) Len() int + func (g GenOperationGroups) Less(i, j int) bool + func (g GenOperationGroups) Swap(i, j int) + type GenOperations []GenOperation + func (g GenOperations) Len() int + func (g GenOperations) Less(i, j int) bool + func (g GenOperations) Swap(i, j int) + type GenOpts struct + APIPackage string + ClientPackage string + DefaultScheme string + DumpData bool + Imports map[string]string + ModelPackage string + Principal string + ServerPackage string + Spec string + Target string + TypeMapping map[string]string + type GenParameter struct + AllowEmptyValue bool + BodyParam *GenParameter + Child *GenItems + CollectionFormat string + Converter string + Default interface{} + Description string + Enum []interface{} + Formatter string + IndexVar string + Location string + ModelsPackage string + Name string + Parent *GenItems + Path string + ReceiverName string + Schema *GenSchema + Title string + ValueExpression string + ZeroValue string + func (g *GenParameter) IsBodyParam() bool + func (g *GenParameter) IsFileParam() bool + func (g *GenParameter) IsFormParam() bool + func (g *GenParameter) IsHeaderParam() bool + func (g *GenParameter) IsPathParam() bool + func (g *GenParameter) IsQueryParam() bool + func (rt *GenParameter) Zero() string + type GenParameters []GenParameter + func (g GenParameters) Len() int + func (g GenParameters) Less(i, j int) bool + func (g GenParameters) Swap(i, j int) + type GenResponse struct + Code int + DefaultImports []string + Description string + Headers GenHeaders + Imports map[string]string + IsSuccess bool + ModelsPackage string + Name string + Package string + ReceiverName string + Schema *GenSchema + type GenSchema struct + AdditionalItems *GenSchema + AdditionalProperties *GenSchema + AllOf []GenSchema + AllowsAdditionalItems bool + Description string + Discriminates map[string]string + DiscriminatorField string + DiscriminatorValue string + Example string + HasAdditionalItems bool + HasAdditionalProperties bool + HasBaseType bool + IndexVar string + IsAdditionalProperties bool + IsBaseType bool + IsExported bool + IsSubType bool + IsVirtual bool + Items *GenSchema + KeyVar string + Location string + Name string + Object *GenSchema + Parents []string + Path string + Properties GenSchemaList + ReadOnly bool + ReceiverName string + Suffix string + Title string + ValueExpression string + XMLName string + func (rt *GenSchema) Zero() string + type GenSchemaList []GenSchema + func (g GenSchemaList) Len() int + func (g GenSchemaList) Less(i, j int) bool + func (g GenSchemaList) Swap(i, j int) + type GenSecurityScheme struct + AppName string + ID string + IsAPIKeyAuth bool + IsBasicAuth bool + Name string + Principal string + ReceiverName string + Source string + type GenSerGroup struct + AllSerializers []GenSerializer + AppName string + Implementation string + MediaType string + Name string + ReceiverName string + type GenSerializer struct + AppName string + Implementation string + MediaType string + Name string + ReceiverName string