[Vendor Update] go-swagger v0.20.1 -> v0.21.0 (#9410)

* Update go-swagger v0.20.1 -> v0.21.0

* go mod tidy
This commit is contained in:
6543 authored and Antoine GIRARD committed 2019-12-18 16:05:30 +01:00
1 parent 6d811bcb14
commit 90057ca27e
15 files changed
+77 -65

No files matched your search

@@ -37,7 +37,7 @@ type Server struct {
ExcludeSpec bool `long:"exclude-spec" description:"don't embed the swagger specification"`
WithContext bool `long:"with-context" description:"handlers get a context as first arg (deprecated)"`
DumpData bool `long:"dump-data" description:"when present dumps the json for the template generator instead of generating files"`
FlagStrategy string `long:"flag-strategy" description:"the strategy to provide flags for the server" default:"go-flags" choice:"go-flags" choice:"pflag"`
FlagStrategy string `long:"flag-strategy" description:"the strategy to provide flags for the server" default:"go-flags" choice:"go-flags" choice:"pflag" choice:"flag"`
CompatibilityMode string `long:"compatibility-mode" description:"the compatibility mode for the tls server" default:"modern" choice:"modern" choice:"intermediate"`
SkipValidation bool `long:"skip-validation" description:"skips validation of spec prior to generation"`
RegenerateConfigureAPI bool `long:"regenerate-configureapi" description:"Force regeneration of configureapi.go"`
@@ -83,6 +83,7 @@ func (s *Server) getOpts() (*generator.GenOpts, error) {
FlagStrategy: s.FlagStrategy,
CompatibilityMode: s.CompatibilityMode,
ExistingModels: s.ExistingModels,
AllowTemplateOverride: s.AllowTemplateOverride,
}, nil
}
@@ -98,6 +99,8 @@ func (s *Server) log(rp string) {
var flagsPackage string
if strings.HasPrefix(s.FlagStrategy, "pflag") {
flagsPackage = "github.com/spf13/pflag"
} else if strings.HasPrefix(s.FlagStrategy, "flag") {
flagsPackage = "flag"
} else {
flagsPackage = "github.com/jessevdk/go-flags"
}
@@ -81,6 +81,7 @@ type shared struct {
CopyrightFile flags.Filename `long:"copyright-file" short:"r" description:"copyright file used to add copyright header"`
ExistingModels string `long:"existing-models" description:"use pre-generated models e.g. github.com/foobar/model"`
AdditionalInitialisms []string `long:"additional-initialism" description:"consecutive capitals that should be considered intialisms"`
AllowTemplateOverride bool `long:"allow-template-override" description:"allows overriding protected templates"`
FlattenCmdOptions
}
@@ -10,6 +10,8 @@ import (
"github.com/go-openapi/loads"
"github.com/go-openapi/spec"
flags "github.com/jessevdk/go-flags"
"github.com/go-swagger/go-swagger/generator"
)
const (
@@ -24,6 +26,7 @@ type MixinSpec struct {
ExpectedCollisionCount uint `short:"c" description:"expected # of rejected mixin paths, defs, etc due to existing key. Non-zero exit if does not match actual."`
Compact bool `long:"compact" description:"applies to JSON formatted specs. When present, doesn't prettify the json"`
Output flags.Filename `long:"output" short:"o" description:"the file to write to"`
KeepSpecOrder bool `long:"keep-spec-order" description:"Keep schema properties order identical to spec file"`
Format string `long:"format" description:"the format for the spec document" default:"json" choice:"yaml" choice:"json"`
}
@@ -89,6 +92,9 @@ func (c *MixinSpec) MixinFiles(primaryFile string, mixinFiles []string, w io.Wri
var mixins []*spec.Swagger
for _, mixinFile := range mixinFiles {
if c.KeepSpecOrder {
mixinFile = generator.WithAutoXOrder(mixinFile)
}
mixin, lerr := loads.Spec(mixinFile)
if lerr != nil {
return nil, lerr
+16
View File
@@ -4,6 +4,7 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/go-openapi/spec"
"log"
"net"
"net/http"
@@ -25,6 +26,7 @@ type ServeCmd struct {
DocURL string `long:"doc-url" description:"override the url which takes a url query param to render the doc ui"`
NoOpen bool `long:"no-open" description:"when present won't open the the browser to show the url"`
NoUI bool `long:"no-ui" description:"when present, only the swagger spec will be served"`
Flatten bool `long:"flatten" description:"when present, flatten the swagger spec before serving it"`
Port int `long:"port" short:"p" description:"the port to serve this site" env:"PORT"`
Host string `long:"host" description:"the interface to serve this site, defaults to 0.0.0.0" env:"HOST"`
}
@@ -39,6 +41,20 @@ func (s *ServeCmd) Execute(args []string) error {
if err != nil {
return err
}
if s.Flatten {
var err error
specDoc, err = specDoc.Expanded(&spec.ExpandOptions{
SkipSchemas: false,
ContinueOnError: true,
AbsoluteCircularRef: true,
})
if err != nil {
return err
}
}
b, err := json.MarshalIndent(specDoc.Spec(), "", " ")
if err != nil {
return err
+12 -12
View File
@@ -20,15 +20,15 @@
// templates/server/builder.gotmpl (16.812kB)
// templates/server/configureapi.gotmpl (6.171kB)
// templates/server/doc.gotmpl (1.247kB)
// templates/server/main.gotmpl (4.211kB)
// templates/server/main.gotmpl (5.969kB)
// templates/server/operation.gotmpl (3.803kB)
// templates/server/parameter.gotmpl (28.79kB)
// templates/server/responses.gotmpl (11.315kB)
// templates/server/server.gotmpl (22.241kB)
// templates/server/server.gotmpl (23.074kB)
// templates/server/urlbuilder.gotmpl (7.641kB)
// templates/structfield.gotmpl (1.522kB)
// templates/swagger_json_embed.gotmpl (848B)
// templates/tupleserializer.gotmpl (16.449kB)
// templates/tupleserializer.gotmpl (16.512kB)
// templates/validation/customformat.gotmpl (611B)
// templates/validation/primitive.gotmpl (2.173kB)
// templates/validation/structfield.gotmpl (909B)
@@ -500,7 +500,7 @@ func templatesServerDocGotmpl() (*asset, error) {
return a, nil
}
var _templatesServerMainGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xe4\x57\x5f\x6f\xdb\x36\x10\x7f\x16\x3f\xc5\x55\xe8\x00\xa9\x73\xa8\x15\x7b\x4b\xe1\x87\x20\x7f\x3a\x0f\x69\x12\xc0\xe9\xc3\xb0\x0e\x05\x23\x9e\x64\x2e\x34\xa9\x91\x54\xdc\xcc\xd0\x77\x1f\x48\x31\xb6\x1c\xdb\x4d\xb6\x22\xc0\x80\xbe\x58\x16\xef\xee\xc7\xe3\xef\xfe\x51\x45\x01\xc7\x9a\x23\xd4\xa8\xd0\x30\x87\x1c\x6e\xee\xa1\xd6\x07\x76\xc1\xea\x1a\xcd\x3b\x38\xb9\x84\x8b\xcb\x6b\x38\x3d\x99\x5c\x53\x42\x08\x2c\x97\x20\x2a\xa0\xc7\xba\xb9\x37\xa2\x9e\x39\x38\xe8\xba\xa2\xf0\xcb\xa5\x9e\xcf\x51\xb9\x47\xb2\xe5\x12\x50\x71\xe8\x3a\x42\x48\xc3\xca\x5b\x56\x23\xcc\x99\x50\x84\x88\x79\xa3\x8d\x83\x8c\x00\xa4\x52\xd7\xa9\x7f\x6a\x1b\x1e\x0a\x5d\x31\x73\xae\x49\x09\x01\x90\x9a\x71\x0b\x69\x2d\xdc\xac\xbd\xa1\xa5\x9e\x17\xb5\x3e\xd0\x0d\x2a\xd6\x88\x22\x08\x53\x92\x44\xb7\x3e\x5a\x7c\xaf\xa7\xce\xb4\xa5\x3b\x93\xac\xb6\xd0\x75\x55\x78\x0e\xcd\xff\x44\x6b\xf1\x8e\xdf\x7a\x9c\x20\xf5\x7b\x46\x3f\x0f\xba\xae\x7f\x89\x68\x57\x43\x98\x0d\x14\xdb\x54\x6f\x7f\x2e\x1a\xbf\xfe\xc8\x9e\x84\x57\xc3\x54\x8d\x40\x4f\xb0\x62\xad\x74\x93\x70\x58\xeb\xf9\x68\x8c\x50\xae\x82\xf4\x87\xbf\x52\xa0\x71\x3b\x54\x3c\xfe\xeb\xcd\x5e\xdf\xe2\xfd\x08\x5e\xdf\x31\xd9\x22\x1c\x8e\x81\x0e\xec\xbd\xac\xeb\xfc\x86\x43\xa4\x5e\x77\x03\x2e\x27\xa4\x28\xe0\x7a\x26\x2c\x54\x42\x22\x2c\x98\xdd\x8c\xb3\x9b\x21\xc4\x40\x83\xd3\x5a\x52\xaf\xff\x81\xdd\x22\xd8\xd6\x20\x28\xed\xc0\x69\xd0\x77\x68\x16\x46\x38\x04\xb7\x82\x62\x95\x43\x03\xf7\xba\x1d\x00\x0a\x07\x37\x58\xb2\xd6\x22\x30\x29\xbd\xd0\x00\x72\xe1\x2c\x2c\x74\x2b\x39\xdc\x20\x48\x6d\xdd\x2b\x12\xd9\x3d\xfd\x52\xca\x96\xe3\xb4\xc1\xd2\xa7\x47\xd5\xaa\x12\x84\x12\x2e\xcb\x61\xf9\x10\x76\x7a\xc4\xf9\xb9\x66\x1c\x4d\x56\xcd\x9d\xa5\xbf\x1d\x7d\x38\xff\xc0\x5c\x39\x43\x33\x82\xd5\xca\x89\x2e\x73\xd2\x91\x41\xaa\x05\x30\x9f\x66\x11\x6c\x47\x40\xfb\x25\x7f\xc6\xc7\x9e\xc0\x03\x29\x7e\x61\x04\x68\x8c\x0f\x41\xef\xcf\xe9\xfc\x06\x39\x47\x9e\x2d\x97\x40\x8f\xae\x26\x57\x31\xa5\xbb\x8e\x4e\x7b\xa3\x5f\xa7\x97\x17\x23\xd8\x16\x9f\x49\xe6\x06\x2a\x39\x01\xbf\xbf\x07\x7f\x35\x06\x25\x64\xf0\xd3\x1f\xbb\xa6\x67\xcc\x31\x29\x55\x86\xc6\x78\xb5\x6e\x9d\x5e\xc1\xbb\x3b\x66\xc0\xa2\xb9\x43\x03\x6f\x76\xb8\xd1\x4b\x8a\x02\xe6\xab\x48\x7a\x5a\x41\x58\x28\x99\x94\xc8\x09\x49\x7c\xd6\xd2\x8f\xd6\x9b\x8c\xc1\x93\x15\x79\x02\x4f\x2a\x3d\x0b\x89\x95\x69\x4b\xa7\x8e\xa3\x31\x23\x48\x83\xee\xe1\x27\x95\xe6\x24\x49\xf6\xe8\x04\x2f\x39\xb3\x33\x34\xe2\x6f\x04\x7a\xc1\xe6\xde\xa3\x83\xe8\xeb\xef\x97\x57\xd7\x93\xcb\x8b\xe9\x1f\x9f\x54\xc0\x09\xdb\x39\xe1\x64\xc8\xf0\x18\xa1\x89\xaa\xf4\x2a\x38\xe1\x8d\x5e\x07\x95\xb0\xb6\x51\x3a\x8f\x85\x28\x2d\xae\x4d\x37\x63\x9a\xa6\x6b\x85\x41\x70\xa9\xff\xc9\xf2\x01\xd4\x8a\xe7\x8d\x3f\x2f\x80\xdc\x75\x7b\x89\x0c\x9c\xfc\x98\x46\x9a\x92\x84\xa3\x2d\xbf\x4e\xd1\x09\xda\xd2\x88\xc6\x09\xad\xf6\x11\xb5\xa5\xf2\xad\x87\x1a\x00\xbe\x08\x69\xfb\xf1\x43\x11\x84\xea\x09\xcc\xbc\x1a\x43\x9a\xc2\x92\x24\x43\x3e\xab\x21\xa1\x5e\x6d\xc0\xe7\x26\xf3\x52\x0d\x55\x43\x61\x1c\xeb\xf9\x9c\x29\x7e\x2e\x14\xfa\xb2\xad\x43\xf2\xdb\x2c\xcf\x89\xb7\x2d\x0a\x68\x98\xb1\x18\xda\xe7\xf1\xf9\x24\xd8\xd8\x58\x53\x57\x5e\x92\xe5\x64\xdd\x73\xb6\x9b\x4b\x5f\x0e\xe3\x1d\x3d\xe2\x02\x17\x7d\xf9\x66\x4a\xc8\xfc\xab\x8d\x28\x50\x65\x9d\x11\xaa\xce\x7a\xc4\xb0\x94\xff\xcb\xbe\xc2\x1a\xd1\xa7\x16\x8d\x6e\xf4\x5e\xf8\x14\x62\xb6\x64\x72\x58\xc8\x47\x57\x93\x6c\xe0\x50\xbe\x3a\x0b\x9d\xa2\xf3\x42\xd6\x88\x3c\xf6\xaa\x3e\xb6\x04\x92\x7e\x83\xff\x86\xef\xa9\xae\xd1\x3d\x30\xb6\x10\x6e\x16\xc8\x86\x30\xeb\xc2\x28\x92\xc8\x41\xb7\x8e\x24\xcf\x62\x75\xe0\x60\xdf\x4c\x13\x8e\x15\x9a\xd5\x31\x66\xad\xe3\x7a\xa1\x7c\xfc\x22\x20\x3d\xd6\xaa\x12\x75\x6b\xd0\x7b\x97\x93\x24\x72\x7b\x38\x5e\x9f\xdd\xdc\x61\x96\xbf\xdb\xa4\x3c\x49\xb6\x08\x4f\xba\x0d\x6e\x9e\x48\x8f\xc3\xa7\xf3\x63\xc8\xf3\xff\x6e\x64\x7d\x6b\x6e\x25\xcf\xe3\x21\x46\x74\x4f\x18\x07\x37\x02\xe8\x8b\x36\x00\x86\x82\xf5\x20\xa1\x5a\x4d\xac\x9f\x51\x5c\x8f\x37\xb6\x7c\x65\x42\xa7\x33\x6d\xdc\xb0\x81\x7e\x97\xe3\x6a\x45\xc7\xb9\x56\xf5\x73\xd9\xf8\xee\x26\xd3\xaa\xf1\xef\xb9\x59\x3e\xea\x2a\xe1\x36\x9a\xf9\x5c\xab\xb4\x81\xcf\x23\xd0\x8d\xb3\xef\x8d\x6e\x1b\x9f\xa8\xfd\xc7\x00\x6b\xc4\x70\x24\x5d\x86\x9d\x7b\x25\x1b\x4b\xf0\xf3\xaa\xe6\x63\x8c\x8e\x38\x0f\x0a\xd9\x0a\x6f\x2b\x8b\x07\x7b\x3d\x0e\xe9\x50\x14\xb7\xcb\x1f\x66\xee\x56\xf9\xef\x6c\x00\xfd\x74\xd9\xbc\xb9\xfa\xde\xb9\xe5\x68\x1c\x98\x5b\xed\xb3\xf4\x5f\xa5\x87\x63\x78\x4b\x12\x6f\x57\xe1\x08\xf4\xad\x5f\x40\x63\x68\xf6\xa6\x2f\xd5\x53\x63\xb4\xc9\xdf\x79\x49\x98\xff\x41\x91\x5e\xdf\x37\x08\xe3\x87\x32\x3f\x35\xe6\x17\x94\x4d\xaf\xd0\xc3\x8e\xe1\x27\xff\xd2\xc5\xbb\x80\xb6\xf4\xf4\x8b\x70\x99\x97\xad\xdb\xf4\xee\xe6\xfc\xb2\xf3\xf8\x85\x06\xf2\xbe\x21\x37\x0c\xce\x8e\xdc\xec\x27\xde\xda\xff\xa7\x66\xde\xb3\x3e\x5f\x3a\xf2\x4f\x00\x00\x00\xff\xff\x15\x67\xec\x17\x73\x10\x00\x00")
var _templatesServerMainGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x57\x5b\x6f\xdb\x36\x14\x7e\x16\x7f\xc5\xa9\xd0\x01\x52\xe7\x48\x2b\xf6\x96\xc2\x0f\x41\x2e\x9d\x87\x34\x0e\xe0\xf4\x61\x58\x87\x82\x91\x8e\x64\x2e\x32\xa9\x91\x54\xdc\xcc\xd0\x7f\x1f\x78\x89\x4d\xdf\xd2\x6c\x41\xd0\x01\xcd\x4b\x1c\xf1\x1c\x7e\x3c\xfc\xce\x8d\x27\xcf\xe1\x58\x94\x08\x35\x72\x94\x54\x63\x09\xd7\x77\x50\x8b\x03\x35\xa7\x75\x8d\xf2\x1d\x9c\x8c\xe1\x62\x7c\x05\xa7\x27\xa3\xab\x8c\x10\x02\x8b\x05\xb0\x0a\xb2\x63\xd1\xde\x49\x56\x4f\x35\x1c\xf4\x7d\x9e\x9b\xe5\x42\xcc\x66\xc8\xf5\x86\x6c\xb1\x00\xe4\x25\xf4\x3d\x21\xa4\xa5\xc5\x0d\xad\x11\x66\x94\x71\x42\xd8\xac\x15\x52\x43\x42\x00\xe2\x46\xd4\xb1\xf9\x15\xca\xfe\x70\xd4\xf9\x54\xeb\x36\x26\x04\xa0\x11\xb4\x54\x10\xd7\x4c\x4f\xbb\xeb\xac\x10\xb3\xbc\x16\x07\xa2\x45\x4e\x5b\x96\x5b\x61\x4c\x22\x6f\xd6\x47\x85\xef\xc5\x44\xcb\xae\xd0\x67\x0d\xad\x15\xf4\x7d\x65\x7f\xc3\xed\x7f\xa2\x52\x78\x5b\xde\x18\x1c\x2b\x35\x67\x7a\x3b\x0f\xfa\xde\x7d\x78\xb4\xcb\x10\x66\x0d\x45\xb5\xd5\xdb\x9f\xf3\xd6\xac\x3f\xb0\xff\x7e\x7b\xbc\x43\x8f\xd8\x4f\x49\x79\x8d\x90\x9d\x60\x45\xbb\x46\x8f\x2c\x29\xca\xf0\xd6\x4a\xc6\x75\x05\xf1\x0f\x7f\xc5\x90\x79\x58\xe4\xa5\xff\xcf\x6d\x7b\x7d\x83\x77\x03\x78\x7d\x4b\x9b\x0e\xe1\x70\x08\x59\xb0\xdf\xc8\xfa\xde\x1c\x18\x22\x39\xdd\x35\xb8\x94\x90\x3c\x87\xab\x29\x53\x50\xb1\x06\x61\x4e\xd5\x7a\x3c\xe8\x29\x82\x0f\x08\xd0\x42\x34\x99\xd1\xff\x40\x6f\x10\x54\x27\x11\xb8\xd0\xa0\x05\x88\x5b\x94\x73\xc9\x34\x82\x5e\x42\xd1\x4a\xa3\x84\x3b\xd1\x05\x80\x4c\xc3\x35\x16\xb4\x53\x08\xb4\x69\x8c\x50\x02\x96\x4c\x2b\x98\x8b\xae\x29\xe1\x1a\xa1\x11\x4a\xbf\x22\x9e\xc5\xd3\x2f\x45\xd3\x95\x38\x69\xb1\x30\x61\x54\x75\xbc\x00\xc6\x99\x4e\x52\x58\xdc\x87\x47\x76\x54\x96\xe7\x82\x96\x28\x93\x6a\xa6\x55\xf6\xdb\xd1\x87\xf3\x0f\x54\x17\x53\x94\x03\x58\xae\x9c\x88\x22\x25\x3d\x09\x42\xd2\x82\x99\x70\xf4\x60\x3b\x1c\xef\x96\xcc\x1d\x37\x2d\x81\x7b\x52\xcc\xc2\x00\x50\x4a\xe3\x02\x67\xcf\xe9\xec\x1a\xcb\x12\xcb\x64\xb1\x80\xec\xe8\x72\x74\xe9\x43\xbf\xef\xb3\x89\xdb\xf4\xeb\x64\x7c\x31\x80\x6d\xf1\x59\x43\x75\xa0\x92\x12\x30\xe7\x1b\xf0\x57\x43\xe0\xac\xb1\x76\x9a\x6b\xd7\xd9\x19\xd5\xb4\x69\x78\x82\x52\x1a\xb5\x7e\x15\x5e\xd6\xba\x5b\x2a\x41\xa1\xbc\x45\x09\x6f\x76\x98\xe1\x24\x79\x0e\xb3\xa5\x27\x0d\xad\xc0\x14\x14\xb4\x69\xb0\x24\x24\x32\x51\x9b\x7d\x54\x66\xcb\x10\x0c\x59\x9e\x27\x30\xa4\x66\x67\x36\xb0\x12\xa1\xb2\x89\x2e\x51\xca\x01\xc4\x56\xf7\xf0\x13\x8f\x53\x12\x45\x7b\x74\xac\x95\x25\x55\x53\x94\xec\x6f\x84\xec\x82\xce\x8c\x45\x07\xde\xd6\xdf\xc7\x97\x57\xa3\xf1\xc5\xe4\x8f\x4f\xdc\xe2\xd8\xe3\x34\xd3\x8d\x8d\x70\xef\xa1\x11\xaf\xc4\xd2\x39\xf6\x2b\xbb\xb2\x2a\x76\x6d\x2d\x75\x36\x85\xd8\x28\x5c\x6d\x5d\xf7\x69\x1c\xaf\x14\x02\xe7\x66\xe6\x4f\x92\x06\x50\x4b\x9e\xd7\xfe\x79\x06\xe4\xbe\xdf\x4b\xa4\xe5\xe4\xc7\xd8\xd3\x14\x45\x25\xaa\xe2\x61\x8a\x4e\x50\x15\x92\xb5\x9a\x09\xbe\x8f\xa8\x2d\x95\xa7\x5e\x2a\x00\x7c\x16\xd2\xf6\xe3\xdb\x24\xb0\xd9\x63\x99\x79\x35\x84\x38\x86\x05\x89\x42\x3e\xab\x90\x50\xa3\x16\xf0\xb9\xce\x7c\xc3\x43\x55\x9b\x18\xc7\x62\x36\xa3\xbc\x3c\x67\x1c\x4d\xda\xd6\x36\xf8\x55\x92\xa6\xc4\xec\xcd\x73\x68\xa9\x54\x68\xcb\xe7\xf1\xf9\xc8\xee\x51\x3e\xa7\x2e\x8d\x24\x49\xc9\xaa\xe6\x6c\x17\x17\x97\x0e\xc3\x1d\x35\xe2\x02\xe7\x2e\x7d\x13\xce\x9a\xf4\xc1\x42\x64\xa9\x52\x5a\x32\x5e\x27\x0e\xd1\x2e\xa5\xff\xb2\xae\xd0\x96\xb9\xd0\xca\xbc\x19\xce\x0a\x13\x42\x54\x15\xb4\x09\x13\xf9\xe8\x72\x94\x04\x06\xa5\xcb\xbb\x64\x13\xd4\x46\x48\x5b\x96\xfa\x5a\xe5\x7c\x4b\x20\x72\x07\xfc\x37\x7c\x43\x75\x8d\xfa\x9e\xb1\x39\xd3\x53\x4b\x36\xd8\x5e\x67\x5b\x51\x83\x25\x88\x4e\x93\xe8\x51\xac\x06\x06\xba\x62\x1a\x95\x58\xa1\x5c\x5e\x63\xda\xe9\x52\xcc\xb9\xf1\x9f\x07\xcc\x8e\x05\xaf\x58\xdd\x49\x34\xd6\xa5\x24\xf2\xdc\x1e\x0e\x57\x77\x97\xb7\x98\xa4\xef\xd6\x29\x8f\xa2\x2d\xc2\x4d\xec\x84\x65\x7c\xcf\xd3\x66\x4f\xca\xac\x02\xe7\xf0\xeb\x91\x13\x7a\xe0\x7f\xd7\xcc\x9e\x1a\x75\xd1\xe3\x78\xf0\xbe\xde\xe3\xe0\xe0\xad\x00\x2e\x9d\x2d\xa0\x4d\x65\x03\x62\xf3\x58\xfa\xcc\x1a\xf8\x75\xff\x96\x4b\x97\x5b\xb2\xc9\x54\x48\x1d\x96\xd6\xef\xb2\x91\x2d\xe9\x38\x17\xbc\x7e\x2c\x1b\xdf\x5d\xcf\x5a\xa6\xfc\x9e\x37\xe7\x46\xbd\xb1\xc5\x20\x31\xb1\x56\x09\x09\x9f\x07\x20\x5a\xad\xde\x4b\xd1\xb5\x26\x50\xdd\x98\x40\x5b\x16\x36\xab\xb1\x3d\xd9\x29\x29\x9f\x82\x9f\x97\x39\xef\x7d\x74\x54\x96\x56\x21\x59\xe2\x6d\x45\x71\x70\xd6\xa6\x4b\x43\x91\x3f\x2e\xbd\xef\xc6\x5b\xe9\xbf\xb3\x00\xb8\xbe\xb3\xfe\xa6\x35\x55\x75\xcb\x50\xdf\x4a\xb7\x0a\x6b\x61\xe6\xda\xc3\x21\xbc\x25\x91\xd9\x57\xe1\x00\xc4\x8d\x59\x40\x29\xb3\xe4\x8d\x4b\xd5\x53\x29\x85\x4c\xdf\x19\x89\x7d\x19\x58\xc5\xec\xea\xae\x45\x18\xde\xa7\xf9\xa9\x94\xbf\x60\xd3\x3a\x05\x07\x3b\x84\x9f\xcc\x47\xef\x5f\x09\x42\x65\xa7\x5f\x98\x4e\x8c\xcc\x16\xf0\x07\xba\xfa\xf3\x76\xea\x67\x6a\xd5\xfb\xda\x5f\xe8\x9c\x1d\xb1\xe9\x7a\xe1\xca\xfe\xaf\x75\xc3\x47\x0e\x36\x9b\xf3\xf5\xcb\x90\xf6\x32\xa4\x7d\xeb\xde\xf6\x32\xa4\x7d\xc3\x21\x6d\x73\x18\x9b\xa0\x1e\x77\xba\xed\x02\x4f\xb8\x96\xe2\x66\x2f\x83\xe9\xdf\x68\xa6\x73\xbe\x0c\x6b\x2f\xLine truncated
func templatesServerMainGotmplBytes() ([]byte, error) {
return bindataRead(
@@ -515,8 +515,8 @@ func templatesServerMainGotmpl() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/server/main.gotmpl", size: 4211, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xbe, 0x31, 0xc2, 0x8c, 0x6b, 0x40, 0x1d, 0xfd, 0x81, 0xc3, 0xaf, 0x3e, 0x84, 0xaf, 0x91, 0xb8, 0x28, 0xf3, 0x5b, 0x3d, 0x54, 0x6, 0x9e, 0xf9, 0x82, 0x30, 0x2a, 0xd9, 0x5b, 0xb1, 0xee, 0xca}}
info := bindataFileInfo{name: "templates/server/main.gotmpl", size: 5969, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xde, 0x50, 0x3a, 0x42, 0xa1, 0xc1, 0x64, 0xa8, 0x5b, 0xcc, 0x8d, 0xa, 0x1d, 0x38, 0x6b, 0xa7, 0x97, 0x56, 0xae, 0xff, 0xba, 0xbd, 0x52, 0x2c, 0x8a, 0x6d, 0x57, 0xc4, 0x38, 0xcb, 0xfd, 0x7b}}
return a, nil
}
@@ -580,7 +580,7 @@ func templatesServerResponsesGotmpl() (*asset, error) {
return a, nil
}
var _templatesServerServerGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x7c\x7d\x73\xdb\x36\xd2\xf8\xdf\xd2\xa7\xd8\xea\xee\x5c\x2a\x23\x51\x79\xb9\x74\xee\x7c\xf5\x6f\x46\x75\x9c\xc4\xbf\x38\x89\x26\x52\xdb\xe7\xa6\xd3\x71\x61\x12\x92\xf0\x98\x02\x78\x00\x68\x59\xf5\xe8\xbb\x3f\xb3\x78\x21\x41\x8a\xb2\x1c\x37\xbd\xde\x79\x26\x91\x08\xe2\x65\x77\xb1\xbb\xd8\x37\x68\x34\x82\x53\x91\x52\x58\x50\x4e\x25\xd1\x34\x85\xab\x0d\x2c\xc4\x50\xad\xc9\x62\x41\xe5\x3f\xe0\xd5\x47\xf8\xf0\x71\x06\x67\xaf\xce\x67\x71\xb7\xdb\xbd\xbb\x03\x36\x87\xf8\x54\xe4\x1b\xc9\x16\x4b\x0d\xc3\xed\x76\x34\x82\xbb\x3b\x48\xc4\x6a\x45\xb9\x6e\xbc\xbb\xbb\x03\xca\x53\xd8\x6e\xbb\xdd\x6e\x4e\x92\x6b\xb2\xa0\xd8\x39\x1e\x4f\xce\x27\xee\x11\xdf\xb1\x55\x2e\xa4\x86\xa8\xdb\xe9\x25\x82\x6b\x7a\xab\x7b\xf8\x55\x6e\x72\x2d\x46\x3a\x53\xf8\x44\xa5\x14\xd2\x7c\xcb\xc4\x02\x3f\x38\xd5\xee\x63\xb4\xd4\x3a\xc7\xef\x42\xd9\xff\x47\x8a\x2d\x38\xc9\xf0\x41\x69\x99\x08\x7e\x63\xbe\x6e\x78\xe2\x3f\x47\x44\x8b\x15\x73\x8f\x2a\x21\x99\xe9\xac\xd9\x8a\xf6\xba\xdd\x2e\x40\x6f\xc1\xf4\xb2\xb8\x8a\x13\xb1\x1a\x2d\xc4\x50\xe4\x94\x93\x9c\x8d\x90\x2e\xbd\x2e\x80\xa3\xc3\xf7\x8a\xbe\x11\x53\x2d\x8b\x44\xbf\xce\xc8\x42\xc1\x76\x3b\x37\x9f\xe1\xf0\xff\xa5\x4a\xd1\x9b\xf4\x1a\xe7\x31\x6f\xdd\x04\x48\x98\xe1\x76\xbb\x7f\x31\x59\x70\x04\x68\x84\x83\x0c\x49\xc2\x75\x27\xe1\x82\xb5\x19\x54\x3e\x7f\xf6\x62\x94\x63\x7b\xcb\x4a\x22\x23\x7c\x11\x0b\xb9\x18\xdd\x8e\x90\x74\x9c\xea\x42\xb3\xac\xd7\xb5\x5d\x25\xe1\x0b\x0a\xf1\x2b\x3a\x27\x45\xa6\xcf\xcd\xbe\xe0\x2a\x77\x77\x90\x4b\xc6\xf5\x1c\x7a\x7f\xf9\x57\x0f\x62\x30\xd3\x55\xdb\x1b\x0c\xfe\xf3\x35\xdd\x0c\xe0\xcf\x37\x24\x2b\x28\x1c\x9f\x40\x5c\x9b\x05\xdf\xc2\x76\x0b\x8d\x09\x5d\xf7\xc6\xac\xfd\x6e\x37\x11\x5c\x19\xce\x50\xc9\x92\xae\xe8\xdb\xd9\x6c\x02\x70\x02\x3d\xb7\xe5\x55\xeb\xd4\xb7\xaa\xb2\xf9\x7b\xce\x6e\x4d\xe7\x82\xb3\xdb\x1e\xce\x76\x43\x24\xa4\x16\xb7\xa9\xe9\xa2\xe0\xa7\x9f\x95\x96\x8c\x2f\xba\xdd\x79\xc1\x13\x60\x9c\xe9\xa8\x0f\x77\xdd\x4e\xa3\xdf\x49\xd9\xf3\xce\x6d\x43\xb4\x24\xea\x9c\x2b\x9a\x14\x92\x42\xec\xfa\xf5\x11\xee\x4e\x00\xd7\xc0\xa2\x63\x90\x77\x83\xa6\x07\x86\x4c\x07\x25\x09\xdc\x20\x94\x0a\xc2\xb8\x82\xf8\xec\x56\x4b\xe2\x61\xb2\x88\xd5\xc6\x23\xce\xd5\xf0\x6e\x67\xdb\xdd\x96\x62\x1b\xb2\x8d\x21\x45\xe4\x5e\x9c\xdd\x26\x59\x91\xd2\x69\x4e\x13\xbb\x05\x2a\xa7\xc9\x6b\x96\x51\xf0\x7f\x8e\x46\xc1\xe6\x50\x4e\xae\x32\x9a\x5e\x30\xa5\x51\x79\x04\x84\x04\x48\x32\x4a\x78\x91\xcf\xd8\x8a\x8a\x42\x03\x00\xf2\x71\xfc\xaa\x90\x44\x33\xc1\xbb\x00\x0b\x49\x12\x3a\x2f\xb2\xb2\x47\xb3\xc3\x8a\xdc\xbe\xa5\x24\xa5\x72\xca\x7e\x35\x50\x38\x21\x88\xbf\xdb\x68\x8a\x6d\xc8\xaf\x4a\x24\xd7\x54\x4f\x88\x5e\x7a\xf8\xba\x00\x4b\xa1\xf4\x2e\xd8\x46\xbf\xf8\x3f\xc6\x75\x17\x20\x33\x90\x5f\xb0\x15\xd3\xbe\xe9\x9a\xd2\x7c\x9c\xb1\x1b\xb3\x62\x13\x24\x49\x49\xba\x17\xde\xb5\x64\x9a\xfa\xb7\xf5\x97\x5d\x00\x9d\xa9\xb7\x21\x58\x01\x60\x3a\x53\x93\x10\x36\x0f\x8a\xce\xd4\x45\x08\x60\xd0\xfe\x2e\x84\x72\x17\x14\x9d\xa9\x4f\x21\xa8\xad\x3d\x7e\x0c\xe1\x6d\xed\x71\x4a\xa5\x66\x73\x96\x10\x4d\x9b\x00\x07\xaf\xde\xd1\x4d\xfd\xd5\xb8\x36\xce\xbd\xea\x37\x85\xab\xb9\xc1\x27\x3b\xfb\x1b\x3d\x7b\x6a\xfe\xfa\xfb\x58\x14\x07\xc4\x53\x33\xff\x0f\x44\x4e\xa2\x23\xcf\xb3\x03\xe8\xe1\xd7\xde\x00\x7a\xfe\x9f\x5e\x52\x70\x47\x9a\x61\x6d\x0b\x1f\x13\x1c\xb4\x00\x45\xe5\x0d\xed\xf5\x6b\x8a\xa7\xdb\x09\xa6\x9f\x66\x2c\xa1\x3f\x10\x19\x1d\x35\x79\x1e\x97\x32\x52\xd7\x1b\x34\xd4\x8a\x5b\x34\x2b\xa5\x43\x0b\xb0\xa3\x07\xa0\x97\x4c\x41\x42\x38\x5c\x51\x90\x34\xa7\xe6\xdc\x25\x3c\xf5\x53\x98\xce\x06\x64\x27\xe6\x8c\x43\x13\x83\x5e\xdf\x81\xe8\x37\xcd\xc0\x57\x97\xbb\x01\xf4\x5c\xc3\x50\xdb\x96\xde\x00\x9e\x3d\x7d\x62\x36\x7b\x4a\x13\xc1\xd3\x01\xf4\x8c\x28\x42\x4e\x25\x13\x29\xcc\x85\x84\xf5\x92\x25\x4b\x04\x61\x4d\x98\x86\x2b\x3a\x17\x92\xc2\x35\xcb\x32\xc6\x17\xc0\xd2\x8c\x42\x22\x38\xa7\x09\xae\xaa\xda\xe1\x68\x88\xb7\x5f\x65\x5e\x64\x21\x24\x2f\x1f\x05\x89\x5a\x16\x5a\x23\x28\xa9\x58\x3b\xba\xe0\x06\xca\x12\x12\x03\x41\x8d\xbd\x06\xd0\x5b\x91\xdb\xe1\xd2\x34\x0c\x15\xfb\x15\xf7\xcb\x58\x1a\x52\x64\xca\xcc\xb1\x22\xb7\x6c\x55\xac\x80\x17\xab\x2b\x2a\x41\xcc\xe1\x6a\xa3\xa9\x0a\xe6\x87\x35\xcb\x32\xa3\x04\x20\x27\x52\x21\x04\xf8\x52\xd2\x7f\x15\x54\x69\xb0\x93\x7f\xad\xe0\x9a\x6e\x94\xd9\x4d\x73\xa2\xa9\x01\x30\x8e\x9c\xdb\xec\x9f\x31\x4e\x63\x38\xd7\x90\x0a\xaa\x80\x0b\x6c\x41\x41\x37\x0b\xa2\x48\x88\x79\xad\xff\x95\x48\x37\xbd\x7e\x9d\x31\x0d\xa6\x95\x12\x44\x6e\x34\x0f\xc3\x9c\xe8\x25\xa2\x38\xba\x21\x12\xcd\x88\x91\x16\xa9\x18\x22\x33\xc6\xd8\xc3\x8b\x04\x9e\x1e\x4e\x89\x22\x95\x2d\xb3\x82\xe0\xad\xeb\xa0\x5e\x1d\x40\x0f\x3f\x70\x7c\x26\x12\x92\xf9\x07\x9c\xec\x7c\xd2\x9c\xc3\x4e\x71\xce\xb5\x19\x8f\x1a\x78\x00\x3d\xfc\xe8\x0d\xe0\xa9\x1b\x65\xf4\x72\x38\xce\x6c\x3c\xf3\xa7\x6a\xc0\x69\x83\x9a\x78\x10\x34\x36\x52\xb1\xb2\x54\xde\x59\x2c\xd0\xed\x08\xab\x79\x1a\x1a\x02\xbb\xb5\x2b\x62\x57\x3b\x2e\x0a\xad\x34\xe1\x66\xab\x1c\xd9\xf7\xf0\x77\x79\x4e\x0c\xa0\x87\xdf\x87\x04\x1f\x7a\x03\x78\x61\x59\xfa\x3d\xe3\x85\x36\x8a\x88\x6a\xcbLine truncated
var _templatesServerServerGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x3c\x7f\x73\xdb\xb8\xb1\x7f\x8b\x9f\x62\x4f\x6d\x7d\x54\x46\x22\xf3\xa3\xb9\x69\xdd\xf3\x9b\xf1\x39\x4e\xe2\xc6\x49\x34\x91\xee\xee\x75\x6e\x6e\x7c\x30\x09\x49\x78\xa6\x00\x16\x80\x2c\xeb\x3c\xfa\xee\x6f\x16\x3f\x48\x90\xa2\x6c\xc7\xcd\xf5\x5a\xcf\x24\x12\xc1\x05\xb0\xbb\xd8\x5d\xec\x2e\x16\x4a\x53\x38\x11\x39\x85\x39\xe5\x54\x12\x4d\x73\xb8\xdc\xc0\x5c\x8c\xd4\x9a\xcc\xe7\x54\xfe\x0d\x5e\x7d\x84\x0f\x1f\xa7\x70\xfa\xea\x6c\x9a\x44\x51\x74\x7b\x0b\x6c\x06\xc9\x89\x28\x37\x92\xcd\x17\x1a\x46\xdb\x6d\x9a\xc2\xed\x2d\x64\x62\xb9\xa4\x5c\xb7\xde\xdd\xde\x02\xe5\x39\x6c\xb7\x51\x14\x95\x24\xbb\x22\x73\x8a\xc0\xc9\xf1\xf8\x6c\xec\x1e\xf1\x1d\x5b\x96\x42\x6a\x88\xa3\x5e\x3f\x13\x5c\xd3\x1b\xdd\xc7\xaf\x72\x53\x6a\x91\xea\x42\xe1\x13\x95\x52\x48\xf3\xad\x10\x73\xfc\xe0\x54\xbb\x8f\x74\xa1\x75\x89\xdf\x85\xb2\xff\xa7\x8a\xcd\x39\x29\xf0\x41\x69\x99\x09\x7e\x6d\xbe\x6e\x78\xe6\x3f\x53\xa2\xc5\x92\xb9\x47\x95\x91\xc2\x00\x6b\xb6\xa4\xfd\x28\x8a\x00\xfa\x73\xa6\x17\xab\xcb\x24\x13\xcb\x74\x2e\x46\xa2\xa4\x9c\x94\x2c\x45\xbe\xf4\x23\x00\xc7\x87\xef\x15\x7d\x23\x26\x5a\xae\x32\xfd\xba\x20\x73\x05\xdb\xed\xcc\x7c\x86\xdd\xff\x8f\x2a\x45\xaf\xf3\x2b\x1c\xc7\xbc\x75\x03\x20\x63\x46\xdb\xed\xfe\xc9\xe4\x8a\x23\x42\x29\x76\x32\x2c\x09\xe7\x1d\x87\x13\x36\x46\x50\xe5\xec\xd9\x8b\xb4\xc4\xf6\x9d\x99\xea\xfe\xbe\x7b\xdf\xc3\x21\xa7\x18\xef\xc4\x4e\x14\x84\xcf\x13\x21\xe7\xe9\x4d\x8a\xec\xe6\x54\xaf\x34\x2b\xfa\x91\x05\x95\x84\xcf\x29\x24\xaf\xe8\x8c\xac\x0a\x7d\x66\xd6\x12\x87\xbe\xbd\x85\x52\x32\xae\x67\xd0\xff\xd3\x3f\xfb\x90\x80\x47\xc1\x89\x44\xd0\xf9\x8f\x57\x74\x33\x84\x3f\x5e\x93\x62\x45\xe1\xf0\x08\x92\xc6\x28\xf8\x16\xb6\x5b\x68\x0d\xe8\xc0\x5b\xa3\x0e\xa2\x28\x13\x5c\x19\x69\x52\xd9\x82\x2e\xe9\xdb\xe9\x74\x0c\x70\x04\x7d\x27\x26\x75\xeb\xc4\xb7\xaa\xaa\xf9\x7b\xce\x6e\x0c\xf0\x8a\xb3\x9b\x3e\x8e\x76\x4d\x24\xe4\x96\xb6\x89\x01\x51\xf0\xd3\xcf\x96\x59\x51\x34\x5b\xf1\x0c\x18\x67\x3a\x1e\xc0\x6d\xd4\x6b\xc1\x1d\x55\x90\xb7\x8e\xf5\xf1\x82\xa8\x33\xae\x68\xb6\x92\x14\x12\x07\x37\x40\xbc\x7b\x01\x5e\x43\x4b\x8e\x21\xde\x75\x9a\xdc\xd3\x65\x32\xac\x58\xe0\x3a\xa1\x26\x11\xc6\x15\x24\xa7\x37\x5a\x12\x8f\x93\x25\xac\xd1\x1f\x69\xae\xbb\x47\xbd\x6d\xb4\xf5\xaa\xce\x85\xde\x15\xf3\xed\xd6\x30\x25\x76\xd2\x74\x7a\x93\x15\xab\x9c\x4e\x4a\x9a\xd9\xc5\x50\x25\xcd\x5e\xb3\x82\x82\xff\x73\xdc\x0a\x96\x89\x72\x72\x59\xd0\xfc\x9c\x29\x8d\xa6\x27\x60\x29\x40\x56\x50\xc2\x57\xe5\x94\x2d\xa9\x58\x69\x00\x40\x2d\x48\x5e\xad\x24\xd1\x4c\xf0\x08\x60\x2e\x49\x46\x67\xab\xa2\x82\x68\x03\x2c\xc9\xcd\x5b\x4a\x72\x2a\x27\xec\x57\x83\x85\x53\xa1\xe4\xbb\x8d\xa6\xd8\x86\x92\xab\x44\x76\x45\xf5\x98\xe8\x85\xc7\x2f\x02\x58\x08\xa5\x77\xd1\x36\xd6\xc9\xff\x31\xae\x23\x80\xc2\x60\x7e\xce\x96\x4c\xfb\xa6\x2b\x4a\xcb\xe3\x82\x5d\x9b\x19\xdb\x28\x49\x4a\xf2\xbd\xf8\xae\x25\xd3\xd4\xbf\x6d\xbe\x8c\x00\x74\xa1\xde\x86\x68\x05\x88\xe9\x42\x8d\x43\xdc\x3c\x2a\xba\x50\xe7\x21\x82\x41\xfb\xbb\x10\xcb\x5d\x54\x74\xa1\x3e\x85\xa8\x76\x42\xfc\x18\xe2\xdb\x09\x71\x42\xa5\x66\x33\x96\x11\x4d\xdb\x08\x07\xaf\xde\xd1\x4d\xf3\xd5\x71\xa3\x9f\x7b\x35\xa8\xf6\x1d\x6f\xb7\xb6\xdb\x28\x4d\x61\x62\x5e\x4f\x0a\x96\xd1\x1f\x88\x04\xb5\x2a\xcd\x3a\xcd\x84\x34\xeb\x1d\xe9\x4d\x49\x41\xd9\xd7\x68\x28\x5a\x5a\xcb\xe9\x7a\x52\xbd\x8c\xaf\x49\x51\x0b\xe1\x10\x4a\x78\xe2\x1f\x06\xf0\x24\x18\xe4\x36\xea\x3d\x29\xe1\x08\x10\x3e\xea\x49\xaa\x57\x92\x43\x1c\x40\x0c\xe2\x72\x80\xfa\x63\xe6\x88\x55\xd8\x79\x00\x13\xaa\x71\x26\xf0\x23\x9b\x4d\xcd\x8c\x89\xc6\xa2\x86\x8c\x9d\x31\x4e\x26\x65\xc1\x4c\x97\x21\xf4\x87\xfd\xc1\xa0\x9a\x92\xb3\x62\xef\x2c\x6f\x28\x9a\x23\xc6\x35\x95\x33\x92\xd1\xdb\x2d\xdc\x82\xeb\xe6\x89\x8a\x9f\xa0\x09\xd9\x87\xa5\x05\x19\x38\x34\xeb\xde\x1e\xab\xbf\x0b\xc6\xe3\x70\x28\x8b\x1d\x98\x65\x41\x05\xbf\x6f\x69\x02\xbf\xa0\x69\x41\xdb\xba\x7b\xb4\xa3\xba\xf1\xb3\xa7\xe6\x6f\xb0\xcf\xfa\x60\x87\xc4\x22\xf0\x03\x91\xe3\xf8\xc0\x9b\xa3\x21\xf4\xf1\x6b\x7f\x08\x7d\xff\x4f\x2f\x28\x38\x5f\xc7\x58\x2d\x2b\x7a\x4c\x70\xd0\x02\x14\x95\xd7\xb4\x3f\xd8\xdd\xb3\x5a\x5b\x68\xd4\x33\x53\xfe\x40\x64\xdc\x94\xa9\xe6\x6e\x30\x84\x83\xb6\xd5\x43\xbe\x19\x13\x4c\x3c\x32\x45\x65\x10\xb5\x00\x0b\x3e\x04\xbd\x60\x0a\x32\xc2\xe1\x92\x82\xa4\x25\x35\x8e\x1a\xe1\xb9\xdf\x96\x0c\xb0\x21\xc5\xd9\x78\xc6\xa1\x4d\x59\x7f\x10\xf5\x02\x13\xdf\xe1\x48\x38\x32\x9a\x4b\x17\xef\xe0\xec\x51\xa6\xfd\x21\xb4\x09\xfc\xb7\x92\x60\xb0\xf5\x56\xc7\xa0\xda\xdc\x38\x86\xd0\x77\x0d\x23\x6d\x5b\xfa\x43\x78\xf6\xf4\x89\xb1\x56\x13\x9a\x09\x9e\x0f\xa1\x6f\xf6\x12\x28\xa9\x64\x22\x37\xf2\xb9\x5e\xb0\x6c\x81\xd8\xac\x09\xd3\x70\x49\x67\x42\x52\xb8\x62\x45\x81\x9a\xc0\xf2\x82\x42\x26\x38\xa7\x19\xce\xaa\x10\xa5\x5d\x3c\x5a\xfb\x93\x9f\x65\xb6\x2a\x42\x4c\x5e\x3e\x0a\x13\xb5\x58\x69\x8d\xa8\xe4\x62\xed\x58\x84\x62\x2a\x2b\x4c\x0c\x06\x0d\x25\x1a\x42\x7f\x49\x6e\x46\x0b\xd3\x30\x52\xec\x57\x5c\x3a\xe3\x68\x4b\x51\x28\x33\xc6\x92\xdc\xb0\xe5\x6a\x09\x7c\xb5\xbc\xa4\x12\xc4\x0c\x2e\x37\x9a\xaa\x60\x7c\x58\xb3\xa2\x30\xbb\x18\x94\x44Line truncated
func templatesServerServerGotmplBytes() ([]byte, error) {
return bindataRead(
@@ -595,8 +595,8 @@ func templatesServerServerGotmpl() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/server/server.gotmpl", size: 22241, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xb2, 0xfb, 0x95, 0xcb, 0x9a, 0xdc, 0xbd, 0xba, 0xa0, 0x68, 0x44, 0x55, 0x1e, 0xff, 0x34, 0x7b, 0xc2, 0x3c, 0xef, 0x24, 0xbd, 0x78, 0xaa, 0x77, 0xb2, 0xad, 0x3e, 0x29, 0xb0, 0x62, 0x7d, 0x58}}
info := bindataFileInfo{name: "templates/server/server.gotmpl", size: 23074, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0xfa, 0x5d, 0xf2, 0xfe, 0xe2, 0xab, 0x28, 0xe5, 0x67, 0x51, 0x2, 0xfa, 0x1c, 0x9f, 0x68, 0x15, 0xb0, 0xa6, 0x9a, 0xe6, 0xda, 0x80, 0xdc, 0xc, 0x65, 0x77, 0xcd, 0x42, 0x91, 0x7, 0x2f, 0x7}}
return a, nil
}
@@ -660,7 +660,7 @@ func templatesSwagger_json_embedGotmpl() (*asset, error) {
return a, nil
}
var _templatesTupleserializerGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5b\xdd\x73\x9c\x38\x12\x7f\x36\x7f\x45\xdf\x94\xd7\x37\xf8\x30\xb3\x49\xee\xc9\x57\xde\xaa\x7c\xed\x6d\xb6\x6a\xed\x54\x9c\xbd\x7b\x70\xb9\xb2\xf2\xa0\xb1\x49\x00\x11\x21\x3c\xf1\x51\xfc\xef\x57\x92\x00\x49\x20\x01\x4e\x1c\x67\x53\xeb\x97\xc4\x33\xe8\xa3\xbf\xfb\xd7\xdd\x4c\x55\x41\x84\x37\x71\x86\x61\xc1\xca\x3c\xc1\xa7\x98\xc6\x28\x89\xff\x87\xe9\x02\xea\xda\x5b\xad\xe0\xf7\x2c\x45\xb4\xb8\x42\xc9\xaf\xa7\x27\xc7\x50\xb6\x9f\x0a\x60\x57\x71\x01\x62\x13\xb0\x9b\x1c\xc3\x86\x92\x14\x10\x88\x65\x88\x52\x74\xe3\x6d\xca\x6c\x0d\xcb\xaa\x0a\xdf\xe0\x35\x8e\xaf\x31\x3d\x46\x29\xae\x6b\xd8\xaf\x2a\xc8\x51\xb1\x16\x17\x41\xc8\xbf\x85\xba\xf6\xcd\xab\x96\x14\x6d\xe1\xec\xfc\xe2\x86\x61\x1f\x30\xa5\x84\x42\xe5\x01\xac\x56\x50\x30\x74\x89\xe1\x51\x00\x97\x98\x01\xbb\xc2\xf2\x36\xb8\x28\x19\xbc\x2f\x0b\xed\x2b\x0f\xe0\x1a\x51\xb9\xfe\x11\x9c\x9d\xbf\x2f\x48\x16\xbe\x41\xdb\xdf\x70\x51\xa0\x4b\xec\x01\x5c\x94\x1b\x38\x3c\x02\x7e\x49\x11\x1e\xe3\xed\xb3\x72\xb3\xc1\x94\x5f\xed\x7b\x00\x11\x5e\xf3\xa7\x62\xdb\x31\xde\xbe\xc0\x6b\x12\x61\xba\xbc\x28\x37\xcd\xd3\xf0\xf7\x02\x1f\x97\xe9\x05\xa6\x4b\xdf\xf3\x00\xe2\x0d\xa7\x94\xef\xe1\x0f\xe5\xfa\xe5\x9e\xbc\xdf\xff\x97\x78\xf6\xb7\x23\xc8\xe2\x44\xb0\x02\x40\x31\x2b\x69\xc6\xbf\xf7\x00\x6a\x4f\x67\xef\xf1\x21\x5c\xdd\x44\x14\x31\x5c\x40\xc1\x68\xb9\x66\x90\x62\x7e\x53\x01\xdb\x98\x5d\x35\x82\xc7\x09\x4e\x71\xc6\x0a\x0f\xa0\xaa\xf8\xf5\xe1\xd3\x28\x8a\x59\x4c\x32\x94\xbc\x62\x38\x2d\xb8\x12\xa5\x14\x12\x54\xb0\x57\x59\x84\x3f\x41\x9c\x31\xb9\x1e\x67\x91\x7c\x5e\x55\x40\x51\x76\x89\x61\x37\x8e\x3e\x05\xb0\x7b\x8d\x12\xce\x44\xf8\x9a\x92\x1c\x53\x16\x63\x7e\x4e\xbc\x81\x04\x67\xcb\x86\x1b\xf8\x89\xef\xe2\xeb\xa1\xae\x1b\x76\xf8\x35\x11\x62\xc8\xaa\x5e\xbe\x9c\xe1\x34\x4f\x10\xc3\xb0\x88\x30\xc5\x9b\x0d\x8e\x4e\xd7\x57\x38\x45\x6f\x6f\x72\xbc\x80\x50\x12\x23\xb5\x32\x54\x8a\xbc\xf8\x4c\xdd\x7a\xee\x8b\xd5\xe3\x5a\x1a\xea\x89\x7f\x67\x57\x94\x93\x76\x9b\xee\x7a\xda\xe3\xfa\xe3\xff\x56\x15\x18\xe6\x0e\x75\x1d\x36\xaa\x79\x55\xbc\xfc\x94\x13\xca\x30\x97\xba\xf5\x1e\xae\x93\xa4\x68\xfe\x5a\xa3\x14\x0f\x9e\x0a\x8d\xc1\x11\x74\x47\x1e\x97\x49\x82\x2e\x12\xfe\x7c\xaf\x5b\xe0\x64\xa4\x25\x31\xde\xc0\xae\xdd\x54\x40\x33\x94\x23\x4d\xc5\xed\xce\xce\x66\xea\xa1\x0d\x39\xed\xaf\xb3\xea\x27\x9a\x55\xf7\x56\x4a\xf7\x31\x2d\xac\x23\xe5\x1f\x8f\x1a\xa9\x6f\x08\x85\x77\x01\x34\x06\x2a\x8d\xb6\x31\x0c\x6d\xf1\xe1\x79\xa7\x24\x6e\x93\x8c\xa0\x28\x32\xed\xaf\xd0\xed\xce\x21\x08\x97\x21\x5e\xa3\xc4\x6f\x16\x4c\xd9\x9e\xdd\xfa\x1c\xf6\x27\x25\x98\x11\x36\xa0\xc8\xa5\x67\xc1\x98\xdd\x38\x07\xe6\xd9\x1a\xa8\xd0\x94\x08\x21\x03\xbe\x0f\x3a\xc6\xc5\xa2\xdd\xf0\x3f\x28\x29\xf1\xcb\x4f\x39\xc5\x45\x11\x93\x4c\xda\xf2\xc1\x9d\x1b\x33\xca\x73\x9c\x45\xcb\x7b\xbb\x32\x90\x16\xe1\x77\xf2\x38\x50\x66\x2c\xc5\xd4\x37\xee\x46\x96\x59\x9c\x78\xb5\xc7\xb3\xe2\x6f\x5a\x4e\x74\x66\xc4\x38\x63\x64\x5e\x46\x74\x24\x44\xed\x96\xa5\x0f\x4b\x99\x0d\x03\x99\x0d\x7d\xa1\x6a\xee\xe9\xdc\x8c\xce\xce\xe3\x8c\x61\xba\x41\x6b\x5c\xd5\x95\x1e\xd2\xf5\x20\x7e\xd0\xf9\x71\x8f\x80\xd0\x4a\x40\xe0\x59\x5d\xde\x6e\x3c\x62\x45\xeb\x9e\xca\x39\xdd\x4a\xbd\x63\x33\x92\x86\x2f\xe4\xd1\x59\x14\xff\x14\xc0\xb5\xef\xd6\xa8\xf0\xdc\x46\xcc\x62\xb9\xef\xd5\x9e\x5a\xe7\x69\xf8\xe8\x0a\x15\x2f\xe2\x62\x4d\xe3\x34\xce\x10\xc3\xd1\x6d\xa1\x12\xb9\x78\x8f\xd7\x4c\x4a\x0f\x41\x4e\x92\x9b\x94\xd0\xfc\x2a\x5e\x0f\xe1\x93\x4c\xf8\x25\xc5\x5f\x05\x42\xb5\x69\xda\x8c\x88\x9c\x2e\x52\xb2\x67\xa8\xc0\x3c\x2c\x3e\x23\xd1\x4d\x97\x92\xef\x05\x26\x09\xe9\x0f\x62\xd9\xce\x10\x23\x49\xd3\x21\x94\x5b\x4f\x4b\x2e\xff\xfb\xb4\xbc\x10\x7f\x76\x90\xe7\x02\x15\xd8\x64\xf2\xd7\xb2\x70\x73\x38\xca\xe0\x97\xf3\xc7\xa9\x99\x01\x02\x75\x33\x35\xfc\xf8\x69\x92\x9c\x6c\xcc\x1c\x2e\x72\x85\x26\x84\x5a\x0b\xf1\x43\xef\x37\xa3\xfb\x50\x84\xcb\xe6\xb8\xd6\x23\x7d\x7d\x87\x71\xe5\x1b\xfc\xb1\x8c\x29\x8e\x94\xa8\x11\x27\xce\x89\xfb\xa4\xa7\x3f\x15\x30\xbd\xae\xcf\xce\xcd\x85\x32\xc5\xfd\x9b\x34\x2c\x18\x0e\xaf\x2d\x33\x16\xb4\x6e\x1c\x6f\xb8\xb3\xc4\xd9\xa5\x70\x5e\x7b\x18\xf3\xb9\xbc\x17\x59\x99\x24\x8b\x46\xe4\xb6\x48\x12\xb4\x3a\xeb\x5c\x68\x40\xf8\x28\xd9\xa7\x49\xbc\xc6\xf3\x69\x5f\xf6\x6d\x6d\x84\xfe\x00\x68\x99\xb1\x38\xc5\x21\xf7\xea\xe7\x24\x2b\xca\x94\xdb\x9a\x81\x65\x1b\x9b\xda\xdb\x6b\x3f\xc5\x24\x7c\x79\xf2\xf3\x38\x5a\x1d\x51\xdb\x91\x55\x4a\x9e\x82\x11\x52\x90\x9c\x5d\xf1\xb5\xfb\xa8\xef\x54\xb2\xb3\xe4\x3a\x70\x5e\xcd\x5b\x34\x4c\x61\xfb\xc6\xfc\xdc\x83\xd2\xc3\xd2\xcc\xe2\xc9\xb7\xf5\xe2\x51\x0f\xce\x29\xc9\x1f\x1c\xf8\x7b\x73\x60\xb7\xd6\x26\xfd\x57\xf3\x5d\xe7\x29\xdf\xa9\x4c\x3f\xdf\x75\xe7\x38\x65\xe3\x30\x14\x17\x65\xc2\xec\xd0\xdd\xc8\xdc\xbb\xef\x02\xd8\xcd\x11\xc5\x19\x13\x5d\x15\x4b\x22\x6f\x1e\x73\xb1\x66\x24\xbb\x49\x49\x59\xf4\xdd\x56\x2d\x19\xa6\x7b\x67\x07\xa7\xdd\x64\x47\x01\x5d\x44\xc0\xdd\x42\x0d\xe1\x12\xfa\x73\x8c\x93\x48\x9c\x65\xf4\x0f\xcc\xcd\xe2\xb1\x01\xe3\x05\xba\xe6\xb2\x09\x75\x0b\xd4\x8f\x91\x07\x1f\x09\x80\x66\xaa\x77\xec\xb2\xc6\x88\xe6\x1f\Line truncated
var _templatesTupleserializerGotmpl = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5b\x5b\x6f\xdc\x36\x16\x7e\xb6\x7e\xc5\xd9\x81\xeb\x1d\x79\x65\x4d\x93\xec\x93\x17\x2e\x90\x5b\xb7\x29\x50\x3b\x88\xd3\xdd\x07\xc3\x48\xe9\x11\xc7\x66\xa2\x5b\x28\xca\x13\xaf\xa0\xff\xbe\x20\x29\x89\xa4\x44\x4a\x72\xe2\x38\x0d\xea\x97\xc4\x33\xe2\xe5\xdc\xcf\x77\xce\xd1\x54\x15\x44\x78\x43\x52\x0c\x0b\x56\xe6\x31\x3e\xc5\x94\xa0\x98\xfc\x0f\xd3\x05\xd4\xb5\xb7\x5a\xc1\xef\x69\x82\x68\x71\x85\xe2\x5f\x4f\x4f\x8e\xa1\x6c\x3f\x15\xc0\xae\x48\x01\x62\x13\xb0\x9b\x1c\xc3\x86\x66\x09\x20\x10\xcb\x10\xa5\xe8\xc6\xdb\x94\xe9\x1a\x96\x55\x15\xbe\xc1\x6b\x4c\xae\x31\x3d\x46\x09\xae\x6b\xd8\xaf\x2a\xc8\x51\xb1\x16\x17\x41\xc8\xbf\x85\xba\xf6\xcd\xab\x96\x14\x6d\xe1\xec\xfc\xe2\x86\x61\x1f\x30\xa5\x19\x85\xca\x03\x58\xad\xa0\x60\xe8\x12\xc3\xa3\x00\x2e\x31\x03\x76\x85\xe5\x6d\x70\x51\x32\x78\x5f\x16\xda\x57\x1e\xc0\x35\xa2\x72\xfd\x23\x38\x3b\x7f\x5f\x64\x69\xf8\x06\x6d\x7f\xc3\x45\x81\x2e\xb1\x07\x70\x51\x6e\xe0\xf0\x08\xf8\x25\x45\x78\x8c\xb7\xcf\xca\xcd\x06\x53\x7e\xb5\xef\x01\x44\x78\xcd\x9f\x8a\x6d\xc7\x78\xfb\x02\xaf\xb3\x08\xd3\xe5\x45\xb9\x69\x9e\x86\xbf\x17\xf8\xb8\x4c\x2e\x30\x5d\xfa\x9e\x07\x40\x36\x9c\x52\xbe\x87\x3f\x94\xeb\x97\x7b\xf2\x7e\xff\x5f\xe2\xd9\xdf\x8e\x20\x25\xb1\x60\x05\x80\x62\x56\xd2\x94\x7f\xef\x01\xd4\x9e\xce\xde\xe3\x43\xb8\xba\x89\x28\x62\xb8\x80\x82\xd1\x72\xcd\x20\xc1\xfc\xa6\x02\xb6\x84\x5d\x35\x82\xc7\x31\x4e\x70\xca\x0a\x0f\xa0\xaa\xf8\xf5\xe1\xd3\x28\x22\x8c\x64\x29\x8a\x5f\x31\x9c\x14\x5c\x89\x52\x0a\x31\x2a\xd8\xab\x34\xc2\x9f\x80\xa4\x4c\xae\xc7\x69\x24\x9f\x57\x15\x50\x94\x5e\x62\xd8\x25\xd1\xa7\x00\x76\xaf\x51\xcc\x99\x08\x5f\xd3\x2c\xc7\x94\x11\xcc\xcf\x21\x1b\x88\x71\xba\x6c\xb8\x81\x9f\xf8\x2e\xbe\x1e\xea\xba\x61\x87\x5f\x13\x21\x86\xac\xea\xe5\xcb\x19\x4e\xf2\x18\x31\x0c\x8b\x08\x53\xbc\xd9\xe0\xe8\x74\x7d\x85\x13\xf4\xf6\x26\xc7\x0b\x08\x25\x31\x52\x2b\x43\xa5\xc8\x8b\xcf\xd4\xad\xe7\xbe\x58\x3d\xae\xa5\xa1\x9e\xf8\x77\x76\x45\x39\x69\xb7\xe9\xae\xa7\x3d\xae\x3f\xfe\x6f\x55\x81\x61\xee\x50\xd7\x61\xa3\x9a\x57\xc5\xcb\x4f\x79\x46\x19\xe6\x52\xb7\xde\xc3\x75\x12\x17\xcd\x5f\x6b\x94\xe0\xc1\x53\xa1\x31\x38\x82\xee\xc8\xe3\x32\x8e\xd1\x45\xcc\x9f\xef\x75\x0b\x9c\x8c\xb4\x24\x92\x0d\xec\xda\x4d\x05\x34\x43\x39\xd2\x54\xdc\xee\xec\x6c\xa6\x1e\xda\x90\xd3\xfe\x3a\xab\x7e\xa2\x59\x75\x6f\xa5\x74\x1f\xd3\xc2\x3a\x52\xfe\xf1\xa8\x91\xfa\x26\xa3\xf0\x2e\x80\xc6\x40\xa5\xd1\x36\x86\xa1\x2d\x3e\x3c\xef\x94\xc4\x6d\x92\x65\x28\x8a\x4c\xfb\x2b\x74\xbb\x73\x08\xc2\x65\x88\xd7\x28\xf6\x9b\x05\x53\xb6\x67\xb7\x3e\x87\xfd\x49\x09\xa6\x19\x1b\x50\xe4\xd2\xb3\x60\xcc\x6e\x9c\x03\xf3\x6c\x0d\x54\x68\x4a\x84\x90\x01\xdf\x07\x1d\xe3\x62\xd1\x6e\xf8\x1f\x14\x97\xf8\xe5\xa7\x9c\xe2\xa2\x20\x59\x2a\x6d\xf9\xe0\xce\x8d\x19\xe5\x39\x4e\xa3\xe5\xbd\x5d\x19\x48\x8b\xf0\x3b\x79\x1c\x28\x33\x96\x62\xea\x1b\x77\x23\xcb\x94\xc4\x5e\xed\xf1\xac\xf8\x9b\x96\x13\x9d\x19\x91\xa4\x2c\x9b\x97\x11\x1d\x09\x51\xbb\x65\xe9\xc3\x52\x66\xc3\x40\x66\x43\x5f\xa8\x9a\x7b\x3a\x37\xa3\xb3\x73\x92\x32\x4c\x37\x68\x8d\xab\xba\xd2\x43\xba\x1e\xc4\x0f\x3a\x3f\xee\x11\x10\x5a\x09\x08\x3c\xab\xcb\xdb\x8d\x47\xac\x68\xdd\x53\x39\xa7\x5b\xa9\x77\x6c\x46\xd2\xf0\x85\x3c\x3a\x8b\xe2\x9f\x02\xb8\xf6\xdd\x1a\x15\x9e\xdb\x88\x59\x2c\xf7\xbd\xda\x53\xeb\x3c\x0d\x1f\x5d\xa1\xe2\x05\x29\xd6\x94\x24\x24\x45\x0c\x47\xb7\x85\x4a\xd9\xc5\x7b\xbc\x66\x52\x7a\x08\xf2\x2c\xbe\x49\x32\x9a\x5f\x91\xf5\x10\x3e\xc9\x84\x5f\x52\xfc\x55\x20\x54\x9b\xa6\xcd\x88\xc8\xe9\xca\x4a\xf6\x0c\x15\x98\x87\xc5\x67\x59\x74\xd3\xa5\xe4\x7b\x81\x49\x42\xfa\x83\x58\xb6\x33\xc4\x48\xd2\x74\x32\xca\xad\xa7\x25\x97\xff\x7d\x5a\x5e\x88\x3f\x3b\xc8\x73\x81\x0a\x6c\x32\xf9\x6b\x59\xb8\x39\x1c\x65\xf0\xcb\xf9\xe3\xd4\xcc\x00\x81\xba\x99\x1a\x7e\xfc\x34\x8e\x4f\x36\x66\x0e\x17\xb9\x42\x13\x42\xad\x85\xf8\xa1\xf7\x9b\xd1\x7d\x28\xc2\x65\x73\x5c\xeb\x91\xbe\xbe\xc3\xb8\xf2\x0d\xfe\x58\x12\x8a\x23\x25\x6a\xc4\x89\x73\xe2\x3e\xe9\xe9\x4f\x05\x4c\xaf\xeb\xb3\x73\x73\xa1\x4c\x71\xff\xce\x1a\x16\x0c\x87\xd7\x96\x19\x0b\x5a\x37\x26\x1b\xee\x2c\x24\xbd\x14\xce\x6b\x0f\x63\x3e\x97\xf7\x22\x2d\xe3\x78\xd1\x88\xdc\x16\x49\x82\x56\x67\x9d\x0b\x0d\x08\x1f\x25\xfb\x34\x26\x6b\x3c\x9f\xf6\x65\xdf\xd6\x46\xe8\x0f\x80\x96\x29\x23\x09\x0e\xb9\x57\x3f\xcf\xd2\xa2\x4c\xb8\xad\x19\x58\xb6\xb1\xa9\xbd\xbd\xf6\x13\xc9\xc2\x97\x27\x3f\x8f\xa3\xd5\x11\xb5\x1d\x59\xa5\xe4\x29\x18\x21\x05\xc9\xd9\x15\x5f\xbb\x8f\xfa\x4e\x25\x3b\x4b\xae\x03\xe7\xd5\xbc\x45\xc3\x14\xb6\x6f\xcc\xcf\x3d\x28\x3d\x2c\xcd\x2c\x9e\x7c\x5b\x2f\x1e\xf5\xe0\x9c\x66\xf9\x83\x03\x7f\x6f\x0e\xec\xd6\xda\xa4\xff\x6a\xbe\xeb\x3c\xe5\x3b\x95\xe9\xe7\xbb\xee\x1c\xa7\x6c\x1c\x86\xe2\xa2\x8c\x99\x1d\xba\x1b\x99\x7b\xf7\x5d\x00\xbb\x39\xa2\x38\x65\xa2\xab\x62\x49\xe4\xcd\x63\x2e\xd6\x34\x4b\x6f\x92\xac\x2c\xfa\x6e\xab\x96\x0c\xd3\xbd\xb3\x83\xd3\x6e\xb2\xa3\x80\x2e\x22\xe0\x6e\xa1\x86\x70\x33\xfa\x33\xc1\x71\x24\xce\x32\xfa\x07\xe6\x66\xf1\xd8\x80\xf1\x02\x5d\x73\xd9\x84\xba\x05\xea\xc7\xc8\x83\x8f\x04\x40\x33\xd5\x3b\x76\x59\x63\x44\xf3\x8f\x1f\Line truncated
func templatesTupleserializerGotmplBytes() ([]byte, error) {
return bindataRead(
@@ -675,8 +675,8 @@ func templatesTupleserializerGotmpl() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "templates/tupleserializer.gotmpl", size: 16449, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x54, 0x2b, 0xea, 0xa9, 0x39, 0x75, 0x5c, 0x29, 0x29, 0x76, 0xb4, 0x2, 0x34, 0x6a, 0xdc, 0x5, 0x95, 0x56, 0x85, 0x87, 0xce, 0xc, 0xbd, 0x1f, 0x70, 0xca, 0x8e, 0x9e, 0x66, 0x17, 0xa3, 0x1c}}
info := bindataFileInfo{name: "templates/tupleserializer.gotmpl", size: 16512, mode: os.FileMode(0644), modTime: time.Unix(1482416923, 0)}
a := &asset{bytes: bytes, info: info, digest: [32]uint8{0x2b, 0xb6, 0xfd, 0xcf, 0x74, 0x6, 0x9a, 0x2a, 0x84, 0xef, 0x17, 0x4b, 0x97, 0x48, 0x4c, 0x3a, 0x69, 0x42, 0x61, 0x93, 0xb2, 0x26, 0x23, 0xf, 0x53, 0x13, 0x6f, 0x39, 0xd9, 0xd9, 0x9b, 0x42}}
return a, nil
}
+2
View File
@@ -41,6 +41,8 @@ func GenerateClient(name string, modelNames, operationIDs []string, opts *GenOpt
}
}
templates.SetAllowOverride(opts.AllowTemplateOverride)
if opts.TemplateDir != "" {
if err := templates.LoadDir(opts.TemplateDir); err != nil {
return err
+2
View File
@@ -55,6 +55,8 @@ func GenerateDefinition(modelNames []string, opts *GenOpts) error {
return errors.New("gen opts are required")
}
templates.SetAllowOverride(opts.AllowTemplateOverride)
if opts.TemplateDir != "" {
if err := templates.LoadDir(opts.TemplateDir); err != nil {
return err
+3
View File
@@ -63,6 +63,9 @@ func GenerateServerOperation(operationNames []string, opts *GenOpts) error {
return errors.New("gen opts are required")
}
templates.LoadDefaults()
templates.SetAllowOverride(opts.AllowTemplateOverride)
if opts.TemplateDir != "" {
if err := templates.LoadDir(opts.TemplateDir); err != nil {
return err
+1
View File
@@ -557,6 +557,7 @@ type GenOpts struct {
defaultsEnsured bool
PropertiesSpecOrder bool
StrictAdditionalProperties bool
AllowTemplateOverride bool
Spec string
APIPackage string
+5
View File
@@ -543,6 +543,11 @@ func (g *GenApp) UsePFlags() bool {
return g.GenOpts != nil && strings.HasPrefix(g.GenOpts.FlagStrategy, "pflag")
}
// UseFlags returns true when the flag strategy is set to flag
func (g *GenApp) UseFlags() bool {
return g.GenOpts != nil && strings.HasPrefix(g.GenOpts.FlagStrategy, "flag")
}
// UseIntermediateMode for https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29
func (g *GenApp) UseIntermediateMode() bool {
return g.GenOpts != nil && g.GenOpts.CompatibilityMode == "intermediate"
+5 -2
View File
@@ -70,6 +70,9 @@ func newAppGenerator(name string, modelNames, operationIDs []string, opts *GenOp
return nil, err
}
}
templates.SetAllowOverride(opts.AllowTemplateOverride)
if opts.TemplateDir != "" {
if err := templates.LoadDir(opts.TemplateDir); err != nil {
return nil, err
@@ -91,7 +94,7 @@ func newAppGenerator(name string, modelNames, operationIDs []string, opts *GenOp
}
if opts.PropertiesSpecOrder {
opts.Spec = withAutoXOrder(opts.Spec)
opts.Spec = WithAutoXOrder(opts.Spec)
}
opts.Spec, specDoc, err = loadSpec(opts.Spec)
@@ -178,7 +181,7 @@ type appGenerator struct {
GenOpts *GenOpts
}
func withAutoXOrder(specPath string) string {
func WithAutoXOrder(specPath string) string {
lookFor := func(ele interface{}, key string) (yaml.MapSlice, bool) {
if slice, ok := ele.(yaml.MapSlice); ok {
for _, v := range slice {
+10 -4
View File
@@ -249,9 +249,10 @@ func NewRepository(funcs template.FuncMap) *Repository {
// Repository is the repository for the generator templates
type Repository struct {
files map[string]string
templates map[string]*template.Template
funcs template.FuncMap
files map[string]string
templates map[string]*template.Template
funcs template.FuncMap
allowOverride bool
}
// LoadDefaults will load the embedded templates
@@ -329,7 +330,7 @@ func (t *Repository) addFile(name, data string, allowOverride bool) error {
}
// check if any protected templates are defined
if !allowOverride {
if !allowOverride && !t.allowOverride {
for _, template := range templ.Templates() {
if protectedTemplates[template.Name()] {
return fmt.Errorf("cannot overwrite protected template %s", template.Name())
@@ -366,6 +367,11 @@ func (t *Repository) AddFile(name, data string) error {
return t.addFile(name, data, false)
}
// SetAllowOverride allows setting allowOverride after the Repository was initialized
func (t *Repository) SetAllowOverride(value bool) {
t.allowOverride = value
}
func findDependencies(n parse.Node) []string {
var deps []string