diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d9143bc6a..5cb4b9d99 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: [ '1.15', '1.*' ] + go: [ '1.16', '1.*' ] name: With Go ${{ matrix.go }} steps: - uses: actions/checkout@v2 diff --git a/cart/interfaces/graphql/schema.go b/cart/interfaces/graphql/schema.go deleted file mode 100644 index 7c03e9a17..000000000 --- a/cart/interfaces/graphql/schema.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x5b\x4f\x6f\xdc\xba\x11\xbf\xfb\x53\xc8\xdb\xcb\xbe\x20\x6d\xd0\x1e\x7d\x5b\xef\x26\xc1\x22\xb1\x93\xd8\x9b\xf4\x10\x18\x01\x2d\xcd\xee\x12\xa1\x44\x99\xa4\x6c\x0b\x45\xbe\x7b\xc1\x7f\x12\x49\x91\x92\x36\x79\x7d\xc0\x6b\xfb\x0e\x2f\x96\x38\x1c\x0e\xc9\x1f\x67\x7e\x33\xd4\x8a\xb6\x86\x6c\x4d\xcb\x12\x58\x0e\xdf\xd6\x88\x89\x6f\x1b\xc8\x29\x43\x02\x0a\xf9\x94\xfd\xeb\x2c\xcb\xb2\x2c\x47\x4c\x5c\x04\x72\xf2\x7f\xe7\xaa\xb5\xb0\x3d\x36\x40\xf0\x23\x30\x0c\xfc\x22\xfb\x9a\xd0\x6a\x64\xda\xf3\x3b\xd5\xf7\x00\x62\xd0\x74\xd9\xae\x69\x01\xcb\xc2\x3c\xca\x87\x8b\xec\x56\x30\x5c\x1d\xce\x7f\x0b\xcd\x18\xf4\xb6\x6a\x57\x84\x7c\x44\x6d\x09\x95\xb8\x81\x87\x06\x33\x28\xb6\x02\x4a\x1e\xf6\xff\xc8\x70\x6e\x9a\xce\xbb\xb9\xde\x36\x65\x89\x58\x1b\xca\x9a\xd7\xe7\x67\x3f\xce\xce\x22\x2b\x67\x9a\xcd\x9a\x15\x98\xe7\xb4\xa9\xc4\x60\xc4\x55\x5d\x13\x0c\xc5\xc6\xb6\xeb\x61\x79\x53\x86\x0d\x4e\x47\x65\x65\x20\xf7\x16\xef\xc5\x1a\xb1\x22\x29\xf7\x96\xa1\xaa\xd8\x51\x81\xc8\x3f\xb1\x38\x4e\x8a\x2b\x49\x3b\xb8\xd7\x63\x55\xca\x57\xd1\x7e\x47\xc4\x87\x66\x5f\x52\x4a\x00\x55\xdd\xc4\x76\xe8\x19\x06\xcb\xa0\x5e\x5a\x09\xb3\x53\xb7\x40\x20\x17\x98\x56\x52\xe2\xb6\x26\x58\x7c\x41\xa4\x01\x3d\xfe\x65\x7b\x05\xe2\x48\x0b\xbe\x2c\xf5\xbf\x17\xd9\x57\x83\x8a\xbb\xdf\x06\xc6\xc5\xb7\xc8\xc1\x34\x2e\x2e\xb2\xed\x46\xdb\x08\x95\xc0\xa2\xdd\x6e\x3a\x98\xa9\xb7\xf7\x98\x10\x5c\x1d\x56\x45\xc1\x80\x0f\xb7\x51\xbf\x56\x92\x75\xc3\xf2\x23\xe2\xc0\x06\xe8\x02\xc6\x69\x65\x4e\xc9\xc8\xe1\xf0\xce\x04\x2a\x0a\x2c\x17\x01\x91\x0d\x12\x28\x32\xae\xd3\xaa\x2d\xad\x83\xe5\x1b\x98\x11\xb4\xeb\xe9\x01\xa1\xd5\x81\xef\xe8\xaa\x11\x47\xb9\x02\xb9\x3c\x46\x9f\xd5\x2c\xbc\x1d\x44\x61\x7b\xb8\x50\x48\x23\x60\x4d\x9b\x9a\x56\xf2\xb8\x0e\xa7\xd8\xb7\x99\x49\x16\xb0\x47\x0d\x11\xeb\x86\x31\xa8\xf2\xd6\x57\x28\x24\x14\xb1\x3e\xae\x81\xa2\x9d\x6d\x32\x7a\xe4\x9f\x6b\x0d\xcf\x6d\x65\x1c\x52\xcd\x68\xd1\xe4\x22\x7c\x8d\xb9\xb7\x0e\x50\x04\xf3\x3c\x74\xe7\x25\x44\xd3\xb9\x77\x46\x76\xe8\x39\x7e\x22\xac\xd8\xbd\x12\xbb\x86\x84\x00\x1a\x9c\xdf\xaf\x51\x0f\x61\x05\x5c\x57\xf9\x53\x1e\xd2\x77\x8c\x1b\xa7\x97\x7b\x86\xce\xac\xc0\x15\xc2\xd5\xed\x11\xd7\x35\xae\x0e\xaf\xaf\x10\x26\xfe\xe6\x60\xfe\xba\xac\x45\x1b\x2c\xde\x11\x71\xab\xf8\x0d\x65\xa3\xe6\x75\xfd\x86\xd3\x92\x7e\x78\xbb\x59\x62\xf5\xcf\xf4\x94\xce\xad\x86\xd9\x3d\xa5\x58\xd7\x4b\x6d\xd3\x27\xd1\x2e\x4b\xc4\xbe\x83\xf8\x48\x50\x0e\x9e\xb1\x2f\xb3\x47\xc4\x30\xaa\x44\x38\x85\x6d\x25\xfa\xa1\x5f\x3f\x0b\x60\x15\x22\x37\xb0\x07\x09\x66\x58\x32\xd8\x4f\x99\x60\xbb\x7f\xa1\x4d\x7e\x04\x76\x8b\x1e\x71\x75\x18\xf8\xe6\xce\x54\xd9\x73\x07\x31\x17\xa3\xdf\x1a\x85\xbc\x29\xed\xce\x25\xe1\xe7\xcb\x48\x47\x9f\x8c\x38\x83\x0e\x6f\x19\xe5\x33\xa5\x26\x14\x5b\xd0\xd8\x3e\x6b\xca\x07\xa1\x03\x11\x62\x9b\x77\x58\x90\x08\x5a\xed\x59\x1b\xb5\xcb\x11\x99\x35\xdb\xee\xf8\xce\x5b\x1b\x2f\x6e\x8e\x3b\x86\xf2\x9a\x56\x72\xfb\x6f\x80\x28\xca\x32\xaf\xd3\x89\x3d\xfa\x90\xdc\x3b\xdd\xc8\xa1\xeb\xc8\x91\x01\xad\x7f\xc8\xed\xe9\x50\xc4\xe8\xb2\xdd\xb5\x35\x2c\x65\x3c\x0d\x0f\xc2\x84\x77\xee\x5d\xea\xfa\x88\xd8\x01\x06\xab\xf8\xcd\xbc\xef\x01\x31\x64\x37\xa1\x9f\xb9\x81\x12\xe1\x4a\xe2\x2c\x22\x13\x8f\xfb\x0e\xcb\x73\x28\xad\x21\x84\xe1\x24\xb4\xf0\xda\x08\x98\x99\x70\x03\xc4\xd1\x3e\xb7\x8e\x90\xe9\x27\xba\x55\x1c\x2c\x96\xee\xd3\x2d\xf3\xf9\xdd\xa8\xf1\xd6\x1e\x63\x3f\x1a\x41\x40\xe0\x04\x47\xd5\xba\x26\xcf\x50\x6d\x7d\xfa\xb6\xda\x53\x0f\x0b\xa3\x83\x74\x73\x9c\x31\x42\x3e\x43\xeb\x0e\x3d\xcf\xd0\x24\x3b\xfa\xa8\x96\x89\xc2\x45\xf6\x86\x50\x24\xd2\x9a\xc1\x42\x24\x41\x40\xd0\xf3\x9d\x13\x77\xf4\xc9\x40\xcf\x3b\x67\xb0\x81\xcb\xdf\xa1\xe7\xe4\x54\x94\xfb\x36\x23\xfa\xc4\xa5\x8b\x32\xdb\x9e\xe3\xa8\x47\xf3\x3a\x1e\xc8\x15\x8a\x70\x25\x80\xed\x51\x3e\xd8\x8e\x80\x08\x9a\x71\x0f\x48\xc0\x13\x8a\x91\x30\xc5\xbf\x13\x1b\x65\x39\xfa\x10\xd8\xc1\x28\xdf\x94\x58\x1a\xdf\x51\x71\x63\xda\x43\x83\x08\xde\xe3\x08\xb5\x8e\xf6\xfa\x64\xc5\x8d\x8d\xca\xbb\x24\x9c\x4e\x12\xb3\xe3\x9a\x8d\x61\x43\x74\xe9\xb4\x24\x40\xdc\xd0\xbd\xc6\x07\xdd\x68\x3e\x3c\xd8\x20\x5c\xd6\x04\xe4\x2b\xfe\x67\xd8\xca\x41\x36\x6e\x93\x61\xf3\x38\x4e\xe4\xba\x42\x42\xdc\x5f\x6e\xdc\xe6\x11\x13\xa2\x23\x4b\x87\x95\x1a\x5d\xb6\x75\xeb\x10\x3f\xf5\x89\x48\x30\xa8\x10\x38\x6d\xd3\x04\x65\x22\xeb\x98\x97\x74\x4c\xe5\x1c\x27\xd0\x94\x9f\x61\x29\x27\x93\x94\x13\x49\xd9\x4f\x70\xb2\x23\xe2\x06\x40\x13\xac\xc0\xdd\x7f\x4b\x0b\xbc\xe8\x23\xdf\x3c\x51\xf6\x7d\x4f\xe8\xd3\xf4\x59\xcf\x11\x63\xca\x51\xb9\x2f\x2d\xfe\xde\xd3\x1c\xc5\x52\xf3\x4d\xd0\x6e\x3a\x71\xcc\xa0\xd8\xe1\x12\x2e\x32\xf9\xff\x19\x75\x81\x75\xc3\x05\x2d\x57\x42\x30\x7c\xdf\x08\xc9\xa8\xc6\x27\x6d\x07\xcc\x92\xfe\x0c\x4d\x17\x3e\x1a\x0e\x97\x41\x95\xc4\x63\x6b\x73\x82\x79\x84\x81\x08\xc9\xf6\x7d\x63\x6a\xb9\xbf\xc9\x9c\x46\x8c\xa7\xe4\xaa\xf3\x48\x8e\x80\xd2\x95\xb7\x91\x92\x9d\xb0\xa5\x35\xfb\x7e\x5b\xe5\xf2\x9c\x26\x4d\x3c\x81\x16\x84\x23\x8e\x52\x92\x40\xd8\xf8\xa9\xfb\x76\x8d\xca\x1a\xe1\x83\xca\x00\x96\xb9\xf3\xe0\x10\x95\x59\x33\xbd\xd7\x34\x67\x8f\x89\x00\x36\xca\x74\x86\xfd\x67\xcd\xaf\x23\xe5\xae\x8d\xfe\xe1\x72\x72\x99\xcc\x6f\x22\xe8\x1e\x88\xa6\x46\x61\x93\xd9\x58\xdb\x98\x66\x89\xd1\xde\x98\x3b\x5e\x2d\x2c\x6b\x52\x26\x3e\xb0\x42\x1e\x77\xc3\xc9\xd2\x07\xce\x09\x5b\xce\x3e\xc6\xea\x02\x2e\x0b\xf4\x60\xa4\xde\x24\x06\x70\xf5\xba\x45\xcd\xb0\x2c\x11\x78\x30\x55\xf3\xa8\x07\x35\x0f\xd5\x68\xca\x1e\x57\x89\xba\x88\x6b\xe6\x35\x2a\x83\x06\x4e\x1b\x96\x43\x58\x24\x7c\x10\xad\x53\x8b\xf3\x7d\xd9\x3b\x68\xbd\xdc\x7e\x28\xa1\xc8\xcb\x40\xe6\x00\xc2\x2f\x87\x2e\xbf\x43\xeb\xa6\xa7\xfa\xaf\x2e\xb5\x0c\x07\x0d\xc5\xcd\x0e\xeb\x59\xe0\xea\x40\xe0\xe3\x84\xe7\x70\xa4\x92\xce\x89\xd1\xa7\x29\x35\x56\x64\xaa\x66\x78\xa2\x87\xfa\x8b\xd1\x1d\x16\xe0\xd5\x73\xf2\x68\x6a\x4f\x6e\x10\xf5\x88\x84\x73\x3a\xe2\xe7\x64\x8f\x19\x17\x95\xc2\x41\x52\x86\xa0\xa8\x88\x0f\x49\x5c\x14\x04\xae\x07\x52\x1e\x95\xd5\xa1\x61\xd4\x1e\x8e\x48\x23\x4c\xb4\x4d\xca\x08\x06\x10\x99\xda\x50\xe6\x9a\x8d\xd9\xdc\xc3\xd4\xac\xdb\x7b\x5c\x0d\x81\x9a\xd3\xb2\x46\x55\x3b\x18\xce\xf3\x70\x58\x0c\x05\x02\x99\x9a\x72\xd1\xf9\xc0\xa4\xd5\x2a\xcb\x1d\xd5\xc3\xe0\x80\x1d\x6f\x1a\xb7\x47\x02\x89\x4d\xd8\xac\x65\x06\x8a\xbc\x1d\x03\x02\xf5\x91\x56\x63\xe8\x80\x52\x95\x99\x93\x36\x27\x12\x35\x75\xbb\x62\x2b\x01\x33\xae\x69\x94\x3c\x22\x1b\x10\x08\x93\xe1\x55\xa0\xdf\x6c\xbd\x28\xe6\x02\x57\x07\x4d\xaf\x80\xc5\xa8\xd7\xeb\x88\x4c\xc2\xe4\x98\x68\xe0\xbb\xc7\xe6\xda\x19\x67\xb3\x1b\x24\xe0\xc3\xfe\x12\x33\x71\x0c\x9c\x33\xe2\xbc\xa6\x4c\x97\x12\x58\x1b\x6f\xbc\x6e\xca\xfb\x90\xaf\x56\x48\xa3\x59\x81\x71\x7c\xf9\x7d\x77\x6a\x43\x78\x40\x43\xa7\x69\xaa\xc6\x23\x07\xf6\x08\x85\x8a\xa8\xd3\xa5\xab\x50\x89\x19\x7b\xf1\x16\x44\xc6\x6b\xc8\xf1\x1e\xe7\x19\xb2\xcd\xd9\x7d\x9b\x7d\x87\x76\x61\x43\x46\xe8\xf5\x7d\xdd\xef\xa0\x55\xc1\x26\x31\xb4\x6d\x36\x43\xba\xaa\x8c\xbf\x54\x59\xf6\x44\xfd\xca\x96\x49\x93\x59\x47\x8a\x01\xcf\xa9\x74\x25\xd6\xac\x23\x50\xd1\x41\x47\x69\x9a\x2d\xb4\x26\xcd\xed\x78\x56\x34\xb8\xd9\x7a\x6d\x32\x5d\xbb\xe9\x25\x26\x52\xb6\x2f\x88\xe0\x42\x41\xf4\x06\x78\x43\x2c\x71\x3c\x22\x2e\xe5\x68\xf5\x9a\x31\xda\xfb\xeb\x20\x17\xe9\x04\xae\x80\x73\x74\x80\x77\xe1\xe6\x61\x45\xf7\xa4\x5e\xee\x3a\xa3\x48\x2d\xa0\xb7\x43\x29\x4c\x56\x23\x22\xb2\x0e\x05\x94\x48\x8f\xfb\xc3\x94\x95\x3f\xce\xa2\xc3\x7c\x12\xed\x0d\x70\xc1\x70\x3e\x58\x1a\xcc\x6d\x4b\xcf\x83\xfd\x85\x29\xd1\xf3\x8a\x10\xfa\xe4\xb4\x67\x3d\x53\xeb\x76\x6f\x83\xf7\x1d\x91\x74\x5a\xb5\x6e\xca\x9c\xb0\x3d\xe1\xb5\x25\x9d\x34\x27\xbd\x4f\xbc\xa9\x7c\xb6\x0e\x29\x58\x0d\xff\x22\x71\x4a\xbf\x9f\x90\xbe\xa1\xcc\x9e\xb2\x85\x69\xb1\xa1\x22\xdb\xcb\xb6\x02\x09\xa4\x5d\x83\x7c\xd4\xee\x5d\xff\x17\x0d\x24\x52\x9f\xd6\xd6\x6f\x6b\x46\xf7\x19\x6f\xf4\x11\xb0\x5f\x0d\xd8\x41\x5e\x66\x50\xd6\xa2\xcd\xf0\xbe\x1b\x16\x73\xe9\x25\x70\xb1\xb0\x0e\xc3\xa8\x89\x95\xa8\xe4\x70\x0e\xe8\xbb\x4a\xd5\xe2\xf6\x48\x9f\xb8\xd4\x2a\x8e\x90\x31\x78\x68\x80\x8b\xec\x09\xf1\x8c\x37\x79\x0e\x9c\xef\x1b\x42\x5a\xc9\xd1\xe5\x03\x98\xb1\xba\xc7\x9e\xea\x26\x72\x72\x73\x43\xde\x5d\x12\x39\x80\xfa\x39\x83\x67\x0f\x1d\x51\x60\xf7\xef\x0d\x06\x52\xf4\x0e\xbe\x37\x44\x9f\x17\x6e\xb6\x51\x4a\xa9\x93\x36\xcc\x94\x95\xf2\x37\x9d\x80\x61\x67\x8b\xb7\x50\x01\x43\x24\xa5\xf1\xa0\x9b\xc7\x74\x8e\x7b\x81\x5e\xc4\x4e\x65\x25\x23\x87\xc4\x8d\xdc\x3e\x35\x56\x56\xea\xe3\xfe\xb7\xec\xc3\x5e\x40\x95\x35\x1c\x0a\x09\xc9\x4c\x30\x54\x71\xa2\xac\x5a\x98\xda\x53\xdc\x7b\x2d\x56\x72\x6d\xd0\x77\x89\x3e\xad\x52\x65\xc6\x9e\x42\x41\x33\x7e\xa4\x4f\xf2\x5f\xa8\x0a\xf9\x8e\x65\x7f\xcd\x70\x95\xe5\x88\x43\x56\x51\x77\x34\xcd\x7d\xcc\x1a\x98\xef\x35\xde\xeb\x5c\x7b\xfc\x04\x06\xab\xfc\x5f\x36\x67\x35\xec\xb6\x80\x4a\xe8\xeb\x00\x69\x2f\xd2\xbe\x44\x41\xcf\x41\xa1\x9f\x1b\x8f\xa6\x5b\x8e\x9f\xfa\x7f\xca\x35\x99\x72\xd9\x44\xeb\xef\x17\xd3\x32\xff\x48\xc9\xfc\x2f\x27\x65\x2a\x21\x73\xc2\x6d\x4c\x66\x46\x52\x86\xab\xba\x11\x69\x40\x6f\x55\xf3\x1c\x54\xff\x81\xa0\x9e\x81\xe9\x19\x90\x9e\x81\xe8\x19\x80\x9e\x81\xe7\x19\x70\x9e\x81\xe6\x19\x60\x9e\x81\xe5\x19\x50\x9e\x81\xe4\x19\x40\x9e\x81\xe3\x19\x30\xfe\x15\x14\xdb\x6b\x12\x83\x66\x17\xc9\x8b\xcf\x15\x7e\x68\xa0\xa3\xa5\x2a\x1f\x92\xd1\x05\xeb\xa0\xd0\xaa\x00\x67\x5b\x17\x11\x0a\xeb\x85\x92\xee\xc2\x32\x41\x4b\x0b\xdf\x92\x44\x81\xa3\x3b\x6e\x1d\x3d\x6c\x48\xa1\x0d\x91\xc9\xb9\x89\xba\x01\x39\xcd\xee\xc1\x89\xb9\x47\xcc\x03\xab\xa7\xae\x77\x16\x1f\x6a\x5d\x00\xc8\xec\x25\x4e\xa6\xbf\xd1\xb5\x41\xdb\xbd\x24\x9b\xd3\x23\xb8\x42\x0b\xba\x98\x6b\xb1\x7e\xe1\x0b\x24\x20\x7b\x95\x09\x5c\x82\x5d\xab\xf0\xe2\x6c\xfc\x12\x2c\x92\x24\xfc\xb1\x9b\x7b\x62\xce\xe1\xb1\xfe\xb1\x8d\xe5\x7a\xff\x7f\x75\x7f\x67\x6f\x6b\x27\xb8\xd6\x3b\xf8\x9f\xda\xce\xd1\xd4\xab\x08\x16\xfb\xcf\x99\x7b\x7d\xae\xe5\x3a\x58\xe0\xd8\x85\xd5\xab\xc6\xbf\x79\xa9\xd8\xef\x69\xc9\x98\x13\xf4\x8d\x38\xcd\x17\xa2\x2a\x7b\xf1\xc2\x56\x51\x5f\xbc\x98\x7f\x74\x66\x60\x2f\x94\x1c\x03\x5f\xd2\xd3\xdb\x8a\x9e\x3b\xad\x19\x65\xbd\x89\xa0\xe1\x54\x46\x5d\xc5\xe9\xf9\x86\xb7\xfb\x5f\x47\xac\x3c\xbf\x53\x26\xc0\xb3\x90\x09\x8d\xc2\xd0\xa7\xa6\xff\xe6\x25\x71\xff\xb8\x8e\xfc\x8a\xc7\x6b\x3c\x8f\xf4\x36\xf8\xa7\x83\xef\xaf\xc2\x4a\x9c\xd9\x8b\xb1\xba\x54\xc6\x40\x34\xac\xea\x00\x6b\x6e\x10\xe5\xa1\x64\x5d\x8d\x4a\x26\x66\x02\x58\xc9\xad\x6b\x43\xba\x36\x95\x3d\x34\x48\xfd\x4c\xc3\x38\x33\xc8\x72\xf5\xdb\x01\xa1\xbe\xda\xc9\x50\xa5\xa3\xdd\x01\x3f\x42\x15\x80\x6c\xcc\xa6\x65\xea\x1e\x34\xfa\xed\xf7\xcb\xf8\x06\x0e\x8a\xc8\xb1\x7a\xdc\x60\xcb\xae\x0c\xbd\x8c\xee\xda\xaa\x28\x76\x54\xfe\x35\x34\x70\xbb\x39\x7f\xd9\x5f\xa7\xce\x35\x69\x72\xa7\x37\x40\x40\x80\xfc\xd3\xc2\xf8\xd4\x9f\x60\x8d\x6b\xde\x0a\x28\xbb\xef\xf3\xd5\x1c\x7e\x27\xf5\xda\x61\x4a\xf5\x9f\x44\x3b\x63\x04\x67\xf1\xe6\x0c\xb6\x58\x15\x05\x7f\xa5\x07\xe1\x0a\x63\xb6\x8e\x68\x6f\x4a\x0d\x50\x5d\x3c\xc6\x80\xa7\x55\xf8\x01\x77\x89\xfa\x10\x3f\xc5\xec\x06\xc6\x0e\x2b\x9d\xe9\xe5\x09\x2a\x7a\xcb\xf0\x3b\xc1\x97\xa1\x6b\x1d\x8c\x16\xad\x09\xc6\x06\x5c\xd5\x35\x69\xfb\xeb\x86\x0f\xcc\x5e\x1f\x2c\xf3\xf9\x1b\x1d\xd1\x7b\x03\x25\x7d\x84\x4e\xd9\xc1\xfc\x71\x02\x7a\x92\x4a\x7b\x6b\x97\xee\x87\x26\xf3\x95\xfa\x20\xa1\x15\xbc\x2a\x1b\x22\x70\x4d\xa0\xfb\x4c\xd7\xc2\x05\x78\x1a\x1c\x01\x2f\x05\xbe\xec\xd9\xbf\x7e\x91\xfc\xf1\x98\x9b\xa8\xa8\x1f\xc4\x8d\xcb\x49\xb4\xdc\xc5\x00\xfe\xcb\xb6\x07\x8c\x65\xc9\xfd\xe7\xa4\x61\x11\x92\xe1\xff\xb0\x6f\x36\x3b\xb2\xa1\x48\x52\x1b\x3e\x79\x2c\x95\x58\x48\x7c\xbd\x25\xe9\x43\xb3\xe6\xdc\x5d\x00\x1a\x3d\xe8\xc1\x97\x29\x27\xc6\xf7\xd3\x3d\x53\xca\x4a\x2f\x22\xe2\x19\x3b\x88\x21\xf8\x52\x66\x59\xc4\x2c\x1e\x21\x3b\x33\xec\xff\x71\xf6\xef\x00\x00\x00\xff\xff\x72\xd7\xe2\x40\x7c\x3c\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/cart/interfaces/graphql/service.go b/cart/interfaces/graphql/service.go index cdb738dd9..29a0ec20d 100644 --- a/cart/interfaces/graphql/service.go +++ b/cart/interfaces/graphql/service.go @@ -2,6 +2,8 @@ package graphql import ( "context" + // embed schema.graphql + _ "embed" "flamingo.me/flamingo-commerce/v3/cart/domain/cart" "flamingo.me/flamingo-commerce/v3/cart/domain/placeorder" @@ -12,16 +14,17 @@ import ( "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o schema.go -pkg graphql schema.graphql - // Service describes the Commerce/Cart GraphQL Service type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema for cart, delivery and addresses func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/category/infrastructure/fake/bindata.go b/category/infrastructure/fake/bindata.go deleted file mode 100644 index c2eaaaa04..000000000 --- a/category/infrastructure/fake/bindata.go +++ /dev/null @@ -1,268 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package fake generated by go-bindata.// sources: -// mock/categoryTree.json -// mock/electronics.json -package fake - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _categorytreeJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x93\x3f\x6b\xf3\x30\x10\x87\x77\x7d\x8a\x43\xc3\x3b\xe5\xc5\x7b\xb6\xe2\x36\x94\x0e\xa5\x10\xd3\x25\x84\x70\x51\xae\x91\x8a\x22\x05\xe9\x5c\x28\x21\xdf\xbd\x38\x7f\x5a\x9b\x44\x8a\x5a\x2f\xf6\xf0\xfc\xce\x8f\xee\x74\x33\x01\xb0\x13\x00\x00\xb2\x46\xa6\xb5\x0f\x9f\xb5\x5f\x91\x1c\xc3\xf1\x91\x64\x49\x71\xf0\xce\xa8\x28\x47\x43\xf0\x19\x37\x3d\xf0\x21\x0d\xbe\x20\xeb\x2c\x38\x6d\x97\x4d\x20\x8a\xf7\xc8\x28\xc7\x30\x13\x47\x74\x77\x7a\x27\xe5\xde\x2c\xf2\xff\xa8\x02\x91\x5b\xf0\xc7\xb9\x5c\x46\x72\x62\x91\x61\x7a\x08\x44\xf8\x07\xcd\xeb\xb5\x48\x52\xb7\xba\x8c\x9f\xd2\xfb\x51\xa9\xb2\x26\x5c\x6d\xb5\x77\x54\x60\xfb\x98\x65\xd3\x9a\xd7\x73\x89\x26\x0f\xad\x4b\xcc\x17\xa8\x14\xc5\xe8\x83\x19\xfc\x20\x73\x90\xbb\xdb\x81\x92\xd3\x54\xfd\x3a\xbd\x32\xfb\xef\xef\xf9\xaf\xe7\xc1\xb8\xb4\xc4\x05\xc3\x68\xd2\x60\xda\xfd\x1c\x12\x7d\xd1\x4e\xf2\x20\x98\x5d\x3c\x65\x3d\x6b\xe3\xd6\xf9\xad\xab\x3b\x8a\xba\xcb\x38\xc1\xa8\x8d\x77\xf9\xdd\x4b\xe2\x7f\xdd\xc0\xf7\x76\xb3\x8d\xad\x29\x69\xe0\x53\x0e\xbd\xa1\x59\xfd\x84\x2f\x5b\x29\xe6\x5f\x01\x00\x00\xff\xff\xbb\xff\x03\x12\xc6\x04\x00\x00") - -func categorytreeJsonBytes() ([]byte, error) { - return bindataRead( - _categorytreeJson, - "categoryTree.json", - ) -} - -func categorytreeJson() (*asset, error) { - bytes, err := categorytreeJsonBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "categoryTree.json", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -var _electronicsJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x91\x31\x6f\x83\x30\x10\x85\x77\x7e\xc5\xe9\xe6\xaa\xd9\xd9\xaa\xa8\x43\xa5\xa4\x8a\xaa\x76\xaa\x32\x1c\x70\x50\x2b\x60\x5b\xe6\x32\x44\x11\xff\xbd\xb2\x01\x13\x28\x6d\xb3\x24\xc2\xef\xf3\x7b\xbe\x7b\xd7\x04\x00\xb7\x24\x5c\x19\x77\xd9\x9a\x82\x31\x05\xe4\x9a\x73\x71\x46\xab\xbc\xc5\x87\x5b\xe0\x95\x9a\x00\x3c\xff\x06\x1c\x48\xbe\xfe\x04\xde\x2f\x96\xc7\x18\xeb\x4c\x63\x44\x19\xdd\x23\x2f\xed\x21\x1c\x70\x81\x29\x00\x88\x3b\xf3\xec\xea\x9e\x0b\x45\x98\xc2\x67\x02\x00\x70\x0d\xbf\x00\x18\x8e\xbd\xad\xb7\x54\x0d\x55\x1c\xec\x26\x6d\xaf\x1a\x9e\xe9\x1b\xab\xab\x05\xf3\xd1\xfa\x7b\x3f\xde\x74\x13\xa0\xa4\x5e\x1d\x7d\x42\xde\xb8\x64\xc7\x3a\x5f\xae\xf0\xd1\xc7\x05\xb2\x4b\x00\x8e\xb3\x99\x9e\x44\x9c\xca\xce\xc2\x2d\xa6\xc3\x48\xfd\x13\xe2\xa7\x87\xfb\x7d\x45\x29\xc6\xee\x28\xe3\xda\x2b\x78\x88\xcf\x8e\x41\x5d\x08\x9a\x84\xe8\xbf\x53\xfa\x34\xee\x83\xac\xad\x55\x4e\x1e\xd8\xd8\xa2\x1c\xac\x7b\x84\x5c\xc5\xe2\xa1\xac\x26\x7d\x1a\xa5\x79\x0b\x53\x0f\xcb\x26\x26\xb7\xf5\x26\xd6\x93\xef\x6a\xe4\xae\x4e\xfe\x6f\xa5\x28\x71\x60\xbb\xf0\x7f\xf4\x4b\x4b\xba\xef\x00\x00\x00\xff\xff\xbe\xfe\x8a\xe1\x12\x03\x00\x00") - -func electronicsJsonBytes() ([]byte, error) { - return bindataRead( - _electronicsJson, - "electronics.json", - ) -} - -func electronicsJson() (*asset, error) { - bytes, err := electronicsJsonBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "electronics.json", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "categoryTree.json": categorytreeJson, - "electronics.json": electronicsJson, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "categoryTree.json": &bintree{categorytreeJson, map[string]*bintree{}}, - "electronics.json": &bintree{electronicsJson, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/category/infrastructure/fake/category_service.go b/category/infrastructure/fake/category_service.go index 558a48906..4491a9887 100644 --- a/category/infrastructure/fake/category_service.go +++ b/category/infrastructure/fake/category_service.go @@ -8,8 +8,6 @@ import ( "flamingo.me/flamingo-commerce/v3/category/domain" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -pkg fake -prefix mock/ mock/ - // CategoryService returns category test data type CategoryService struct { testDataFiles map[string]string diff --git a/category/infrastructure/fake/helper.go b/category/infrastructure/fake/helper.go index 2a7ecad3b..eec271827 100644 --- a/category/infrastructure/fake/helper.go +++ b/category/infrastructure/fake/helper.go @@ -1,6 +1,7 @@ package fake import ( + "embed" "encoding/json" "io/ioutil" "path/filepath" @@ -11,6 +12,9 @@ import ( "flamingo.me/flamingo-commerce/v3/category/domain" ) +//go:embed mock +var mock embed.FS + // LoadCategoryTree returns tree data from file func LoadCategoryTree(testDataFiles map[string]string, logger flamingo.Logger) []*domain.TreeData { var tree []*domain.TreeData @@ -25,7 +29,7 @@ func LoadCategoryTree(testDataFiles map[string]string, logger flamingo.Logger) [ logger.Warn(err) } } else { - jsonFile, err := Asset("categoryTree.json") + jsonFile, err := mock.ReadFile("mock/categoryTree.json") if err != nil { logger.Warn(err) return tree @@ -53,7 +57,7 @@ func LoadCategory(categoryCode string, testDataFiles map[string]string, logger f return nil } } else { - jsonFile, err := Asset(categoryCode + ".json") + jsonFile, err := mock.ReadFile("mock/" + categoryCode + ".json") if err != nil { logger.Warn(err) return nil diff --git a/category/interfaces/graphql/schema.go b/category/interfaces/graphql/schema.go deleted file mode 100644 index f5443a55e..000000000 --- a/category/interfaces/graphql/schema.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x54\xc1\x4e\xc3\x30\x0c\xbd\xe7\x2b\xdc\xdb\x90\xf8\x82\xde\xa0\x5c\xb8\x01\x43\x5c\xd0\x54\x79\xa9\x59\x2b\xa5\xc9\x48\x9c\x89\x09\xed\xdf\x51\xb3\xb6\x5a\xb6\xb4\x20\x6e\xeb\xf1\xd9\x7e\x7e\x7e\x76\xc3\xfb\x2d\x41\x61\xda\x96\xac\xa4\xb2\x40\xa6\x8d\xb1\xfb\xf2\x8e\xd9\x36\x6b\xcf\xe4\xe0\x5b\x00\x00\x6c\x88\x17\xd2\x54\x94\xc3\x92\x6d\xa3\x37\xd9\x4d\x3e\x57\x16\x6a\x6a\x74\x17\x35\xf7\xc6\x28\x42\x1d\xe2\xa8\x54\x0e\xef\x33\x2c\xd9\x4a\x1c\x84\xf8\x4d\x62\xaf\x30\xea\x14\x10\x85\x6b\x52\x31\xb4\x43\xe5\xc9\xcd\x77\x7d\xeb\x72\xfe\xd6\x3a\xa4\xf6\xfd\x03\xf5\xac\x80\x83\x10\x8d\x66\xb2\x1f\x28\x13\xac\x93\x63\x68\x6c\xcf\x90\x2d\x72\x1d\x23\x28\xb9\xd9\xd1\x68\x6f\x9f\x66\x4d\x6b\x98\xaa\x33\x18\xc7\xdd\xce\xae\xd0\x65\xd3\x0e\x3c\x20\x23\x34\xed\x56\x51\x4b\x9a\xdd\xb5\x0c\x93\x70\xff\xd5\xd2\xf4\x01\xfd\x5b\xac\xf3\xeb\x8e\x38\x3a\xb4\x0e\x58\x0d\xff\x45\x51\x37\xaa\x72\x67\x55\x95\x91\xbe\xf3\xb3\x30\x5e\x73\x0e\x8f\x9a\x67\x56\x10\x84\xa7\x56\xd0\x05\xae\x71\xa0\x72\x49\x68\x65\xfd\x42\xce\x2b\x1e\x56\xd2\xc7\x72\x88\xbf\x8b\xe2\xf1\x46\x2a\x2f\xf9\x94\x28\x8f\xd2\x9f\x8e\x09\x51\xab\x20\x89\xbe\x98\x74\x05\x41\xd9\xb3\xa7\xf1\x80\x93\xb6\x2f\x8e\x16\x0d\x50\x31\xf5\x2c\x76\xb9\x59\x9a\x66\x21\x53\xc5\xb7\xe3\xc0\x83\xc0\x4f\x4f\x8e\x4f\x28\x8f\x78\xd9\x07\x92\x6f\xf0\xe9\x6c\xe2\x20\x7e\x02\x00\x00\xff\xff\x72\x76\xbd\x6a\xe1\x05\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/category/interfaces/graphql/service.go b/category/interfaces/graphql/service.go index 2caf86ebd..f4c342103 100644 --- a/category/interfaces/graphql/service.go +++ b/category/interfaces/graphql/service.go @@ -1,21 +1,25 @@ package graphql import ( + // embed schema.graphql + _ "embed" + "flamingo.me/flamingo-commerce/v3/category/domain" "flamingo.me/flamingo-commerce/v3/category/interfaces/graphql/categorydto" "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o schema.go -pkg graphql schema.graphql - // Service describes the Commerce/Category GraphQL Service type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema for category, delivery and addresses func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/checkout/interfaces/graphql/fs.go b/checkout/interfaces/graphql/fs.go deleted file mode 100644 index 635592a7d..000000000 --- a/checkout/interfaces/graphql/fs.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xd4\x58\xdb\x72\x13\x39\x13\xbe\xcf\x53\x74\xe0\xe2\x87\x2a\x78\x81\xb9\x0b\x06\xfe\xcd\x16\x6c\xbc\x09\x87\x0b\x8a\x72\xb5\x47\x6d\x8f\x0a\x8d\x7a\x90\x7a\x62\xa6\xb6\xf6\xdd\xb7\x74\xf0\x78\x7c\xc4\x49\x0c\xec\xe6\x82\xc2\x3a\x7c\xfd\x75\x4b\xdd\xfa\xa6\xa5\x6b\x08\x46\x5c\xd7\xe4\x4a\x9a\x8c\x2a\x2a\xbf\x70\x2b\x93\x1b\x41\x27\x63\x83\x25\x5d\x39\x45\x6e\x72\x4d\xbe\x35\x02\x7f\x9d\x01\x00\xb4\xad\x56\x05\xdc\x88\xd3\x76\x7e\x7e\xf6\xf7\xd9\xe3\x1d\x00\xab\xbd\x23\xb6\x42\xdf\x04\x1c\x35\x8e\x3c\x59\xf1\x20\x15\x81\x4b\x88\x3c\x8b\xbf\xca\xd6\x39\xb2\x02\x4f\x5c\x6b\xad\xb6\xf3\xa7\xd0\x04\x00\xe0\x80\x00\x75\x2b\x28\x9a\xed\xd9\x1e\xb6\xdb\xc6\x12\xd1\xc7\xf0\xae\x22\x18\xa1\x13\x90\x0a\x05\xb4\x87\x39\x6b\x3b\x07\x61\x98\x52\x32\xa1\xe2\xca\x12\x9d\x14\x03\x64\x74\x32\x79\x49\x25\x3b\x14\x52\xe1\xd7\x00\x2f\x6d\xcb\xd4\xb4\x85\x12\xfd\x92\xa8\xf6\x80\xc6\x11\xaa\x6e\x08\x1e\xe7\x2e\xed\x8c\x7d\xb1\x8f\xbc\xba\xea\xd7\x64\x4b\x37\x82\x42\xa0\xa8\x21\xab\x02\x65\xb6\x31\x50\x3e\x0e\xf3\x0c\x1a\xec\xea\x10\x31\xb4\x6a\x2d\x56\xcf\xf3\x92\x1a\x3b\x28\xd9\x0a\x6a\x0b\xa8\x94\x0e\xf1\x43\x03\xba\x37\x11\x97\xed\x25\x14\xf9\x44\x0e\x93\xf8\xef\x79\xa6\x75\x01\xad\xd5\x5f\x5b\x02\xad\x60\xc6\x2e\x72\x6a\x1c\x97\xe4\xfd\xce\xbb\x71\xb6\xff\x76\x0c\x7c\x86\xe7\x89\x18\xe0\x94\x5b\x49\xa0\x83\x28\x87\x79\xe9\x1a\x5d\xa2\x31\x1d\xf8\x8a\x17\x36\xc4\x03\xc1\xb7\x25\x91\xf7\xd0\xe0\x9c\x0e\x5e\x8e\xa1\xad\x74\x37\x72\xfc\xf2\xb1\xe4\xbf\x4f\x87\xa2\x31\x5e\xed\x38\xff\x9c\x30\x36\xa0\x8b\x0d\x8c\x70\x8b\x36\xcc\xe7\x9d\x54\xa3\x36\xbd\xd9\xfc\x37\x88\x5a\xf4\xe5\xe0\xd9\x0c\xd8\x64\x8f\xe6\x28\xb4\xc0\xae\xd8\xc2\x1b\xb8\x3b\x76\x7c\xab\x15\xb9\x62\x6d\xb2\x26\xa9\x58\x15\xdb\x4c\xc2\xff\xb1\xe6\xd6\xca\x60\xb2\x67\x35\x76\xba\xcc\x17\x43\xb4\x18\x2a\x76\xfb\x72\xa6\xad\x90\x9b\x85\x2b\x7a\xe4\x65\xcb\x0e\x59\xac\xa9\xd8\x8a\xca\x91\x18\x93\x8f\xa8\x05\x74\xdd\x18\xaa\x63\xd1\xf9\xd9\xb6\x5f\xb3\x1b\xb5\x5e\xb8\x0e\x75\xe1\xd7\xd0\xb8\x69\xcb\x90\x98\xbf\xca\xfc\x6b\xd4\x86\xd4\xa9\xac\x87\x11\x47\xe8\xd9\x1e\x5d\xb4\x32\x83\xeb\xb8\xeb\x1e\xe1\xab\x78\x71\x39\x73\x58\xd3\x29\x7d\x78\x7f\xfd\xe6\x01\x27\x5a\xf1\xe2\xb7\x77\x6f\xdf\x9c\x92\x50\xc0\xbb\x3f\xa3\x6b\x52\xda\x51\x79\xb2\x54\x3b\x49\x88\x3e\xa2\x31\x24\xb9\x44\x9e\x92\xd9\xa3\x84\xdc\xbf\xbe\xa9\x72\x26\x75\xb1\x40\x0f\x65\xc5\x9e\x2c\x34\x8e\x6e\x35\xb7\xde\x74\x8f\x86\xd5\xf7\x6d\xae\xb3\x6b\x88\xa1\x82\xbb\x3a\xea\x1b\xb0\x44\x8a\x54\x90\x27\xa5\xa3\xc0\x03\x7b\x4b\xad\x8f\xc2\xa5\x22\xc8\x6e\x5d\xd3\xd7\x96\xbc\xc0\xc5\xf8\x72\xcd\x48\x1e\xbf\x18\x5f\x1e\x93\x27\xe3\xcd\x4d\x77\x09\xf8\xd6\xe6\x1c\xb7\x47\xa3\x24\x3c\x92\xd2\xfb\xfd\xe6\xea\x0f\x20\x5b\x72\x70\x2d\x07\x4c\xa1\x60\xaf\x1f\xf6\x39\x94\xd6\xbe\x44\xc1\x8d\x90\xed\x87\x57\x24\xa8\x8d\xff\x2e\x74\x5e\x77\x34\x2e\x37\xe1\x7c\xbe\x8f\x9b\xd7\x6d\xe0\x5e\x35\x59\x7d\x91\x55\x0d\xeb\x78\x9a\x94\xf4\x13\x4f\x83\xc5\x70\xb4\x08\x21\xda\x15\x5a\x01\x4f\xde\x6b\xb6\xcf\xc0\x72\xf8\x21\xa0\x93\x4a\x5e\xac\x5f\x3e\xc5\xe4\xed\xff\x82\xb2\xfe\xda\x6a\x47\x43\x84\x5b\x34\x5a\xc5\x3b\xb5\x0c\x65\x9a\xf8\xd0\x8f\x0f\x72\x2c\x91\x7c\xb5\xe4\x26\x0c\x41\xa6\x43\xc9\x21\x6f\x84\x54\x6f\x50\x38\xa1\x2d\x67\x1e\x94\xa7\x63\xf6\xf2\xc3\x8b\x47\x18\x18\x63\x28\xe1\x42\xce\x17\x87\x05\x5e\x7e\x33\xd8\xd5\x93\x7e\xcf\xf9\xe7\xe0\xd8\x9d\x15\xcc\xda\xcb\x93\xa9\x2e\x1f\xaf\x1c\xf4\xa0\x8c\xee\xf1\x9c\x26\xc8\xc9\x2b\xe7\xf8\x3e\xba\xe2\x38\x62\xf7\xe7\x95\x13\xe3\xdf\x4a\x6f\x84\xb6\x24\x43\xea\x45\xf7\x00\x6d\xf6\x93\x62\xf8\x9f\xe0\x1a\xbe\x71\x56\x45\xe5\x07\x1e\x7b\x18\x5a\x55\xb5\xd4\x8f\xd8\xfc\x62\xff\xb0\x31\x7f\x97\xa2\xb4\x9e\xf6\x99\xc3\x17\xea\xd6\x6b\xc9\x2d\x9a\x96\x0a\xf8\x94\xc7\x62\x71\xa0\x6f\x42\x56\x41\xb4\xf3\x67\x4b\xae\xeb\xbb\x0f\x97\xf1\x25\x89\x95\x19\x4b\xd1\xb7\xb4\xf6\xa5\x3e\xfc\x6c\xde\xe6\x77\x11\x37\xac\x58\x16\xf0\x82\xd9\x10\xda\xf3\x3d\x1b\x46\xa9\x85\x92\x3b\x20\x87\xdf\xfe\xbc\xe8\x7c\x93\xfe\xdb\xdc\x68\xe9\x3d\x88\x7d\x20\x0f\x08\x96\x16\x4b\xc2\xb1\xe5\xb0\xd0\xc6\x80\xa3\xe4\x0f\x7d\xd3\x5e\x52\x93\x82\xf6\xf9\xb3\xd1\x51\x7a\xe2\x48\x5a\x67\xdf\x3b\xd3\x07\xf8\xe9\x2e\xce\xbb\x1b\x51\xcb\x6e\x44\x4a\x11\x1f\x05\x53\xee\x20\xe5\x06\xd2\xae\x48\x3f\x83\x86\xbd\xd7\x53\x43\xe1\x41\x4d\x6d\x12\xed\xe3\x23\x3b\xd3\x16\xcd\xbe\xc0\x46\x23\x7b\x4f\xe2\x31\x8c\x0c\xa1\x4b\xa2\xc1\xa0\x17\xf0\xc2\x8e\xd4\x1d\xce\x3a\x02\x1c\x30\xf0\x7f\x92\xc3\xf0\xc9\x97\x70\x2e\x64\x7d\xeb\xc8\x27\x45\xba\x6a\x18\xd5\x58\x56\xda\xe6\x56\x0d\x29\x1f\xa4\x85\x85\xa9\xe1\xf2\xcb\x32\xb9\xb6\x69\x5d\xd3\xcc\x91\xaf\x86\xc4\x8e\xba\x54\x1b\xa4\x6b\xf6\x41\xa3\x94\xe1\x74\xb6\x49\x4f\x3b\x58\xa0\x8e\xb7\x67\x29\xae\xd6\x29\x0b\x2f\x59\x3f\x4b\xd9\x34\x63\x47\x77\xa6\xfe\x22\xaf\x3f\x3a\x2f\xfe\x09\x00\x00\xff\xff\x6f\x43\x5f\xfb\x19\x15\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/checkout/interfaces/graphql/service.go b/checkout/interfaces/graphql/service.go index 57498fe87..4e735dc3f 100644 --- a/checkout/interfaces/graphql/service.go +++ b/checkout/interfaces/graphql/service.go @@ -1,22 +1,26 @@ package graphql import ( + // embed schema.graphql + _ "embed" + "flamingo.me/flamingo-commerce/v3/checkout/application" "flamingo.me/flamingo-commerce/v3/checkout/domain/placeorder/process" "flamingo.me/flamingo-commerce/v3/checkout/interfaces/graphql/dto" "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o fs.go -pkg graphql schema.graphql - // Service is the Graphql-Service of this module type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema returns graphql schema of this module func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/commerce.go b/commerce.go index 6a5378984..cafcfce51 100644 --- a/commerce.go +++ b/commerce.go @@ -7,7 +7,6 @@ package commerce //go:generate rm -rf docs/openapi //go:generate go run github.com/swaggo/swag/cmd/swag init -p pascalcase --generalInfo=commerce.go --dir=./ --output=docs/openapi -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o docs/swagger.go -pkg docs docs/openapi/swagger.json // Swagger Documentation used for generator swag (https://github.com/swaggo/swag#declarative-comments-format) // @title Flamingo Commerce API Spec diff --git a/customer/interfaces/graphql/fs.go b/customer/interfaces/graphql/fs.go deleted file mode 100644 index 1a1be408f..000000000 --- a/customer/interfaces/graphql/fs.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xa4\x55\xc1\x6e\xd4\x30\x10\xbd\xe7\x2b\x66\xf7\x02\x48\x55\xb9\xe7\x46\xbb\x80\x56\xaa\x2a\x68\xb9\x21\x54\x79\xe3\x49\x32\xc2\x19\x47\xf6\x84\x76\x85\xfa\xef\x28\xb6\xb3\x9b\xec\x26\xa5\x82\x9c\x92\x99\xe7\xf7\xc6\x93\x37\xb6\xec\x5b\x84\x6b\xdb\x34\xe8\x0a\x7c\xb8\xee\xbc\xd8\x06\xdd\xc3\xbd\x28\xe9\xfc\xc3\x1d\xfa\xce\x08\xfc\xce\x00\x00\xc8\xdf\xd8\xaa\x42\xbd\xe5\x1c\xae\xac\x35\xa8\x78\x15\x12\x9d\x47\xb7\xdd\xe4\x70\x2f\x8e\xb8\x5a\x65\xcf\x59\xb6\x40\x3b\xe5\xd3\xc7\x25\xfd\xf7\x7a\x80\x79\x68\xd1\x79\xcb\xca\x80\x56\xa2\xd6\x21\x3b\x84\x36\x4a\x54\x3e\x43\xfd\x25\xe4\xfb\x6c\x62\xfb\x8c\x02\x0a\x7c\x8b\x05\x95\x54\x80\xd2\xda\xa1\xf7\x50\x3a\xdb\x80\xd4\x08\x45\x5a\x19\xe9\x2b\x94\x0f\x11\xf1\xb6\xaf\x6b\xbb\x59\xbd\x9b\x53\x49\x98\xa8\x90\x3e\xd0\x83\xd4\x4a\x26\xa4\xd0\x3a\xfb\x8b\x34\xea\x0b\x28\x14\xc3\x0e\xfb\x26\x69\x28\xad\x83\x1d\x19\x43\x5c\xc1\x7b\xf0\x35\xb5\x2d\x71\x15\x2b\x50\x03\x5b\x0e\xdf\x17\x85\x57\x3f\xa2\xf4\xb7\x1a\x41\x63\xa9\xfa\x6e\x0e\x34\x87\x2d\xda\x72\x52\xcb\x05\x70\x67\x0c\x50\x88\x3a\x04\xf2\xc0\x96\x31\xaa\x26\x92\xfb\xc4\x91\x64\xfe\xba\xf5\xb1\xfe\xb0\xa1\xff\x90\xbf\x8a\x14\xaf\x50\x5f\xf6\xd6\xd1\x00\xc9\x5f\x15\xb2\x46\x97\xf7\xaf\x13\x9f\x95\xe4\xbc\xdc\xaa\x06\xf3\x69\xdc\xa8\x43\x78\x12\x6f\x48\x6b\x83\x31\x33\x89\x2b\xe2\x8f\x8d\x22\x73\xc2\xd3\x3a\x2c\xe9\x29\xea\x4e\x12\x3b\x72\x52\x6b\xb5\x0f\xa9\x8d\x12\x0c\x51\x56\x42\xbd\xb1\x49\xf6\xaf\x19\xa1\xd4\x88\xd1\x0c\xcd\x3d\xdb\xcd\x6a\x30\x15\x45\xfa\xb4\xee\x86\x38\x38\x2c\x09\x45\x3b\x15\x41\xfb\xfc\x19\x17\x5f\xd8\xa6\x55\x7c\x0e\x9b\x62\x3a\x16\xb7\xbf\xb6\x1a\xf3\x25\xcc\xfa\x93\x51\x55\x74\x03\xf9\x83\x67\x7c\x6d\x3b\xa3\x0f\x73\xa2\x7c\xb0\xd0\x82\xc3\xe6\xac\x73\xd4\x9b\x1c\x4d\xff\xa2\x76\x3a\x4f\xb3\x83\x92\xcf\xca\x8d\xad\xb5\xd4\x80\xb1\xcd\x96\x30\xad\xf5\x72\xd6\xc5\x53\xcc\xd8\x66\x0b\x18\x87\x15\x59\x3e\x67\x1a\x63\xbc\x38\x44\x79\x99\x27\x62\x6e\xbb\x66\x37\x0c\xd4\x1c\x46\xc9\x59\xc1\x27\x18\x41\x83\x6d\x6d\xf9\xa5\xfe\x60\x1a\xa9\x25\x9e\xe7\x2c\xc3\x27\x41\xd6\x10\x26\xe4\x6b\x87\x6e\x9f\xa6\x61\xbd\x8e\xff\xea\x0e\xa5\x73\x1c\xff\xaa\x09\x77\x16\x10\x87\x02\x3b\x1f\xce\xe0\x78\x3e\x39\x87\x2c\xe0\xd1\x7b\xb2\x3c\x21\x58\xba\x10\xe7\x4e\xa6\xc9\x55\xf9\x8a\x32\x0e\x57\xc4\x42\x21\x60\x1d\x28\x06\x74\xce\xba\xde\xb9\x24\xf1\xc8\x94\x23\xc7\x65\xa0\xdf\x96\xb0\xb7\x1d\x68\xcb\x6f\x04\x1e\x15\x0b\x88\x85\x5a\xb1\x36\x18\x78\x03\xc3\x05\x14\x35\x16\x3f\xe1\x91\xa4\x5e\x2c\x3e\xfa\xf6\xf2\xe5\x16\xcc\xed\x3d\x6d\xfa\x39\xfb\x13\x00\x00\xff\xff\xcc\xfe\xda\xe0\x47\x08\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/customer/interfaces/graphql/service.go b/customer/interfaces/graphql/service.go index 246e6e03a..b8ae64fc6 100644 --- a/customer/interfaces/graphql/service.go +++ b/customer/interfaces/graphql/service.go @@ -1,22 +1,26 @@ package graphql import ( + // embed schema.graphql + _ "embed" + "flamingo.me/graphql" "flamingo.me/flamingo-commerce/v3/customer/domain" "flamingo.me/flamingo-commerce/v3/customer/interfaces/graphql/dtocustomer" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o fs.go -pkg graphql schema.graphql - // Service is the Graphql-Service of this module type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema returns graphql schema of this module func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/docs/swagger.go b/docs/swagger.go index e72781511..10cbde5fa 100644 --- a/docs/swagger.go +++ b/docs/swagger.go @@ -1,249 +1,14 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package docs generated by go-bindata.// sources: -// docs/openapi/swagger.json package docs import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" + // embed openapi/swagger.json + _ "embed" ) -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _docsOpenapiSwaggerJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x7d\x5b\x73\xdb\x38\xb2\xf0\xfb\xfe\x0a\x94\xf7\xab\x5a\xa7\xca\x97\x99\xd9\xfd\xaa\xce\x99\xa7\xe3\xd8\x49\xd6\xb5\x71\xe2\xe3\xcb\xec\xc3\x66\x2b\x05\x93\x2d\x09\x6b\x12\x60\x00\x50\x8a\x76\x6b\xfe\xfb\x29\xdc\x28\x8a\x57\x90\x22\x6d\x49\x91\x1f\x52\x0a\x09\x34\xd1\x0d\x74\xa3\xd1\xdd\xe8\xfe\xcf\x1f\x10\x42\xe8\x48\x2c\xf0\x74\x0a\xfc\xe8\x57\x74\xf4\xcb\xd9\x4f\x47\x27\xe6\x29\xa1\x13\x76\xf4\x2b\x32\x6d\xf4\x93\x10\x44\xc0\x49\x22\x09\xa3\xaa\xed\xbd\xe9\x86\x8e\x3f\x27\x40\x2f\x6e\xaf\xdf\xa0\xfb\x04\x02\xc4\x26\x08\x47\x11\x7a\x1f\xe1\x98\xd0\x29\x43\x97\x2c\x8e\x81\x07\x80\x62\x16\xa6\x11\x08\x0b\x5f\x43\x94\x44\x46\xa0\x60\x95\x5b\x5f\xdc\x5e\x6b\x78\xf9\xe6\x01\xa3\x12\x07\x72\x6d\x54\xfa\x05\xc5\xf1\x1a\x98\x5c\x27\xfd\x3e\xe5\x91\x7a\x3d\x93\x32\x11\xbf\x9e\x9f\x4f\x89\x94\xc0\xcf\x48\x7c\x4e\x4e\x23\x36\x87\xd3\x89\xed\x77\x1e\xb0\x38\x4e\x29\x91\xcb\x3f\x16\x41\x40\x8c\x89\x06\xe2\xda\xfe\x0f\x66\x70\x16\xb0\xf8\x28\x6b\xf7\x7b\x6e\xa8\x11\x09\x80\x0a\xa8\x1f\xea\xcd\xf5\x43\x75\xcf\x39\x70\x61\x29\xfc\xf3\xd9\x4f\xa6\x8d\x7d\x7f\x94\x60\x39\x13\xeb\x93\x72\x8e\x13\x72\x3e\xff\xf9\x3c\xc0\xbc\x82\x30\x53\x28\x3f\x34\x90\x38\x0b\xd3\x00\x14\xb0\x7f\x94\xde\xea\x16\x38\x49\x22\x12\x60\x35\xdb\xe7\xff\x12\x8c\x1e\x95\x9a\xfd\xf3\xa4\x0c\x57\xe2\x69\x03\xcc\x4b\x35\x48\x2f\x38\x22\x8d\x63\xcc\x97\x8a\x0a\x1f\x40\x22\x39\x03\x14\xa4\x9c\x03\x95\x48\x63\x5a\xd1\x85\x83\x48\x18\x15\x20\x2a\x31\xd6\x4d\x7e\xf9\xe9\xa7\xda\x97\xa8\x62\x89\x7f\xfe\x5b\xc5\x87\x56\x63\x0c\x66\x10\xe3\x46\x80\xba\xdd\xff\xe3\x30\x51\xd0\xfe\x78\x1e\xc2\x84\x50\xa2\xa0\x8b\x73\xb5\x98\x39\x8b\x22\xe0\x67\x53\x90\x8a\x32\x77\x20\xd2\xa8\x82\x3e\xee\xef\xf7\xca\x37\xbf\x57\x8f\xf0\xe8\xff\x77\xc4\xf5\x9a\x4a\xe0\x14\x47\xe8\x1e\xf8\x1c\x38\x7a\xc7\x39\xe3\x2f\x82\xbe\xc2\xfd\xe2\xf6\xba\x27\xfa\xa5\xa7\xeb\x4f\x0a\xe4\x39\x0a\x21\x02\x59\xe6\x4b\xb4\x63\x4c\x71\x07\x31\x9b\x83\x96\xb4\x42\x32\x0e\xa1\x66\x0b\xa4\x84\x36\x8f\xf5\xf8\x10\x9c\x4d\xcf\x10\x91\x10\x8b\x13\x14\x42\x44\xe6\xc0\x09\x88\x13\xf4\x44\xa2\x88\xd0\x29\xc2\x61\xc8\x41\x08\x84\x69\x88\x38\xc8\x94\x53\xa1\xf9\x0c\xe2\x44\x2e\x35\xb8\xb3\xfd\x62\xb3\xcd\xd6\xd9\x81\xcd\x9a\x9e\xfc\x5e\xb9\x97\xe5\x37\xa7\x73\xbb\xee\xca\x9b\x54\x92\xd6\x6c\x52\x01\xa3\x22\x8d\x7d\xf9\xf1\xfb\xe9\x62\xb1\x38\x55\xeb\xff\x34\xe5\x11\xd0\x80\x85\x10\xfa\x31\xd6\x0e\x31\xfe\x45\x18\x8a\x8c\x85\x15\xbb\x0b\x24\x99\xd7\xfe\x98\x60\x8e\x63\x90\xc0\xeb\x87\xd4\xb0\x8c\xe5\x32\xd1\x7a\x8b\x90\x5c\x4d\x62\xc3\x82\x2d\x2c\xf8\x39\xae\x1a\x4d\xd6\xda\xe9\x43\x2d\xcd\x88\x86\xa5\x26\xf7\x0a\x4b\x5c\xbd\x7a\x6b\x58\x74\x0c\xa4\x26\x84\x0b\xa9\x87\xee\x81\x9a\x57\xe3\x02\x82\x0d\x2d\x39\x7c\x4b\x09\x87\xf0\xe8\x57\x24\x79\x0a\xaf\x4d\x8a\x08\xfb\x53\xc2\xa7\xed\xce\x12\x22\x26\x61\x18\x81\x2f\x29\xfc\x5a\x6f\xd9\xb2\x37\xe7\x35\x0f\xec\x5a\x1b\x6e\x19\x62\x02\x47\xa9\xd4\xd2\xdd\x07\x3b\xbf\xd6\xdb\x86\xa2\xe4\x00\x5e\xa2\xb8\xbd\xe5\x56\xa2\xf6\xa9\x51\x8d\x5a\x47\xae\xb9\xed\x96\xa1\x67\x15\xf5\x8f\x84\xc2\xcf\x3e\x28\xfa\xb6\xdf\x5e\x34\x7f\xe9\x88\x66\x63\xfb\x2d\x43\x33\x60\x71\x82\xe9\xd2\x07\x43\x8f\xa6\x5b\x86\x5c\xc2\x84\xbc\x64\xa1\xd7\x1e\xe1\xd3\x76\xcb\xd0\x0b\x88\xf4\x9b\xb8\x96\x76\x5b\x86\x96\x90\x58\x7a\x4d\x59\x6b\xc3\x2d\x43\x8c\xc3\x94\x30\xea\xbb\x20\xfd\x5a\x6f\x19\x8a\x01\x4b\xa9\xe4\x9e\xe2\xa4\xb5\xe9\x76\x22\xe7\x3b\x81\x9e\xcd\xb7\x0c\xc9\x64\xc6\x28\x5c\x70\xc0\xde\x82\xd3\xb7\xc3\x36\x22\x7a\xd9\x6d\x4a\xbb\xf4\xd9\x46\x74\x3f\xa5\xf1\x13\x78\x29\xa6\x9e\xcd\xb7\x0c\x49\xe3\x16\xf3\x40\xaf\xb5\xe1\xc0\xe7\xfe\xd2\xd3\x2a\xbb\xda\xc1\x96\xbd\xf6\xd5\x83\x2d\xbb\xf0\xbf\x5a\x5b\xf6\xca\x9f\x72\xae\x3d\x2c\x65\xa3\xf6\xfe\xf9\x99\x8c\x83\x49\x61\x8b\x26\x9c\xc5\xfa\xd9\x8a\x0e\x39\x37\x92\xb1\x46\x63\x2e\x4f\xd0\x33\x40\x62\xbc\x4a\xb6\xe5\x52\xdb\xac\x51\x4a\x25\x4b\x83\x19\x84\x07\x17\x53\xee\xe9\x81\x2d\x9b\x9e\xf8\xb3\xe5\xf2\xfc\x3f\xee\x97\xd2\x19\x7e\x3f\xb8\x9c\xdc\xdb\xfe\x2e\xa7\x35\xfe\x15\x27\x48\xa4\xc1\x0c\x61\x81\xc4\x8c\x24\x49\xde\x9d\x6c\xbd\x51\x59\xfb\x09\xe3\x99\x40\xd8\x22\xb7\x94\x1a\x12\x09\x81\x4a\x32\x21\xc0\xb3\x51\xe6\xd0\x6c\x1a\x75\x06\xd5\xa9\x37\xf9\xf5\xd6\xae\xe5\x24\x58\xce\x76\xc8\xb3\xe1\xe9\xc2\x73\x34\xb8\x30\x2b\xe1\x6c\x8f\x5d\x7a\x45\x54\x0f\x2e\xbe\x3a\xca\x1c\x5c\x7e\xb5\xa4\xd9\x6f\x17\x60\x11\xdb\xfd\x76\x09\x16\xb1\xdd\x73\x17\x61\x09\xdd\x7d\x76\x19\x56\x23\xbb\xd7\x2e\xc4\x22\xca\x3f\x88\x4b\xb1\x01\xed\x3d\x75\x31\x16\x31\xde\x6f\x97\x63\x11\xdb\x3d\x76\x41\x96\x26\x76\x4f\x5d\x92\x65\xe1\xbc\xcf\x2e\xca\x22\xb6\xfb\xee\xb2\x2c\x8b\xa7\x3d\x77\x61\xd6\x20\xbc\x63\x33\xdc\xd9\xa5\x59\x12\xcc\x3f\x90\x8b\xb3\x12\xf7\x1f\xc2\xe5\x59\x89\xf9\xfe\xba\x40\x8b\xe8\xbe\xb4\x4b\xb4\x37\x49\x9e\x18\x8b\x00\x37\x9e\x64\x0b\x34\x49\x05\xbc\x35\x77\x14\x2c\xb2\x3e\xf4\xe9\xd4\x69\xcb\x16\x81\x33\x83\xdf\x80\x9c\xb1\xd0\x2b\x96\xca\xbb\xc7\x96\xa2\x7a\x89\x39\x27\x7e\x8c\xde\xa1\xcb\x96\x21\x1b\x31\xe3\x81\xf1\x15\xe6\xbe\xed\x5f\x1b\x4d\x73\x4d\x50\x4b\x25\x2c\xe1\x54\x92\x66\x23\x64\x81\x2a\x21\x08\x25\x6d\x90\xea\x7b\xae\xfa\x22\x42\xd1\xdd\xfb\xcb\x3f\xff\xf9\xcf\xff\xed\x27\x09\x75\xff\x87\x96\xaf\x7a\x11\xa9\xf4\xf4\x10\xe8\xb1\x7a\x7a\xf0\x28\x37\x3d\xd9\xd3\xbb\xc1\x97\x6a\xb3\x36\x51\x17\x53\x32\x07\x9a\xf3\xc5\x72\x16\x1f\x9c\xb1\x59\xfb\x01\x9d\xb1\x07\x29\x84\x0e\x52\xe8\xa5\xe3\x5a\x74\xec\x59\x87\xe0\x96\x1d\x92\x61\x8f\x89\xd2\x2d\x74\xb8\x59\x0b\xf7\x1f\x64\x56\x45\xab\x2d\xf3\x93\x6b\x5a\xa9\xa9\x94\x33\x2c\x91\x98\xb1\x34\x0a\xd1\x13\xa0\x54\xcf\xb2\xd7\x71\x49\x75\xbf\xbe\x6a\xa7\xcc\xb7\x14\x9a\xed\x83\xe3\x92\x86\x50\x09\xd3\xe6\x13\x4e\x05\x6d\x28\x2c\xd0\x37\x3f\xbb\x7e\x4b\xb3\x21\x89\x70\xd8\xd3\xd0\x61\x4f\x1b\x46\xb3\x4e\x98\xd8\xfd\x3d\xe9\x22\x0c\xd1\xb5\x96\x62\xec\xb0\x19\xa1\x9d\xde\x8c\xcc\xaa\x93\x79\x9a\x15\xb6\x26\x1c\x86\x7e\x1b\x53\x8c\xf9\x33\xc8\x24\xc2\x01\xf8\x91\xeb\x95\x77\xa8\xce\xf4\x62\xfa\x17\x8e\x50\x0d\xe1\xd8\x44\xbf\x99\x63\x4e\x30\x95\xe8\x58\x2d\xbe\x80\xd1\x09\x99\xa6\x1c\x3f\x45\x59\x1f\xf1\xa6\x37\x8d\x2d\xec\x9b\x7e\xa4\x7e\xf5\x2d\x7e\x8d\x82\xdf\xe4\xb2\x37\x1d\x3a\x6c\xfe\x87\x2d\xfd\xb0\xa5\x77\x43\xbf\xe3\x96\xbe\x27\xc6\xb2\x2b\x8d\x86\x39\x9d\x68\xf3\xd8\x61\x67\xdf\xe9\x9d\xbd\xea\x98\x69\x96\xea\x16\x1e\x33\x0f\xe2\x18\x1d\xc4\xf1\x68\x56\xc3\x29\x99\xc8\xd3\x00\xf3\xb0\xc2\x44\xb8\x17\xe7\xb1\x24\x89\x96\xe8\x03\x99\x48\x74\xa9\xb0\xdc\x2e\xa1\xad\xa8\xaf\xc4\x72\x88\x02\xff\xf4\x15\x89\xaf\xe7\xf8\x20\x7f\x0e\xf2\xe7\xa0\x0e\x8e\x76\xdf\x7d\x5b\x85\xca\x4a\x44\xd4\xe8\x38\x08\x8b\x95\xe4\x39\x08\x9d\x83\xd0\xd9\x2f\xa1\xd3\xae\xf4\x24\x78\x19\x03\x95\xa7\x02\x22\x08\x2c\x39\xf6\xd6\x3f\x7a\x2e\x6c\x6d\x84\x5b\x83\xf5\xbd\x43\x7a\x75\xeb\x7e\x3b\x93\x42\x2b\xe9\xe3\x0c\x87\x76\xc6\xd0\x14\x4b\x58\xe0\x25\x3a\x35\x99\xeb\xff\xc4\x26\x93\x88\x50\xf8\x93\x8f\x14\xb3\x7d\xf7\xcf\xf8\x5a\x45\xa8\x58\x47\x8c\x16\xe9\x64\xdf\x7e\x0d\xb0\x98\x31\xea\xce\xf9\x5e\xd4\x8b\x3d\x43\x50\x0f\xf2\xff\x20\xff\xb7\x5d\xfe\xcf\x75\x5e\x21\xbe\xd7\x47\xde\xdf\x0c\x8e\xa8\x46\x6b\xdb\x4e\x05\x55\xd3\xd0\xcf\x08\x77\xd0\x49\x4d\xe3\x2d\x61\xca\x83\x4c\x6a\x7a\xb2\xdf\x07\xe1\x83\xa8\x39\x88\x9a\x7c\xbb\x83\xa8\xd9\x09\xf5\xe7\xb4\x97\xed\xbf\x40\xc5\x47\xa1\x38\x8b\x08\x44\x26\x68\xc9\x52\x34\xc3\x73\x40\x8c\x02\x4a\x05\x70\x44\x68\x92\x4a\x9d\xf5\x51\x73\x9f\xf9\x6f\x80\xa9\x8e\xeb\x14\x10\x22\xc9\x10\x10\xa9\x84\x07\xa8\xe9\x40\x18\xd9\xc1\x21\xa6\xfe\xd3\x64\xa5\xda\x25\x41\x59\xf0\x42\x28\xe4\x9c\xd0\x3c\xc6\xa9\x64\x28\x04\x09\x81\x84\xf0\xcd\xae\xc9\xcf\x35\x5b\xa2\xc2\xcb\xe9\xd6\x07\xb9\x7a\x90\xab\x3f\x90\x5c\x9d\x41\xf0\xcc\x52\x79\xae\x03\xcf\x18\x0f\xab\x4e\x97\xdb\x56\x68\xd5\x8e\xb9\x87\xda\xb7\x2a\x04\x19\x61\x21\x91\xc0\x73\x08\x91\x9a\x09\xf8\xbe\x67\x65\x57\xf5\x7c\x7e\x56\xf3\x79\x69\xd1\xfb\x41\xd8\xca\x2e\x0e\xf3\x99\x91\x8f\x43\xdb\x66\x6c\xef\xcb\x18\xf7\x12\x73\x69\xf8\x42\xaf\x1b\xa4\x05\x01\x4a\x38\x0b\x40\x88\x13\xb4\x98\x91\x60\x86\x88\x40\x18\x3d\xe1\xe0\x79\xca\x59\x4a\x43\xf7\x1a\xcd\x30\x0d\x75\xc5\x46\x67\xc3\xd5\xd9\xb2\x59\x14\xa9\xb6\x5a\xc1\x72\x7b\x5c\x65\x42\xec\x57\xd4\x12\x4c\x4a\xef\xc7\xbb\x8f\xa5\xbb\x3b\x4a\xc7\xc3\x13\xad\xd9\x51\x04\xdf\xed\x12\x76\x08\x4e\x22\xb6\xf0\x51\x14\x32\xf8\xbb\xa7\x27\xfc\xdc\x89\xc9\x7f\xf9\xe9\x67\x35\xcf\x14\x16\xd9\xaa\x58\x60\x81\x84\x5a\x57\xcd\x67\xd5\xc1\x04\x9e\xfe\xd6\x6d\x26\xf5\x86\xd5\x25\xfe\xd2\x51\xe8\xbd\xc5\x21\xba\x83\x6f\x29\x88\xc6\xc0\xc5\xd7\x14\x75\x07\xf1\xbe\x8b\xd6\xae\xbe\x12\xfe\x32\x02\xcc\x73\x9a\x8f\x16\xf3\xa1\x95\xf3\x64\x82\x08\x45\x13\xa2\xa6\xb1\x2e\xc5\xdc\xf6\xaa\x42\xc5\x44\x3e\x07\x46\x68\xc7\x79\xe8\x33\xc3\x79\x80\x69\x00\xd1\x0e\x38\xa6\x7a\x33\x90\x46\x50\x69\x40\x3c\xa5\x54\x6b\x3b\x65\x4d\xe9\xc0\x37\x07\xbe\xb1\xbf\x3c\xf9\x86\xc3\x84\x83\x98\xed\x31\xe3\xe4\x0f\xdd\x2e\x60\x27\xcf\x3a\xf6\xf4\xad\x0f\x0d\x9a\x8d\x20\x14\xee\x36\x9e\x56\x24\x09\x45\x18\x51\x46\xd1\x53\xc4\x82\x67\xc5\x79\xd5\xc1\x30\xdb\xcb\x69\x87\xc3\xfa\x4e\x31\xe3\xa9\x5b\x68\x1b\xb8\x17\x1e\xb4\x6b\x41\xa8\x83\xe4\x24\x8d\x90\x64\x68\x6a\xa3\xd9\x62\x26\x24\xe2\x10\xd4\xf0\xc1\x89\x8e\x6e\x83\xef\x38\x4e\x22\xb0\x47\x50\x73\x8c\x54\x2b\xdf\xd4\xa6\xaa\x38\x91\x26\x9c\xcd\x49\x58\x69\xbe\xde\x35\x81\x71\x5b\x25\x04\x56\x05\xb8\xca\x66\x8a\x4c\x82\x28\x62\x2d\x30\x0f\x05\x3a\x76\x53\x58\xe9\x97\x38\x08\x8a\xd2\x97\x0f\x82\x02\xd5\x08\x0a\xcb\x61\xe7\xea\x60\x94\x56\xd4\xc2\xdb\x32\xe3\xb8\x0d\x96\xed\xcc\x75\x1f\xac\x78\x72\x02\xc5\xa0\x8b\xd8\x64\x2d\xca\x16\x1d\x33\xbe\x76\x80\x54\x0f\x77\x8b\xc7\x70\x14\x7d\x9e\xd4\xd2\x2f\xff\xd7\x0c\x28\x03\x58\xbd\x62\x43\x16\x63\x42\xcf\xde\x47\x6c\x71\x6f\x56\x4e\x2b\xb4\x1a\xde\xec\x31\x24\xa7\xda\xb3\xa7\x7f\x41\xd0\x64\x81\x5a\xeb\x95\x70\x96\x00\x97\xa4\x61\xce\x2a\xfb\x85\x58\xb6\xd3\xbd\xd4\xab\x86\xd1\x31\x97\x67\xd5\xae\xea\xba\xbf\x6a\xa6\xef\xde\xaa\xb9\xc5\x3f\x7f\x0c\x41\x6b\xd9\xdf\x58\x4f\x5f\x43\xda\xda\x74\x1a\xe7\xff\xc9\xa5\x1e\x09\xaa\xeb\x1c\x6e\x9b\xe4\x35\x43\xef\x23\x79\x8d\x4e\xc3\x8d\xc1\x18\x42\x97\x54\x64\xcb\xbc\x25\xb9\x19\xd1\xd7\x3e\xd1\x31\x09\x81\x86\xfa\xee\xfe\x9b\xec\x52\x46\xfd\xd8\x33\xd8\x15\xd9\x65\xda\xae\x91\x1e\xb2\x59\xda\x76\x2f\xb4\x7d\xe5\x74\x4e\x8f\xc8\x04\xf7\xb7\xab\x3b\x98\x5b\xb3\x03\x6d\x62\x76\xef\xbf\x27\xea\x0c\x57\x2b\x16\xea\xfe\x76\x6b\x3f\xfb\xcb\x4f\x7f\xe9\xc4\x05\x9f\x98\x44\xef\x59\x4a\x5f\xc6\x29\xf8\x03\x07\x15\xbd\x44\x40\x91\xfe\x65\x49\x75\x94\x1b\xc7\xda\xf0\xdd\xc6\x78\x21\x25\x27\x4f\x69\x85\x43\xad\x99\xdb\xdb\xb8\xfa\x48\x07\xe2\xd5\x8a\xe9\xc2\x84\xe8\x90\x40\x62\x36\x5c\xe2\x26\x07\xbb\xa1\xe5\xb2\xd1\xd4\x4c\x52\x71\x0b\x2d\x13\xab\x62\x37\x51\x1f\xfd\x88\x9f\x2a\x1c\x24\x4d\xc3\xd4\x3d\xdc\x58\x67\x69\x8c\x29\xe2\x80\x43\x9d\x76\xec\x38\x01\x3e\xc3\x89\x40\x11\x0b\x70\x44\xfe\x0d\xe1\x9b\x1c\x16\x0d\x65\x37\x7b\x8d\xbf\xdb\xd8\xfb\x8f\x7b\x8e\xa3\x74\xd0\x81\xdf\xe1\xc5\x6f\x1a\xa6\xef\xd8\x5d\x07\x37\xfc\xac\x96\x3b\x62\x9c\x4c\xb5\x87\x54\x0f\xd2\x5d\x5b\xcc\xc6\xde\x36\x6a\xbb\xb4\xbd\x46\xfd\x48\x89\xec\xb4\xa8\x5d\x87\xd2\xc2\xd6\x6a\x5a\x71\xa8\x06\x03\x81\x62\xc0\x22\x55\xb4\x44\x29\x25\x75\x7b\x6c\x3b\xd9\x3d\xb4\xfb\xa2\x04\xa8\x30\xa3\x34\x8b\x00\x1c\x86\xc4\xa4\x99\xbb\x6d\x11\x06\xd5\x72\xb1\x24\x82\xfc\x07\x7d\x03\x21\x29\xcb\xe3\x0d\x45\xd6\x0d\x89\xe1\xc1\x40\xa8\x99\xe1\x5e\xab\x1d\x26\xc0\x81\x06\x03\x83\x7d\xd0\xc5\x6d\x87\x05\x39\x38\xee\x8f\x02\x4f\x37\x01\xe9\xb1\x20\x72\x87\xc6\xb3\x55\xa0\x91\x35\xb8\x5d\xd3\x09\x1b\x7a\x95\x5c\xc4\x2c\xa5\xf5\x5a\x69\xb3\xf6\x79\xcb\x49\x00\x9e\xdb\x13\x87\x90\xc8\x4b\xcc\xc3\x4a\x2c\x5a\xbe\xb7\x72\xa0\x9c\x15\x00\x79\x7d\xfc\x83\xbd\xdd\x3e\xe8\x6a\xb0\x75\x87\x06\x85\x69\x27\xfa\xd6\x79\x5a\xb6\x8a\xc7\x3c\x96\xaf\x36\xad\x5d\x64\x82\xf4\xaa\xca\x6a\xb7\xa9\x26\x96\x0a\xc9\xe2\x06\x31\x9f\xb5\x2c\xaa\x3b\x85\x8e\x28\x22\x42\xaa\x8d\xeb\x19\x96\x76\xbb\xf2\xdc\x60\x6b\x5a\x79\x6f\x20\x25\xb8\x75\x24\x47\xd5\xaa\x72\xa5\x58\x16\x4a\xf9\x0f\xb5\xb8\xb8\xbe\xf2\xd7\x45\xd6\xfb\xe9\xf8\x5b\x8a\xae\xaf\x10\x8e\x94\x3e\xb5\x44\xcf\x94\x2d\x28\x7a\x5a\xea\xed\xfd\x12\x73\xe9\xb6\xfa\x49\x2a\x53\xee\xdc\x63\xb5\x19\xff\x06\x5d\x55\xba\xa4\xd9\xd0\xf2\x2f\x9b\xb4\x8b\x55\xad\xe2\x86\x45\xe5\xbe\x86\x39\xaf\x4d\x97\xa1\x93\x20\xbe\xd8\xd4\x5f\x12\x39\xb0\x64\xbb\xb4\x35\x8c\x07\x06\x6a\x2a\x8f\x8e\x01\xb4\x59\x91\xed\x03\xf8\x9d\x2e\x2d\x38\x28\xc8\xf7\x84\x0b\x69\xcd\x92\x03\x82\xfd\x88\xc7\x80\x7a\x43\xc2\x30\x82\x4f\x83\xc3\xbd\x75\x05\xa3\x07\x56\x4a\xb3\x2a\xbe\x83\xc2\xbd\xc7\x51\x2a\x71\x65\x12\xa4\xcd\xe0\xea\x00\xd8\x81\x41\x72\xa8\xf1\x55\x6c\x08\xf3\xd3\xd0\x6a\x08\x44\xa0\x0b\x95\x6e\x97\x76\x53\x01\xf2\x37\xbc\x09\x41\xbd\x37\x36\x73\x59\xf4\x8a\x88\xa0\x52\x15\xdf\x74\x83\xb3\x77\xf9\x7d\x35\x82\x19\x5b\xa0\x38\x0d\x66\x6e\x9f\x0f\xed\xb8\xd0\x0c\x0b\xf4\x04\x40\x91\x48\x9f\x24\xc7\x81\x84\x70\x95\xf0\x19\x25\xea\x28\x70\x82\xae\x6f\x6e\x3f\xdf\x3d\x5c\x7c\x7a\xf8\x15\xe1\x68\x81\x97\x02\x51\x98\x62\x49\xe6\xb5\xc6\x8b\xc1\x0e\x18\x38\x4e\x30\x99\xb6\x48\x81\x62\x99\x55\x4a\xbe\xa5\xb0\x66\xc2\x48\x69\x08\x3c\x5a\x12\x3a\x45\x81\x05\x89\x18\x47\x3c\x8d\xc0\xe4\x8b\xfa\xa2\x1d\x6b\xc0\x4f\xdd\xeb\xd3\x5f\x7e\xfa\xf9\xbf\xbe\x1c\x0d\x6b\xcc\xcb\x6e\xff\xfa\xa2\xe2\x70\xc8\xe6\x4b\x0f\xd6\xc6\x6c\x85\x4a\x83\xd3\xb7\xce\xdd\xe8\x87\x1f\xf3\xb5\xb8\x96\x10\xdf\x41\xa4\x2b\x12\xf9\x0e\x7b\x12\xe1\x29\x22\x34\xd4\x87\x5e\x3a\x45\xa4\xb0\xea\x94\x42\x6a\x6f\x53\x87\x29\x20\xc9\xb2\x92\x56\x0d\x19\xbb\xdb\xe3\x8e\x37\xb7\x40\x66\xe6\x46\x97\x61\x2c\x1b\xf2\x97\xa3\xfb\x34\x01\x8e\xee\x35\xa1\xd1\x3d\x8e\x00\x0d\x4f\xee\x7b\xc6\xe5\xe7\xca\xbb\xb4\x75\x23\xb6\x54\x06\x1d\xee\x6a\xae\xdb\x19\xed\x3d\xc7\xe2\x73\x30\x3c\x6e\x69\x7e\x82\x22\xb6\xb0\xd6\xc8\x8c\xff\xdd\x7c\x3c\xc1\x84\x71\x40\x33\x32\x9d\xf9\x59\x55\x5d\xe1\x07\x3f\x79\xde\x68\xbe\x29\xba\x8e\x99\x42\x42\x2d\xa0\x94\x88\x19\x7a\x02\xb9\x50\x23\x75\x88\xb5\x1e\xec\x86\x12\xe2\x1f\xc8\x44\x9b\x26\xb6\x4d\x88\xaf\xb2\x10\x78\x48\xf1\xd1\x25\xf5\xe0\x7a\x5a\x6f\x9b\xc0\xea\xc8\x8e\x02\x0d\x63\x65\xc1\x1e\xc7\x18\x50\x19\x32\x50\xad\xd2\x2a\xb2\x56\x05\x08\xd7\xe1\x52\x3f\xe7\x44\x20\x21\x49\x14\x21\x3c\xc7\x24\x52\x42\x6b\xd0\x29\xf6\xe5\x11\x1d\x72\x35\xda\xf1\xbd\xd2\xd6\x54\x47\xab\xf5\x6e\x6b\x59\x57\x26\x8c\xa3\x4b\xdf\xb5\xd0\x10\x60\x56\x18\x99\xd7\xa4\x5b\x36\x5f\xed\xfe\xfe\x2b\xb9\xdc\x15\xcd\x58\x14\xa2\x55\xa2\x12\xa1\xd4\x98\x4c\xd4\x07\xba\x89\xbe\x92\x8c\xf9\x2a\x63\x89\x64\x6d\xd5\x30\x06\xb3\x80\x34\x05\xe7\xad\xd4\x9f\x0d\x0c\x23\x05\x99\xdc\x99\x96\x59\x47\x73\x2b\xdd\x99\x0b\x1d\xa9\x32\xfe\x6a\x95\x14\x23\x52\xaa\xb8\xef\x6c\x42\xae\x54\xce\x80\x4a\xad\x22\x84\x8f\xa2\x93\x19\xb1\xa2\xaf\x5e\x7e\x36\x90\x9e\x49\xf5\x32\x13\xb2\x9b\x19\x0c\x2b\x86\xfe\x16\x22\x46\xa7\xe2\x81\x95\xc6\xe1\x8d\x41\x3d\x08\xc5\x33\x49\xa4\x8e\x32\x56\x37\xd5\x3b\x25\x11\x68\x9a\x82\x70\x21\xcb\x13\x1c\x09\x78\xa3\x38\xcc\x5d\x9f\xc0\x79\x38\x46\xf7\x3e\x56\xd2\xbf\x2a\x92\x19\xf5\xd6\x59\xdf\x92\x28\x22\x74\x5a\x67\x1c\xad\xc5\x76\xad\x9b\x73\xe9\x2a\x29\x8f\x9e\xcc\x2b\x84\xed\xbb\x63\x0e\x11\xcc\x31\x95\x5a\x32\xe2\x28\xbb\x0f\x22\xce\x09\x9d\x33\x12\x80\xa8\x45\xa9\x59\x3c\xea\x11\x7b\x61\x79\x05\x13\x9c\x46\xf2\x52\x47\x89\x07\x03\xdb\x10\xaf\x4c\xa6\xdf\x26\x63\x7d\x91\x7c\xab\x2e\xfa\x62\x08\x26\x34\x2f\x20\x5c\x71\xff\x5c\xab\x63\xc6\xd1\xfd\x8c\x24\x9a\x6e\x6f\x90\x22\x5c\x34\x87\xd0\x14\x1f\x22\xe2\xb5\xe5\xad\x1d\xa9\x77\xd1\xb3\x4a\x8b\x29\x95\x44\x2e\x3b\xc8\x0c\xd7\xc1\x48\x57\x01\x01\xa3\x61\xa9\x9e\x60\x8c\x97\xd9\xce\xfc\xb4\x44\x82\xc5\xa0\xd3\x83\x00\x6d\x17\xbb\x9d\x0e\xaf\xfe\xe3\x36\x23\xce\xf8\xa5\x5c\xc8\xcf\x67\x32\x7b\x38\x05\xef\x6b\x13\xb2\xd7\x8d\xb4\x94\xd4\xdc\x5c\x16\xd3\xbb\xbc\x90\xea\xec\x46\xe8\x84\xf1\x58\x5b\x38\x11\xa3\xe8\x8b\x52\x22\xbf\x1c\xd9\x7b\x94\x56\x54\x2f\x30\x95\x42\x75\x49\xea\x97\x5f\xc3\xda\x2a\x8d\xde\x0f\xe7\x94\x07\x33\xdc\x45\x80\x67\x3d\x8c\xde\x93\xd3\xec\x15\x92\x22\x8b\x1d\x8e\x60\xaa\x83\x56\xa8\xc4\x81\x44\x09\x70\xa1\x08\x63\xf9\xd0\x24\xa7\xea\x81\xa4\x06\xe3\x79\xb0\x65\x12\x47\xcd\xfc\x5a\xaf\xae\xea\x4b\xaa\x12\x7f\xd7\x96\x07\xa9\x20\xbd\xa6\xf6\x91\xa1\xe2\x2d\x38\xbc\xcf\x0a\xf5\x06\xb0\x51\x23\xf9\x5e\xf4\xf4\x59\xf2\x48\xab\x73\x48\x71\xf5\x86\xea\x80\x62\x4a\x82\x2a\x92\x18\x5b\xe5\x29\x7a\x86\xa5\xb9\xb1\x68\x03\xad\x94\x12\x9f\x70\xa6\x28\x82\x44\x02\x01\x99\x90\xe0\x05\x4f\xb0\xbe\xf3\x9a\xed\x34\x43\xcf\x2a\xe6\xb2\x1b\x4f\x65\x3d\x9c\x34\x77\xdb\xb7\x79\xf8\xa4\xf5\x41\xa5\x08\xe9\x23\x11\x11\x59\xc5\xc0\x57\xe4\xb7\xeb\x2e\xac\x56\xaf\xea\x2c\x9b\x43\x70\xaa\x95\x1d\xdd\x69\xa5\xee\x84\x20\x31\x89\x9c\x58\xcd\x91\xc7\xd8\x9d\x67\x6c\xa1\x57\xe7\x62\x06\x1c\xd6\x0b\x2e\xae\x95\xdc\x51\x8f\xf4\x86\xd4\x43\xe8\xae\x61\xe3\x67\x33\x9d\x91\x24\x21\x74\xaa\xe9\xe8\x8b\x7f\xbe\xd3\x17\xc9\x21\xe1\x20\x80\x9a\x9b\x8c\xc2\xbe\x43\x01\x13\x72\x4d\x63\x29\xa9\x78\x6d\xcb\xa7\x01\xd1\xb5\x61\x6f\xce\x7b\xa3\x84\x91\x0d\x6e\x87\xc9\x74\x94\xa2\x54\x2b\x2a\x2d\xf9\xc5\xb5\xbb\x01\x3c\x97\x98\x73\xd2\x41\xdd\xb1\xed\x51\x56\x1a\x39\x5f\xe8\xc4\xbd\x2c\x64\x9c\xb3\x17\x8e\x88\xd2\x1d\x4c\x06\x00\x08\x52\xed\x75\xe9\x42\xc3\xae\x41\xe9\x9d\xc3\xe6\x71\xc5\x94\x97\x0b\xb8\xba\xd5\x8c\x4e\x75\x6e\x65\x0a\x8a\xd7\x64\xf6\xfa\x22\x0c\x1f\x98\x8e\x57\xb2\x39\xd2\xf2\x39\x0f\xbe\x50\x63\x16\x0b\x41\x2f\xb9\x09\x8b\x22\xb6\xb0\xa6\x32\x3a\x57\x9f\x72\x3a\x21\xa0\x3b\xc0\x61\x0c\xbf\xa2\x87\x65\x02\x5f\x4d\xcc\xdf\xd7\x8f\xcc\x84\x68\xea\x67\xee\x3f\x0d\xb9\x7a\x37\x39\x97\x2e\x1d\xfc\xce\x02\xdb\x75\x74\x1b\x9c\xc4\x7c\x0a\x52\x47\xc5\xcb\x7c\x89\xa3\x0d\x24\x53\x69\x8c\x9e\x98\xe9\x03\xf2\x03\x69\x8a\x2e\x29\x21\x95\xf5\xb1\x41\x6a\xd9\xca\x77\xe7\x6d\xa9\xde\xf9\x22\x35\x46\xc4\x67\x61\xc8\xa6\xb9\xa3\x7e\xb6\x55\xd8\xea\x43\xea\x28\x2b\x67\x86\xf9\xb0\xb6\x27\x95\x56\x7d\x96\x1b\x5c\x2d\xd2\x18\x30\x45\x21\x99\xe8\xf0\x6b\xb9\xda\x4e\xbf\xa5\x4a\x05\x27\x20\xd0\x82\xc8\x59\x55\x0b\xb5\x37\x0d\x7a\x58\xfe\x3b\xe3\xcf\x3a\x3d\xa5\x2f\x25\x5c\x07\x27\x9f\xae\xd6\x74\x85\x6c\xa0\x8c\xa3\x84\x04\xcf\x69\x72\x82\x04\xac\x5a\xb9\xde\xb7\xf6\x5d\xf1\xf9\x55\xae\x7f\xf1\xdd\x23\xb5\xd4\xac\xcd\x10\x39\x9c\x0f\xb0\x95\x61\x37\xdf\x63\x3b\x19\xf9\x9c\x75\x2f\xd3\xd9\xf4\x0d\x0d\xfb\xd0\x45\x77\x38\xda\x39\xa9\x70\xa2\x14\x98\x27\x40\x94\x49\x94\x59\xfe\xac\xe1\x53\x0d\x5f\x2d\x54\xf5\xce\xc2\x19\xdb\xf2\xd7\x6f\x03\xc9\x09\x87\xa2\x79\x86\x88\x0c\xd5\xf3\x10\x84\x24\xd4\xcc\xd5\x80\xec\xd1\xc9\x73\xfd\x60\x69\x9a\xd1\xb7\x38\x31\xa7\x4a\x1d\x32\x86\x2f\x67\x5f\x62\x54\x48\xac\x39\x7c\x42\xa8\x53\x31\x01\x25\x38\x78\xc6\x53\x75\x90\x79\x5e\x31\x4f\x94\xdb\xaa\x2e\x9a\xe7\xac\xdf\x95\x08\xe8\x69\x82\x2e\xf5\x74\xab\xcc\xad\xd0\x95\xde\x22\xf1\x33\x50\x63\x58\x77\xd6\xe9\x63\x46\xa3\x25\x5a\x33\x4d\x6b\xea\xd9\xce\x1b\x18\xd9\x7d\xb9\xfd\xdd\x77\x13\x70\x70\x69\xed\x64\x63\xc4\xba\x77\xb3\x4a\xba\xe5\x61\x07\x34\xba\xbc\xab\x3c\x45\xbd\xd0\x39\x62\xfb\x15\xfa\x42\x58\x5f\x67\xef\x63\xd6\x71\x5d\x7e\xbb\x73\x37\x7e\x62\xa9\x5c\x0b\x95\x12\xeb\x4e\x5c\x22\x4c\xa4\xd4\xa9\x6a\xb4\x74\x47\xab\x2f\xda\x02\xc1\x4d\x90\xd6\x97\x23\xb5\x65\x52\xf6\x9a\xae\x87\x62\xf4\xe3\x06\x14\x7f\x67\x13\x96\x79\x5c\x51\x2b\xba\x22\x8a\x3d\xd7\x4e\xa2\x4f\x4b\xe3\xe4\x13\xc0\xe7\x24\x00\xa4\xaf\xdc\xc7\x40\x4d\x64\xb0\x36\x8d\x0b\x48\x30\xc7\x12\x6c\x8e\x0d\x6b\x22\xc0\xee\x1c\x91\xcb\xa6\xf6\x85\xae\xc1\xd2\x42\xcd\x84\x1d\xea\x48\x44\x3d\x65\xc3\x3a\x47\x7b\x09\x11\xbb\x74\xa8\x49\x92\xc6\x34\x2d\xcc\x08\xd9\x1c\x8c\x86\xbd\x98\xb1\x68\x78\x67\xc7\xcd\x2a\x5f\xc7\xf0\x96\x5a\x7b\xdd\x72\xf8\xb0\xf6\xff\xf5\xb9\x82\xd1\x29\xfc\xed\x8e\x2d\x74\xbc\xcd\x07\xce\x3a\x6c\xaa\xeb\xbd\x46\x8e\xe3\x72\x1f\xfb\xd4\x14\x77\x5e\x33\x40\xd5\x67\xfc\xe1\x3d\xe0\xef\x1d\xcc\xf1\x5e\xc4\x7b\x09\xaf\x0a\xfe\xbe\x89\x18\xbc\x27\x74\x1a\x41\x8f\xc5\x53\xec\x88\xa6\xfa\x5f\x1d\x13\x88\x8e\x09\x0d\xa2\x33\x24\x15\x45\x4d\x22\x1e\x8c\x84\xee\xd0\x92\x8d\x67\xb0\xf9\xcc\x0d\xaf\xcb\x8a\x5b\xef\x86\x28\x48\x87\x11\x7c\x7f\x6d\x8c\x58\xca\x03\xe8\x20\x9f\x4d\x07\x74\x1d\x2a\x31\xbd\x32\xad\x1b\x8f\xc5\x4a\x5f\xd6\x43\xc2\x91\x3e\x4c\x43\x88\x4e\x91\xcb\x14\x2a\x40\xba\xab\x7c\x1a\x14\xa1\xd3\x8f\x6c\xda\xee\x28\xea\x76\x69\x82\x13\x4c\xa5\x91\xe3\xb7\xed\x72\xbc\x80\x62\x75\xf7\xcc\x73\xad\xa3\xf3\x18\x9d\x90\x69\xca\xb5\x0f\xd4\x25\xf3\x1a\x5d\xdb\x6d\xf5\xc2\xd7\xa6\x61\x28\x83\x32\xde\xe2\x97\x36\x0f\x0c\x75\x26\xf7\x3a\xf9\x64\xad\x4b\xaa\x56\xb9\x73\x16\x58\xe5\x52\x37\x67\xae\x7c\x73\x98\x07\xdb\x67\x15\x93\x70\x6a\xc3\x66\x9c\x66\x6c\x5c\xfc\x46\x27\x2e\xb5\xee\x61\xa3\xa8\x44\xd1\x4f\xc5\xd0\x73\x8b\xa3\x2b\xa3\xa7\xf7\x9a\x8d\x22\x8c\x0d\x16\x6d\xcb\x68\x36\x5c\x72\x57\x58\xc2\xe7\xc9\x5b\xc2\x65\x39\xbb\x78\xe9\x13\x5d\x84\xc8\x27\x6c\x8e\x6d\x83\x5f\x6d\xbd\xc5\x42\x24\x8c\xcb\x51\x6e\xa3\x3a\xe0\x9f\xd2\xf8\x69\xa3\xcb\xfb\xbe\xd3\xdb\xe8\xcf\x1c\xe6\xca\x81\xc7\xf9\x75\xb7\x4e\x89\x3e\x8a\xd1\x50\x1b\x7c\xbb\xb2\x32\xd4\x97\x1e\xf0\xf7\x97\xca\xe4\xf1\x52\x69\x24\x94\x1a\x3c\xf4\x9a\x7e\x21\x12\xdd\x0d\x7e\xbd\x77\xc3\x64\x36\xde\x34\x87\xca\x98\xbb\x4d\xb7\x09\x6b\x8b\x6e\xb9\xd1\xb0\x7d\xa9\x15\x94\x5c\xbd\x6c\x5e\x32\xbd\x0e\xf7\xd6\x0e\xb1\x31\x68\xef\x69\xcd\xe2\xf4\xb6\x3e\x98\xce\x70\xd9\xd6\x0b\xb1\x57\x63\xd1\x7c\xd6\xe4\xad\x9f\xcc\x1b\x10\xe3\xa7\xcc\x5a\xcf\xdb\x7f\xa0\x89\xa6\x49\x55\x8e\xce\x81\x49\x53\x4d\xef\xec\x75\x4d\x22\x2f\x23\xf9\x1a\x73\x7f\x37\x48\xcc\x9e\x82\xe1\x2d\x16\x24\xa8\x4d\x92\x5b\x69\x9a\x49\x83\xa0\xf1\x30\x3d\x8c\x23\xb1\xae\x3e\xf3\x08\xd1\xb1\x35\x5b\x7b\x0b\x01\xf3\x5a\x81\x17\xe1\xd4\xa7\x7e\xc3\x11\x09\xf5\x09\xae\x06\x9d\x96\x8f\xce\xb3\xfe\x67\x75\xe9\x65\x2b\xc3\x8a\xba\x78\x0c\xbd\x21\xae\x90\x69\x8e\x9a\xed\x03\xbf\x85\x85\x4a\xe1\x0d\x85\xd8\x5b\x32\x41\xc2\xac\x53\x44\x04\xd2\x57\xd0\xba\xdb\x3a\x3a\xb3\xe2\x8b\xb3\xc6\x14\xe4\x65\x36\xd0\x31\x58\xa3\x17\x53\x54\x17\x90\x78\x4d\x96\xe8\x46\xd5\x72\x99\x9f\x03\x65\x3b\x08\x9b\xf7\x98\x44\x10\xde\x01\xae\xb2\xe4\x96\x28\xd8\x45\x41\x30\xa9\xf8\xe8\x84\x75\x37\x1e\x16\x66\x37\xcc\x81\xf2\x63\xed\x31\xf2\x52\x61\x09\xcd\x92\xb9\x56\x53\x50\x62\xe6\x6c\x05\xc0\xeb\x7b\x8f\x8f\x4d\xfe\x94\x81\x75\xab\x12\x95\x87\x56\xb1\x86\xcf\x42\x97\x4b\x25\xfb\x6a\x26\xbd\xf6\x24\xb7\x95\x10\x3d\xed\x7b\x7a\x4e\xae\x20\x60\x1c\x4b\x08\xfb\x48\xa1\xd0\x74\x66\xfc\x6c\x1d\x4c\x87\xef\xfb\x30\xf1\xb8\x44\xce\xa5\xcc\x2d\x0c\x69\xd0\xcb\x7a\x6d\xc5\xd1\x07\xe6\x88\xf1\xd9\xbb\x6e\xf2\x77\x6f\x77\xcc\xc6\xef\x73\xc3\x7d\xdc\xc5\x58\x41\xd4\xce\x77\xce\xfb\xcf\xdd\x18\xee\x91\xe6\x2b\x64\x9d\xef\xf0\xbd\xf8\x99\xb7\x1f\x35\xc7\xba\xbe\x99\x7d\xe0\xba\xf9\x0e\xe7\x8b\xaf\xd2\x6c\xf9\x6c\xb0\x23\xd5\x12\xad\x65\x38\x2d\xa9\x19\xbc\xa6\xd0\xad\x85\xb0\xc2\xe2\xb4\x75\xa6\xb1\x96\x04\x7c\x83\x48\xf7\x0a\xe6\xe8\x15\xc8\x61\x01\x5d\x62\x09\x53\xc6\x97\xe3\x38\x4e\xba\xdf\x7e\xd0\xe1\x40\xa5\x8c\x14\x6e\x94\x43\xc6\xf9\x34\x07\x51\x16\x2b\x32\xe1\x38\xbb\xe5\x20\x12\xc0\xba\xc4\x76\xfe\xc6\x62\x30\xc2\x08\x6f\x71\x53\x58\x42\xa9\x98\x32\x20\xd5\x01\x1d\x73\xc6\x24\x92\x0c\x45\x80\x27\x6f\x56\xf7\x9b\x1d\x0d\xd1\x69\x16\xed\xab\x43\x83\xbf\x1c\x9d\x6f\x90\xd8\xd1\x7f\xc9\x8e\x62\xde\xd6\x40\x47\xc8\x9e\xad\xc0\xbe\x88\xa1\x3b\x57\x02\xf5\x42\x87\x65\x8d\x71\x0d\xe3\xca\x24\x80\xea\x14\xe7\x94\xeb\x63\x33\x61\x85\x58\xe2\x13\x44\x19\x8f\x71\x14\x2d\xd1\x5f\x1f\x6e\x3e\xda\xc8\x6a\x9b\x60\x6a\x95\x7e\x2d\x15\xc3\xd6\x86\x7a\xcf\x78\x7c\xeb\x8a\x3a\x7a\x9b\x30\x07\xbb\x54\xd1\x5c\xbd\x96\xf1\xf8\x3d\x81\x68\xa3\xdc\x65\x8f\x77\x1f\xbd\x67\xe6\xf1\xee\x63\x3e\x11\x4e\x82\x85\x40\xea\x99\x4e\xb4\x91\x9b\x80\x62\x54\x9a\x90\x58\x82\x8d\x88\x17\x6c\xd8\xe2\x57\x7f\xc7\x51\x04\xb2\x67\xcc\x98\x25\xe4\x3a\x8c\x4d\xb9\xe9\xbe\xa6\x14\xf5\x86\x01\x18\xdd\x12\x18\x99\xe6\x7a\x96\x80\x4f\x18\x8f\xf5\x4f\x53\xbb\x7d\x75\xeb\xcd\x14\x93\x9e\x44\x6c\x71\x86\xae\x27\xae\xaa\x34\x11\xe8\xcb\x91\x7d\xf9\x75\x81\x89\x24\x74\xfa\x75\xc2\xf8\x57\x17\x16\xa8\xf3\x1c\x11\x81\x26\x6a\xf1\xad\x87\x12\xba\xec\x02\x26\xa0\x70\x31\xc3\x7a\x43\x08\x19\x3a\x75\x29\xa0\x39\x84\x84\x43\x20\xcd\x15\x9a\x2f\x47\x62\xc6\x16\x5f\xc9\x44\xb1\xd8\xb0\x69\x7e\x1b\xa4\x5a\xd6\xa6\xb5\x3a\x74\x0e\x88\x9f\xc6\xda\x49\xd2\xe9\xcc\x0d\x59\x1a\xb4\xf5\xbc\x4b\x8e\x92\xf6\xc6\x91\xe3\x2f\x6c\x26\xf6\x5c\xcf\xda\x90\x65\xcd\xba\x79\x54\x74\xeb\xd6\xb1\xeb\x5c\xd3\x42\xab\x2a\x98\x22\xd0\x7d\x8e\x4d\x76\x6d\xb7\xf6\xb4\x31\xb8\x63\x1a\xbc\xb5\x7d\xdd\x0b\xb9\x1a\x9e\xac\xc3\xee\x3e\x2b\xaf\x5e\xe6\x93\x77\x66\x19\x3b\xfe\x08\x58\x9c\x44\xa0\xaf\x84\x9d\xb4\xb3\x8d\x5e\xf1\xae\x8d\xc1\xfd\x45\x54\xa0\xd5\x56\x31\xb0\x58\x6a\xa9\xdf\xf7\xca\x81\x49\xfe\x04\xfa\xc8\x96\x38\x92\xcb\x77\x98\x53\x42\xa7\x63\xe4\x79\xb1\x99\x18\x5f\x20\x40\x67\xf4\x68\x9a\x75\x9a\xe9\xa1\x8d\x41\xb1\x3a\xef\x5a\x07\x8a\x39\x10\x9e\xd6\x86\x17\x9a\x21\x17\x8c\xfb\xd0\x88\x5d\xaf\xcc\x27\x16\x72\x53\xc2\xf3\xa1\xb0\xb8\x16\x3e\x5f\xeb\x95\x9b\xf5\x06\x7f\xbf\x65\x84\x4a\xf1\xc0\xee\x13\xf0\x89\xf4\xeb\x56\xa1\x87\x8e\x08\xbd\x7b\x0e\x03\xc6\xd1\xa7\xdc\x81\xde\xb2\x95\xd2\xd6\xa6\x1c\xc7\x2f\xb0\x3b\x58\xff\x91\x4d\xf7\x73\x71\x7b\x3d\x3c\x27\x9b\x4d\xb2\xf1\xb0\xd1\x2f\xd3\x4f\x8b\xde\xdf\x2f\xce\x8c\x07\x33\x4c\x73\xfe\xf1\xc1\xc7\x6d\x12\xdc\x0c\x3c\xee\xcf\x7a\x59\x6d\x02\xb4\xc3\x92\xa9\x0c\x36\xed\x62\xff\x5b\x93\xcf\x43\xaf\xb7\x19\xa6\x14\xa2\xb1\x12\x56\x02\xff\xc0\x59\x9a\x0c\xbd\x94\x57\xa1\xde\x03\x1b\x87\x59\x80\xc7\xbe\x77\x90\x9f\xd4\x51\xb2\xe4\x05\x92\xcc\xe1\x2d\x16\x03\xd3\x66\x05\xb7\xed\x86\xc3\x66\xd0\x1f\x29\x19\x18\xb6\xab\xda\x74\x97\x46\xbb\x75\x35\x60\x7f\xd5\x3a\xa0\xcb\x1b\xc6\xa1\xc3\xc5\xaf\x4e\x5a\xd1\x41\x6d\x6c\x01\xfd\x80\xbf\x5f\x46\xd8\x27\xc0\x72\x00\x51\x77\xaf\x93\x99\xf8\x7a\xc2\x7a\x89\xbb\x8d\x6f\x74\xf8\xe7\x77\xf5\xc9\xc1\xec\x57\xbc\xdd\x33\x60\xee\xc2\x15\xd4\xd1\x03\x7d\x3d\xc7\x75\x2b\xb5\x90\xb7\x60\xd3\xbe\xe2\xd7\xc6\xc4\x38\xac\x37\x11\xcf\xc6\x5b\xf7\x9a\x21\x2f\x95\x0e\xe2\xcd\x51\x5a\x3e\x30\xa5\x5c\xdd\x60\x7d\xf3\x77\xa7\xb6\x4c\x0e\x58\x42\x78\x31\xb4\xd8\x5f\x3b\x8c\x0e\x08\xf8\x3a\xf3\xa3\x0f\x0c\x57\x7c\x82\x86\xdc\x99\xbd\x36\x8d\x6b\x71\x8f\x23\xd0\xa5\xbd\x86\x05\xfc\x37\x58\x2e\x58\x63\xf1\xa4\xed\x5b\x68\xeb\x66\x50\x7f\x83\x79\xa1\x9f\xf5\xdb\xae\x52\x49\xe6\x92\x4c\xac\x4a\x1a\x45\xd6\xd0\x01\xee\x6b\x2d\x96\x8e\x51\xa5\x4d\x85\x01\x78\x73\x3a\xb6\xed\x6d\xd5\x54\x34\xbd\xaa\x69\x38\x61\x3c\x4b\xdc\xb2\xca\x70\xfb\x04\x28\xc1\x44\x3b\xf6\x70\x46\x56\x4f\xfb\xd1\x4b\x50\x75\x90\xed\xf5\x06\x13\x9a\x85\xe3\xf4\x53\x8a\xda\xb6\x94\xea\xcf\x7a\xa6\xe3\xe9\x67\x07\x0a\x89\xc7\xcd\xab\x71\xe6\xc8\x6a\x6e\x66\x0c\x1b\x4c\xcc\x9d\x36\xc2\xc1\x08\xd1\x30\x0e\xf2\xf0\x69\xe7\x1c\xe4\xfb\xe7\x74\x58\xc0\x6e\x33\x79\xcf\x59\x43\x94\xeb\x26\x90\x1f\x3c\xae\xd2\x75\x82\x3b\x63\x5c\x8e\xa6\x0a\xdc\x4b\x16\x3c\x7f\x84\xf9\x46\xe1\x89\x55\x67\xbd\x5e\x97\x32\xad\x1c\x30\x9d\xfd\xbd\xfa\x23\xdc\x79\x7f\x4c\xc2\x31\x54\xba\xdf\x88\x2e\x52\x30\xfc\xea\xb3\x80\x37\x5a\x7c\xfe\x87\xeb\xdc\x04\x0d\x7c\xb2\x6e\x3b\xa4\x15\xcb\xfd\xe9\xe6\xab\x5d\x58\x44\x24\xd0\x9e\x9a\x27\xf3\x42\x32\x24\xf5\x58\x4d\xed\x85\xa6\xdc\x77\xbb\x71\xfc\xeb\x9b\x7d\xee\x61\x06\x48\x3c\xa7\xc5\xc2\x19\x2e\x56\x2c\x22\xf4\xd9\xa4\x6c\x35\x53\x3b\x68\x2a\xed\x96\x5d\xb4\x54\x5c\x40\xb5\x7e\x95\x49\x1a\x6a\xc7\xbd\xe5\x60\xb2\xe9\x41\x68\xb3\xfe\x35\xee\x63\xc5\x7a\x6f\x55\xbd\x51\x4c\xa6\x33\xa9\xa6\x4c\x80\xb4\x55\xb3\x56\xc9\x02\xf5\x42\x9f\x92\x39\x20\x8c\x66\x84\xca\x6c\x4a\x25\x43\x18\xcd\x0d\x14\x1d\xe6\xb3\xd6\x0d\x1d\x3f\xe8\xc2\x3e\x0e\xb4\x89\x57\x16\x80\x88\x6a\xa9\x43\x05\x27\x24\x92\xc0\x8d\x62\x8b\xe9\xaa\x70\xb0\x2e\xe1\x60\x03\xd5\x2c\x87\xa9\x9f\xee\x53\xba\x62\x83\xa9\xc1\x9b\xf5\x20\x3a\x93\xe3\x82\xb6\xa6\x30\xdf\xa2\xdd\x51\x41\x1f\x23\xa3\x8a\xa6\xd8\x1e\xda\xd8\x0c\x62\x1e\xd1\x3a\x59\x8f\xa2\x9c\xaa\x00\x90\x55\x11\x30\xeb\x2c\xab\x77\xb8\x7e\x3e\x35\xb2\x8c\x50\x34\xe5\x24\x44\xe7\xa6\xea\xd9\x9c\x40\x6d\x14\xde\xc6\xe7\xcd\x56\x02\xd4\xbb\xdb\xbc\xd0\xcf\xba\x67\x85\xdc\xb2\xa3\xa3\xda\xe5\xf2\xc7\xcb\x2c\x85\xa8\xa5\x91\x89\xe2\x63\x54\x53\x41\x11\x47\x11\xa2\x6b\x39\x5b\xef\x43\x62\x3d\x21\x5a\x4c\xe4\x95\xd8\xeb\x3e\x0e\xe5\x1c\xaa\xab\x5d\x4b\x8b\x11\x2d\x7d\xcc\x66\x85\x8e\x15\x9a\x0a\xc5\x7e\x18\xf6\x47\xed\x5a\x28\x55\xae\x37\x96\xb9\xee\x2e\x8b\xad\xd2\x58\x78\x0a\x2e\x36\x53\xd8\x6c\xb8\x99\xfa\x62\xa5\xf5\x0c\xcf\x21\x57\x12\x27\x31\x36\x09\x33\xed\x79\x11\x3f\x6c\x51\xe6\xc7\xbb\x8f\xf7\x51\xea\x61\x9b\x1d\x40\xc7\x6c\x8e\x1c\xdf\x50\xcd\x6c\x0f\xa9\xc9\x9a\x36\xaf\x9c\x12\x1c\x3f\x3a\x0a\x08\x6d\xd7\xb6\xd2\x4b\x43\x50\x34\x71\xa3\x3c\x64\xd8\x2a\x10\x66\x75\x95\xfc\x92\x43\x48\x74\xa9\xf9\x51\xe2\x23\x28\xa3\xcb\x98\xfc\x5b\xdf\xbb\x0c\x37\x4e\xa3\x5a\xe9\x44\xe1\xe1\x5f\x59\x14\x0e\x0d\xf7\xdd\xf7\x84\xf0\xa1\xd5\x9f\xd1\x43\x60\x1b\x72\x04\x0c\x1e\x37\x3c\x56\x5c\x90\x1e\xf2\x4b\x64\xdc\x2d\x27\x24\xe9\x15\x38\x56\x91\x01\xed\x20\x65\x14\x8c\x5c\x22\x9e\x6b\x09\xf1\x2a\x6e\x71\xbc\x9b\x8f\x16\xaf\xbf\xc1\xc0\x89\xa0\xd5\xf8\xc7\xce\x53\x51\xce\x5b\x34\x7c\xb8\x6b\x6c\x89\x3f\x16\x9d\xfe\x8a\x45\xee\x2b\x43\xbb\x44\x25\xc4\x86\x32\xaf\x76\x66\x6c\x59\xd2\xbe\x27\xc8\xba\xd5\xf0\x87\x1c\xea\x47\x12\x6b\x4f\xe7\x3f\xb2\xd7\x85\xc5\x50\xbc\x5a\x17\x45\x48\x97\x47\x75\x37\xb3\x2e\x6e\xaf\x05\x02\x1a\x26\x3a\xa8\xfc\x04\xc5\x4c\x48\x24\x52\x22\x6d\xa9\x79\x75\xa2\x08\x94\xb2\x19\x1a\x0b\x18\x46\x4f\x9c\x2d\x04\xf0\x13\xf4\x04\x01\x4e\x05\x98\x42\x53\x1c\xa2\xa5\x2b\xcb\x2b\x40\x08\x7d\x8f\x8e\x86\x28\x60\xec\x99\x00\x9a\x01\x0e\x81\x8b\xb3\xe2\x6a\xa4\xc6\x39\x72\xb4\x9e\xde\x24\x37\xaf\xed\xe8\x58\x55\x71\xdb\x30\xb2\xc3\xea\x8b\x94\x3d\xcf\x54\x23\x55\xff\xd1\x62\xe2\x8f\x4e\x1f\xbd\xb4\x29\x55\xb7\x8d\x94\x6e\x5c\x47\x05\x1e\xf8\xe7\x1f\x7e\xff\xbf\x00\x00\x00\xff\xff\x5a\xd6\x57\x39\x8b\x43\x01\x00") - -func docsOpenapiSwaggerJsonBytes() ([]byte, error) { - return bindataRead( - _docsOpenapiSwaggerJson, - "docs/openapi/swagger.json", - ) -} - -func docsOpenapiSwaggerJson() (*asset, error) { - bytes, err := docsOpenapiSwaggerJsonBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "docs/openapi/swagger.json", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "docs/openapi/swagger.json": docsOpenapiSwaggerJson, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "docs": &bintree{nil, map[string]*bintree{ - "openapi": &bintree{nil, map[string]*bintree{ - "swagger.json": &bintree{docsOpenapiSwaggerJson, map[string]*bintree{}}, - }}, - }}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} +//go:embed openapi/swagger.json +var swaggerJSON []byte -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) +// Asset returns Flamingo Commerce swagger json definition +func Asset(_ string) ([]byte, error) { + return swaggerJSON, nil } diff --git a/go.mod b/go.mod index 3d5a93a49..7fae8fc5a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module flamingo.me/flamingo-commerce/v3 -go 1.15 +go 1.16 require ( flamingo.me/dingo v0.2.9 diff --git a/price/interfaces/graphql/schema.go b/price/interfaces/graphql/schema.go deleted file mode 100644 index a4985084d..000000000 --- a/price/interfaces/graphql/schema.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x9c\x90\xcf\x4a\xc4\x30\x10\x87\xef\x79\x8a\xc9\x6d\x7d\x85\x1c\x77\x61\xc1\x9b\xa2\x37\x91\x25\xc4\xd9\x6e\x20\xff\x9c\x26\x42\x90\xbe\xbb\x24\xb6\x54\x42\x8a\xd5\x5b\x98\xf9\xe6\xfb\xcd\x24\xe6\x80\x70\xf2\xd6\x22\x29\xbc\x3c\x90\x56\xf8\xc9\x00\x00\xa4\xf5\xc9\x45\x01\x67\xe3\x65\xac\x15\x95\x88\xd0\xa9\x2c\xe0\x29\x92\x76\x03\x67\x13\x63\x9d\xf9\xcb\xe9\x26\x69\x40\xf8\xf6\x84\x52\x12\x0d\xc2\x6b\xeb\x43\x9a\xb4\xd1\x2a\xda\x35\xa7\x54\x08\xaf\x58\xe2\x71\x67\xfc\x63\x92\x46\x5f\x35\xd2\xbc\xc7\x5e\xa3\x76\x21\xc5\x5f\x94\xf7\x95\xf9\x9b\x77\x7b\xd3\x71\x36\xe9\x88\x76\x14\xf0\xd2\x85\xf8\x6b\x65\x6e\x72\x7c\xce\x01\x0f\xea\x67\xec\x9d\x80\xa3\xf7\x06\xa5\x5b\x98\x66\xdf\xc3\xfb\xf2\x6a\x7f\xbb\x7b\x19\x6f\x84\x03\xc6\x63\x6e\xc0\xb3\x27\x85\x6f\xff\x10\x77\xb1\x35\xa6\x5c\x37\xbb\xdb\x1b\xfb\x93\xd3\x57\x00\x00\x00\xff\xff\xe5\xae\x49\x16\xc2\x02\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/price/interfaces/graphql/service.go b/price/interfaces/graphql/service.go index df8384fd5..660cbfb1b 100644 --- a/price/interfaces/graphql/service.go +++ b/price/interfaces/graphql/service.go @@ -1,20 +1,24 @@ package graphql import ( + // embed schema.graphql + _ "embed" + "flamingo.me/flamingo-commerce/v3/price/domain" "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o schema.go -pkg graphql schema.graphql - // Service is the Graphql-Service of this module type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema returns graphql schema of this module func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/product/interfaces/graphql/fs.go b/product/interfaces/graphql/fs.go deleted file mode 100644 index 919d47dcd..000000000 --- a/product/interfaces/graphql/fs.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\x59\x5f\x6e\x1b\x37\x13\x7f\xd7\x29\x68\xbd\xc8\xc6\xa7\xe8\x00\x7e\x93\x15\xe7\xab\x11\x3b\x71\x23\x37\x2d\x10\x18\xc6\x88\x3b\x92\x88\x70\xc9\x2d\xc9\x55\xbc\x0d\x72\xab\x9e\xa0\x27\x2b\x86\xe4\xae\xf6\xaf\x64\x27\x79\x69\x1b\x03\x09\x60\xce\x70\x66\x38\xf3\x9b\x1f\x87\x6b\xa1\x1c\x9a\x35\x70\x64\x0b\x9d\xa6\x68\x38\x3e\xdc\x1a\x9d\xe4\xdc\xb1\xcf\x23\xc6\x18\x73\x45\x86\xe7\x6c\xe9\x8c\x50\x9b\x13\xbf\x92\x82\xf9\x88\xee\x56\x02\xc7\x85\x4e\x5a\x42\x91\xa0\x72\x62\x2d\xd0\xb4\x36\x61\x22\xe0\xbc\xe3\xe4\xe1\x86\xd6\x4f\xa6\x5e\x27\x33\x82\x63\x8f\xce\x2d\xad\x5f\xa9\xb5\x8e\x7a\xb0\x03\x21\x61\x25\xd1\x0b\xec\x39\xfb\x70\x60\xcb\x7d\xd8\xe3\x84\x93\xad\x50\x39\x38\xdc\x68\x23\xc8\x42\xc7\xc0\xa2\x12\x06\xe5\x04\x2d\x37\x22\x73\x42\xab\xa6\x15\xbb\xd5\xc6\xbd\x1c\x92\xa6\xe8\xfa\x4f\xed\x20\x28\x48\x5d\x80\x74\x45\x8f\xce\x75\x90\x04\x35\x70\xce\x88\x55\xee\x7a\x63\x9d\x57\xc2\xa0\xbc\x82\x64\xd3\xab\x78\xe1\x05\x27\xa3\x2f\xa3\xd1\x78\x3c\x1e\xcd\x99\x15\x69\x26\x91\x65\x41\x3e\x65\x6e\x0b\x8e\x6d\xc1\x32\xa5\xd9\x0e\x8c\xa0\x24\xd7\x7c\x33\x50\x09\x73\x5b\x34\xb8\xd6\x06\x49\xc9\xa0\x04\x3a\x35\x73\x9a\x69\x92\x94\xb6\xac\xf7\x40\xe0\xe9\x86\xb1\xf4\x5e\x4b\x98\xf9\x5f\x52\x54\xce\xfe\x80\xe0\x7f\x10\x82\x5c\xab\xb5\xd8\xe4\xc6\x43\x2d\x82\x87\x25\xb8\x16\x0a\x2d\x61\x8d\x65\xda\x5a\x41\x42\x0f\x48\x3a\x9f\x65\x7a\xcd\xa0\x54\x9e\xb1\x2b\xc7\xb4\x92\x05\x99\x72\x20\x94\x1d\x09\xb5\xd6\x26\x0d\xc0\x84\x95\xce\x5d\x65\xd8\xdb\x20\xa8\xad\xf2\x0a\xe8\xc0\x9d\xd8\x61\x29\x62\xc2\x59\x94\xeb\xd9\x01\xfc\x2e\x6a\x21\xff\x40\xf1\xbf\x18\xc5\x15\xe2\x96\x28\x91\x7b\xe8\xf5\xe5\xe8\x7d\x47\xed\xe4\xfe\x79\x5d\xa0\x3a\x20\xb4\x4c\x2b\x24\x9c\xa7\xa0\x3c\xb2\xb9\x41\x87\x7b\xfc\x7a\xa6\x86\x4e\xf7\xec\x44\x82\x76\xc6\xe6\x52\xb2\x04\x1c\x04\x7e\xa6\x46\xd2\xde\x5e\xd3\xcb\x88\xe8\x5c\x69\xe7\xdb\x8c\xfe\xd5\xad\xf9\xb6\x02\x69\x75\xd5\x56\xac\xdb\x56\xc2\xfd\xf5\xa7\x65\xd4\x9e\x42\x6d\x2c\x3b\x0d\x57\x40\x15\x24\xdd\x0b\x5b\x64\x16\xd2\xa6\xed\xb3\x03\xcd\x35\xf7\x21\xbe\x0f\x26\xbe\xa5\xbb\xc6\x77\x5b\x6c\xb7\x18\x25\x94\x22\x9a\xd4\xa3\x99\xec\x99\x64\x89\x18\xce\x3c\x89\x67\xb8\x69\xee\x9f\xb0\xb5\x36\xde\x42\x59\xa8\x96\x83\xf1\x8f\xc6\xfe\x27\x34\xf6\x21\x6c\x00\x77\x39\xc8\xb2\xc0\xe3\x3d\x11\x74\xd0\xd0\xc2\xdb\x62\xb8\x4f\x42\x5f\x54\x55\x69\x5e\x47\x9e\x57\xc6\xdf\x85\x70\x28\x86\x1d\x2a\x81\x8a\x7b\x27\x19\x1a\x57\x50\xf3\x03\xe7\x68\x6d\x79\xbe\x3a\xd3\x48\x58\xa1\xb4\x0c\xc1\x0a\x59\x84\x28\x60\xdf\x82\xc7\x63\x99\x0f\x28\x3f\x87\x02\xe7\x6c\x63\x74\x9e\xf9\x6b\xbd\xaa\xd4\x8c\x5d\xce\x36\x33\x36\xb1\xe2\x0f\x9c\x0c\xb1\x45\xd7\x6f\xe4\x03\xde\xa9\x8f\x3f\x68\xab\x64\xc4\x93\x71\xbe\x10\x8d\x01\x23\xb4\x39\x51\x6c\x19\x4f\x19\xce\xcd\x64\xca\x26\xd7\xf4\xdf\x6f\xd7\x93\x90\x2f\x9d\x3d\xa3\x52\x0f\x6f\xbd\xf6\xbd\x3f\xf8\x25\xd8\xe2\x85\xd3\x2f\x62\x79\xea\x15\x4b\x84\xcd\x24\x14\xfb\x00\x7a\x60\x05\xed\x7b\xe3\x09\xa4\xfa\xd5\xc9\xda\x81\xcc\x6b\x5a\xbe\x6e\x2a\x9e\xdd\xe7\x0b\xfa\xaa\xf8\xf4\xc2\xc5\xc4\xc4\x90\x7a\x02\xb0\x0e\x5c\x1f\xf9\x0d\x9a\x5a\xd2\x86\x58\xe9\x71\x28\xd5\x81\x1e\xad\x06\xca\x50\xf8\x14\x1c\xdf\xfa\x11\x94\xee\x62\x6f\x6f\xe6\x4d\xbc\xc4\x0c\x55\x22\xd4\x86\xae\x37\xb1\x0e\xef\x21\xba\xb0\x3b\xd5\x60\xda\xd0\xf5\x3a\x65\xc2\x31\x47\x44\x49\x75\x15\x8a\xcb\x3c\xc1\xfa\x25\x12\xf9\x97\xbc\xae\xd0\xd6\x5d\x23\xe3\xb9\x31\x48\xa6\x6a\x11\x94\x87\x89\xdb\x9f\x93\x92\x78\xaf\x9e\x4c\x7d\xfd\xae\x3a\x49\x20\x97\xb9\x4a\xd0\xc8\x82\x4e\x78\x04\x56\xc7\xdc\xc4\x5a\x0e\x5e\x87\x14\x03\x31\xb1\xaf\xac\xc7\x4d\x05\xa8\x30\xb8\x24\x94\xb1\x5a\x1a\x64\xd1\x01\x3c\xaa\x3c\x7d\x2e\x26\x62\x5c\xde\xf7\x90\x65\xff\x3a\xf0\xc5\xc7\x47\xe0\x35\x22\x60\xff\x63\x20\x65\x49\xe9\xcd\x3d\x75\xdc\x93\x87\xf9\xe2\xee\xea\xfd\x65\xe4\x9a\x4a\x2b\x8e\x49\x6e\x0b\xaa\x87\x91\xcf\x18\x3e\x0a\xeb\xec\xb4\x07\x87\xdf\x10\xca\xcd\xfc\x6e\xf1\x53\x88\xe4\x8d\xae\xb4\xbe\xb3\xab\x59\xf0\xf5\xe6\xed\x43\x70\x47\x05\xfe\xd5\x40\x96\x61\xa4\xd3\x88\x7e\xcb\x52\x10\xaa\x9c\x2f\x0a\xff\x5d\x81\xcc\xef\x07\x8e\xc1\xb7\x57\xa5\x51\x81\x4b\xa8\xe1\xe9\xa4\xb8\x43\xb0\x68\xe2\x88\x20\xe5\x39\x63\x3d\x2c\xdd\x52\x0e\xdc\x4c\x13\x48\x0f\x4d\xf8\x27\x69\xd8\x37\x14\xa3\xdf\x19\xa2\xfb\x88\xc5\x27\x6d\x12\x4b\x7e\xfd\xcf\x87\x88\xfd\xe0\x23\x4e\x30\xbd\x6e\x84\x3d\xe6\xa7\xdc\xfd\xb9\x3e\x1b\xb2\x40\x73\xfd\xaa\xfb\xa9\xcf\x6f\x41\x30\x4a\xa8\xcd\xf9\xc1\x2d\x97\x41\xc9\x6f\xfa\x32\x3a\x1c\xca\xde\xfe\xe0\x58\x9e\xe0\x1a\x72\xd9\x24\x2d\xc1\x23\x4d\x0b\xfb\x52\x58\xae\x73\xe5\x30\x39\x67\x17\x5a\x4b\x04\x15\xf7\xd5\x04\x7d\x5b\x4b\xf9\x1d\x3e\xba\xd6\x84\x29\xd4\xad\x16\xca\xd9\x3b\xbd\xcc\x90\xf8\xf2\x95\xd4\xe0\xca\x37\xf8\xe3\xb0\x90\x5e\x3e\xde\x5c\xff\xf4\xbc\x08\xe2\xc0\x63\xcb\xad\xfe\x14\x28\xdb\x67\x28\x7e\x29\x63\x99\x37\xee\x33\x8d\xc9\x91\x42\xd6\x53\x5d\xa7\x28\xbf\x29\x4e\xa7\x51\xb5\xa6\x39\x65\x48\x83\xc9\x8d\x90\x68\xe7\x2a\xb9\xd1\x26\xbe\x42\x06\x9e\x44\xfe\x1e\x3f\x64\x2e\x30\x22\x2f\x18\x07\xc5\x56\x18\xcc\xc7\x73\x68\xc3\x52\x72\x34\x3e\x5c\xcb\x41\x9c\xd4\xf3\x56\x0e\x1f\xb9\x75\x3a\x45\xf3\x7f\x1a\x1e\xda\x58\x91\x62\x87\xa6\xe8\x0e\xdb\x7c\x0b\x4a\xa1\xec\x0a\xa4\xe6\x20\x9b\x57\xcc\x50\x93\x26\xa2\xec\x52\x4f\x0c\x5d\x5a\xf0\x2a\x57\x0e\xd3\x38\xcb\x6e\xd0\xf9\xa5\xd3\xdc\xc2\x66\xef\xe3\x6c\xe8\xd1\xe6\xb7\x1e\x89\x80\x74\x1a\xbd\xe2\x7f\x9a\xf0\x4d\xf1\x2e\x88\xea\xcb\x31\x86\xb6\x76\x7c\xc5\xb5\x97\x0d\xae\x91\x8a\xfa\x94\xcc\xec\x1f\x4b\x65\x7a\xca\x85\xd7\x58\xd0\x94\x5b\x51\x58\xfb\xdd\xd5\xf3\x3a\x28\xa5\x51\x7b\x0b\xb6\x5a\x3a\xfd\x88\x45\x3d\x89\xb1\xdd\xcb\x54\x0f\xea\x0d\x3b\xe9\x6c\xb5\x17\xc5\x6b\x2c\xc8\x40\x3d\xee\xb3\x63\x91\x1e\x4f\xcd\xe0\xe0\x4c\x2b\xd7\xdd\xd9\xb5\x67\x9c\xcd\x95\x70\x5d\xfc\xfa\xee\x6c\x24\x79\x30\x98\xe6\xad\x35\x18\x51\x06\x6e\xdb\x5c\x51\x90\x76\x74\x0c\xf6\x0e\x92\x4d\x1f\x47\xfa\xba\xc6\x5b\x07\x59\xfe\xeb\xa9\x3c\x0c\x1e\x17\x60\xb1\x7f\xe7\x5e\x3e\x4f\xc9\x42\x83\xcd\xf7\xc2\x5f\x94\x68\x19\x3e\x70\xf1\x70\x48\x33\x10\x1b\xf5\x2e\x97\xd8\x41\x7f\x82\xaa\x20\xc6\x2d\x77\xdb\xf6\xe6\x27\xde\x20\xbe\x75\xe1\x71\x21\xc1\xda\x46\x8b\x0e\xfd\x09\x05\xc1\xf0\xed\x3b\xb4\xb9\x74\xd5\xfd\x1f\xfe\xf0\xd2\x03\xee\x18\xec\x1a\x38\x36\xe5\xc1\xcc\xc3\x2b\x12\x9c\xdc\xc7\x67\x56\xbe\xd9\xa0\xed\xbc\x68\xa3\xea\xb2\x92\x46\xa3\xd6\xaf\xdf\x34\xbf\xe2\x44\xe5\xfd\x47\x9c\x2d\xd8\x30\x89\x63\xe2\x9d\xb5\xd2\x94\x19\x9d\xea\xf0\x6d\xa8\x6d\xe3\xb6\x14\x0d\x83\x2f\x7c\x4a\x38\xcc\xe5\x5e\xa7\xcc\x83\x30\xb6\xaf\x24\x5e\xe7\x88\x9b\x46\x9b\x1d\x6a\xf1\x2f\xa3\x11\x3e\x3a\xa4\x31\x80\xac\xfd\x9c\xa3\x29\x27\xb5\xb6\xe5\xd3\xa1\x07\xd2\xf4\xc8\x87\xa7\x1e\x32\xec\x75\x10\x73\x79\x6a\x23\x6a\x7e\xcf\xb1\x91\x80\x98\xea\x28\xe8\xe5\xd8\x3a\xe0\xe8\x70\x7f\x07\x00\x00\xff\xff\xd8\xa0\x0f\x0c\x38\x1e\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/product/interfaces/graphql/service.go b/product/interfaces/graphql/service.go index b4583a324..a1352f936 100644 --- a/product/interfaces/graphql/service.go +++ b/product/interfaces/graphql/service.go @@ -1,21 +1,25 @@ package graphql import ( + // embed schema.graphql + _ "embed" + "flamingo.me/flamingo-commerce/v3/product/domain" graphqlProductDto "flamingo.me/flamingo-commerce/v3/product/interfaces/graphql/product/dto" "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o fs.go -pkg graphql schema.graphql - // Service is the Graphql-Service of this module type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema returns graphql schema of this module func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers diff --git a/search/interfaces/graphql/graphql.go b/search/interfaces/graphql/graphql.go deleted file mode 100644 index b133a85a6..000000000 --- a/search/interfaces/graphql/graphql.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - -// Package graphql generated by go-bindata.// sources: -// schema.graphql -package graphql - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _schemaGraphql = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xc4\x56\xcd\x4e\xdb\x4c\x14\xdd\xfb\x29\x6e\x94\xcd\xf7\x6d\xd2\xbd\x97\x50\x21\xa1\x82\xa0\x04\x75\x83\x22\x34\xd8\x07\x7b\xda\xf9\x31\x33\xd7\x81\xb4\xe2\xdd\xab\xb1\x1d\xc7\x76\x6c\x42\x85\x44\xb2\xca\xdc\x9f\x33\xe7\x1c\x5f\x69\xae\x34\x45\xc9\x74\x6a\xb5\x86\x4b\x70\xbf\x84\x70\x49\x7e\xff\x0d\x9b\x1f\x42\x95\x38\x93\x8a\xe1\xe8\x4f\x44\x44\xf4\x2b\xa6\x25\x3b\x69\xb2\x59\x75\x5c\xc7\x74\xd7\x9c\x57\xd1\x6b\x14\x8d\x23\xdd\xe0\xa9\x84\xe7\x06\xa2\x10\x19\x96\xf2\x37\x62\xda\xfd\xce\x0d\xb7\xb9\x6e\xbc\x9b\xf3\xd6\xf1\xc9\xa6\x9f\xad\xef\xae\x99\xf5\xe8\xfa\xaa\xee\xee\x6d\x4d\xb3\x55\xd5\xf9\x54\xc2\x0d\x70\xb7\xc0\xaf\x51\x34\x1f\xd7\x74\x21\xd7\xa8\xff\xee\xd4\xcd\x0f\xa0\xcd\x5f\xa3\x88\x37\x05\xf6\xc0\x2e\xc1\xa2\x71\x67\xd8\xde\x75\xdb\x3a\x99\x49\x23\xd4\xf7\xa6\xa6\x9b\x1b\x3a\x77\x6e\xb8\x4e\x98\x52\x5f\x8b\x0c\x3e\x1e\x49\xdc\xc0\x97\x8a\x9b\x54\x9b\x08\x46\x5f\x15\x2c\xad\x99\x70\x71\xd9\x16\xd4\x5f\x7d\x54\xd3\xae\xa8\x51\xa6\xc4\x03\x54\x7f\x7c\x1e\x25\x54\xda\x0f\x79\x28\x24\x8c\x34\xa6\x13\x6b\x15\x84\x99\xd5\x73\xc5\x70\x8f\x22\xd9\xbf\xe6\x4c\x24\xd8\x4e\x96\x11\x1a\x7d\xb4\x91\x3b\x0b\xeb\x65\x60\x15\xef\x04\x4b\x86\xf6\xf1\xbe\xce\x0a\xfb\x9c\xa1\x67\xab\xba\x30\x17\x7e\xd9\xf0\x0b\xe1\x7f\xe2\x18\x1a\xa6\x9d\x58\x87\xa9\x3c\xe8\x44\x08\x27\xb6\x34\xdc\x90\x9f\xf2\xfe\x42\x7a\xae\x8d\x91\xba\x50\xd0\x30\xec\x3f\xd5\xb9\x96\xc0\xbb\xdd\x7b\x5b\x47\x65\xde\x21\x2d\x9f\xe9\xf0\xad\x03\x8e\xea\x70\x4b\xe0\x63\x0e\xf7\x60\x8e\xe2\x70\x38\x8b\x84\xe5\x1a\x83\xa2\x77\x2a\x9f\x94\x76\x23\x4c\x76\xdc\x6f\xb4\x63\xf0\xb1\x8f\xd4\xc7\x39\xda\x57\xd2\xb2\x2b\x5a\x8b\x97\xce\x69\x0b\x71\xd9\xab\x69\xa3\x6d\xed\xe4\x6b\x51\x66\x19\x7c\xe7\xb5\x60\xbc\x70\xbc\xff\x04\xe6\x32\xcb\x95\xcc\x72\xde\x29\x98\x82\xbc\x76\x56\xdb\x2e\xa2\x64\x35\x10\x9e\x58\xc3\x30\xdc\x0f\x96\x6e\xe0\x98\x46\x2a\x45\x3c\x8d\x7f\x19\xf2\x87\x69\x54\x65\x5b\x2e\x9b\x02\x23\xea\xb4\xd4\xb8\xad\x53\x3d\x46\xbe\x7d\xdc\xbb\xe1\x46\xd0\x30\xec\xf0\x08\x07\x93\xa0\x67\xd1\x7c\x7c\xb2\xaa\x05\x60\xbb\xba\xe4\x32\xec\x02\x77\xab\x61\xd5\x57\x9b\x94\x61\xde\x88\xbe\xd0\x95\x23\x2d\x36\x0f\xa0\x67\x50\x6a\x0d\x93\x01\xd2\xaa\x93\x84\x49\x89\x73\x90\xb6\x69\xa9\xe0\xeb\x0c\x5b\x12\x69\x4a\x82\x90\x66\x08\x27\xce\xa5\x27\xfb\xf0\x13\x09\x2f\x16\x8b\x00\xf3\x2c\x95\x22\x0f\xd4\x24\x7c\x75\x67\xd8\x88\x6a\x69\x63\xbb\x52\x2d\x74\x4e\xd5\xb8\xfb\x98\x52\xab\x85\x34\x8b\xea\x78\x6a\x55\x18\x3a\x69\x4d\x83\xd7\x4e\xd6\xd4\x36\xd3\x16\xac\xaa\x0d\x2d\x9a\xe3\x85\x11\xb4\x04\xc7\xaa\x5d\x6b\x6b\xd0\xa0\xf5\x3f\xdf\x5d\x00\xf7\x27\xa4\x49\xfc\x3f\x96\x09\xbe\x8f\x82\x76\x36\xcb\x43\xf8\x7b\x3b\xe8\xe4\x4d\x07\x3b\x67\x41\xfa\xdf\x00\x00\x00\xff\xff\x32\x56\x34\x86\x08\x0c\x00\x00") - -func schemaGraphqlBytes() ([]byte, error) { - return bindataRead( - _schemaGraphql, - "schema.graphql", - ) -} - -func schemaGraphql() (*asset, error) { - bytes, err := schemaGraphqlBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "schema.graphql", size: 0, mode: os.FileMode(0), modTime: time.Unix(0, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - canonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[canonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "schema.graphql": schemaGraphql, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("nonexistent") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - canonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(canonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "schema.graphql": &bintree{schemaGraphql, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - canonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(canonicalName, "/")...)...) -} diff --git a/search/interfaces/graphql/service.go b/search/interfaces/graphql/service.go index b7e12633b..b556263a9 100644 --- a/search/interfaces/graphql/service.go +++ b/search/interfaces/graphql/service.go @@ -1,22 +1,27 @@ package graphql import ( + // embed schema.graphql + _ "embed" + + "flamingo.me/graphql" + "flamingo.me/flamingo-commerce/v3/search/application" "flamingo.me/flamingo-commerce/v3/search/domain" "flamingo.me/flamingo-commerce/v3/search/interfaces/graphql/searchdto" - "flamingo.me/graphql" ) -//go:generate go run github.com/go-bindata/go-bindata/v3/go-bindata -nometadata -o graphql.go -pkg graphql schema.graphql - // Service is the Graphql-Service of this module type Service struct{} var _ graphql.Service = new(Service) +//go:embed schema.graphql +var schema []byte + // Schema returns graphql schema of this module func (*Service) Schema() []byte { - return MustAsset("schema.graphql") + return schema } // Types configures the GraphQL to Go resolvers