2021-01-08 22:22:43 +03:00
|
|
|
|
// Code generated by vfsgen; DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
// +build !dev
|
|
|
|
|
|
|
|
|
|
package assets
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"bytes"
|
|
|
|
|
"compress/gzip"
|
|
|
|
|
"fmt"
|
|
|
|
|
"io"
|
|
|
|
|
"io/ioutil"
|
|
|
|
|
"net/http"
|
|
|
|
|
"os"
|
|
|
|
|
pathpkg "path"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// Assets statically implements the virtual filesystem provided to vfsgen.
|
|
|
|
|
var Assets = func() http.FileSystem {
|
|
|
|
|
fs := vfsgen۰FS{
|
|
|
|
|
"/": &vfsgen۰DirInfo{
|
|
|
|
|
name: "/",
|
2021-01-19 12:43:37 +03:00
|
|
|
|
modTime: time.Date(2021, 1, 19, 9, 34, 46, 425278952, time.UTC),
|
|
|
|
|
},
|
|
|
|
|
"/micro_chi.pb.go.tmpl": &vfsgen۰CompressedFileInfo{
|
|
|
|
|
name: "micro_chi.pb.go.tmpl",
|
2021-01-30 19:34:30 +03:00
|
|
|
|
modTime: time.Date(2021, 1, 30, 16, 32, 9, 688886985, time.UTC),
|
|
|
|
|
uncompressedSize: 1558,
|
2021-01-19 12:43:37 +03:00
|
|
|
|
|
2021-01-30 19:34:30 +03:00
|
|
|
|
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xa4\x54\xef\x4f\xeb\x36\x14\xfd\x5c\xff\x15\x77\x99\x2a\x25\x90\x3a\x43\xdb\xa7\x0e\x3e\x6c\x08\x24\xb4\xc1\x10\x9a\x40\x1a\x42\xc8\x38\x37\x89\xd5\xc4\xce\xec\x9b\xbe\x56\x6d\xfe\xf7\x27\x27\xe9\x0f\x28\xa0\xa7\xf7\x2a\x55\xae\xed\x7b\xee\x3d\xe7\xde\x53\x27\x09\x9c\x9b\x14\x21\x47\x8d\x56\x10\xa6\xf0\xb2\x84\xda\x1a\x32\x72\x92\xa3\x9e\x54\x4a\x5a\xc3\x6a\x21\x67\x22\x47\x58\xad\x72\x73\x3b\xcb\xff\x16\x8e\x2e\x4a\xac\x50\x13\xf0\x4b\x55\x22\xac\xc1\xd5\xa5\xa2\x3f\xac\x15\x4b\x08\x7e\x0f\x60\x0d\xa5\x70\xd4\xb6\x8c\xa9\xaa\x36\x96\x20\x64\x00\x81\x34\x9a\x70\x41\x81\xff\x9d\x55\xfd\xaa\x91\x92\x82\xa8\xee\x36\x16\xb3\x12\x65\x7f\xe1\xc8\x2a\x9d\xbb\x80\xb1\x51\x90\x2b\x2a\x9a\x17\x2e\x4d\x95\xe4\x66\x22\x0b\x95\xf8\xef\xfc\xb7\x80\x8d\x2a\x95\xa6\x25\x7e\x11\x16\xe1\xc3\xb0\x64\x17\xd4\x21\xa4\x35\xcf\xa2\x56\xaf\x00\x8d\x56\x8e\x84\x9c\x4d\x8c\xcd\x93\x2e\x24\x99\xff\x9a\x88\x5a\x05\x2c\x62\x8c\x96\x35\x82\x35\x0d\xe1\x5f\xb8\x04\x47\xb6\x91\xb4\x6a\x19\xcb\x1a\x2d\xe1\xce\x9f\xdf\x88\x0a\x43\x49\x0b\x18\x44\xf2\xf3\x7e\x8d\x20\xec\x95\xc4\xf0\x62\x4c\x19\xc1\x8a\xc1\xf0\x99\x8b\xb2\xc1\x18\xcc\x0c\xa6\x67\x20\x69\xc1\xef\xfd\x41\xb8\x29\xb3\x6a\x23\x3e\x60\xa3\x2d\xc6\x22\x35\x56\xef\xa0\x6c\x4b\x02\x73\xe5\x08\x6d\x68\xe1\x48\x16\x8a\x5f\x37\x8b\x18\x0a\x50\x9a\xd0\x66\x42\xe2\xaa\x8d\x01\x6b\x07\x8f\x4f\x47\xdb\x06\xf0\x0b\x9d\xd6\x46\x69\x8a\x00\xad\x35\x76\x9f\x9b\xe7\x34\x8c\xa3\xe7\xf5\x4f\x16\x16\x11\xdb\x06\xa8\x0c\xe6\xfc\xa6\xa9\xae\x91\x0a\x93\x86\x11\x9c\xc2\xc9\x1e\xfe\x0d\xdf\xac\x22\x7e\xe1\x4b\x64\x61\x50\x08\x9d\x96\x68\xa1\x10\x0e\xb4\x81\xaa\x4b\xe0\xa6\x30\xfe\x37\x88\xa1\xd8\x49\x6d\x77\xc5\x32\x63\xe1\xd9\xf3\xef\x58\x09\x9d\x63\xa7\xe5\xb0\x9c\x4a\x17\x3e\x64\xf0\x0e\xbf\xd2\x29\x2e\x42\xac\xb9\x9f\x4e\x0c\x01\x0f\xa2\x43\x48\xd6\xa1\x3c\xfd\xf5\x1a\x4a\xd4\x9b\xf8\x08\x4e\xcf\xba\xab\xc3\x32\x9f\xa8\x53\x7a\x2e\x4a\x95\xc2\x7e\x7b\x41\x8b\x0a\xa7\x30\x76\x81\xd7\xd0\x27\x3f\xc8\xd9\x1e\x9c\x78\x94\x57\x33\x40\x1e\x55\xba\x38\x3e\x99\x3e\x1d\xc4\x55\x3e\x68\xce\xfb\x49\xfc\xb9\xec\x9c\xa8\xdf\xad\xa1\x32\xf8\xa9\xe2\x57\xee\xde\x53\x0c\x23\x2f\xd8\x6f\xff\x43\x6b\xc2\xe8\xfb\x74\x0e\xd3\x8c\x87\x39\xc2\xd8\x0f\x95\x20\x33\x8d\x4e\x83\x18\xf4\x07\x5a\x0f\x8d\x52\x6c\xfe\x09\x15\xbf\xda\x98\x36\x8c\x78\xe8\xdd\x1d\xfa\x17\x82\xdf\xa1\xab\x8d\x76\xf8\x60\x15\xf9\x8a\x47\xc3\xe9\xff\x0d\x3a\x8a\xde\x57\x6b\x66\x3f\x24\x6b\x0a\xe3\x9f\x8f\xe7\x41\xfc\x9a\xd4\xb7\x0c\x6f\xb0\xec\xd0\x95\x3d\xdb\x0e\x73\xfa\x8c\x16\x7f\x50\x54\x84\xbb\x47\xab\xdb\xbf\x7d\x1c\x76\x56\x8a\x86\x94\x97\xbe\x53\x7d\xc1\xee\xf2\x56\x50\xf1\xf8\xcb\x53\x0c\xb6\xf8\x8c\x71\xcb\x46\xa3\xd1\xd0\x0a\xad\x4a\xd6\xb2\xaf\x01\x00\x00\xff\xff\x57\xe5\x21\x4e\x16\x06\x00\x00"),
|
2021-01-19 12:43:37 +03:00
|
|
|
|
},
|
|
|
|
|
"/micro_gorilla.pb.go.tmpl": &vfsgen۰CompressedFileInfo{
|
|
|
|
|
name: "micro_gorilla.pb.go.tmpl",
|
2021-01-30 19:34:30 +03:00
|
|
|
|
modTime: time.Date(2021, 1, 30, 16, 32, 25, 804436178, time.UTC),
|
|
|
|
|
uncompressedSize: 1243,
|
2021-01-19 12:43:37 +03:00
|
|
|
|
|
2021-01-30 19:34:30 +03:00
|
|
|
|
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xa4\x53\x61\x6f\xd3\x30\x10\xfd\x5c\xff\x8a\xc3\xa8\x52\xbc\x65\x0e\x13\xdf\xca\xf6\x01\xd0\x26\x26\xc1\x98\x26\x34\x24\xa6\x69\xf2\x92\x4b\x62\x35\xb6\xc3\xd9\xa9\x3a\xb5\xf9\xef\xc8\x69\x36\x86\x32\x10\x02\x7f\x69\x6d\xbf\xbb\xf7\x9e\xdf\x25\xcb\xe0\xbd\x2b\x10\x2a\xb4\x48\x2a\x60\x01\x77\xf7\xd0\x92\x0b\x2e\x3f\xa8\xd0\x1e\x18\x9d\x93\x63\xad\xca\x97\xaa\x42\xd8\x6c\x2a\x77\xb1\xac\x3e\x2a\x1f\x4e\x1a\x34\x68\x03\xc8\x53\xdd\x20\x6c\xc1\xb7\x8d\x0e\x6f\x89\xd4\x3d\xf0\x37\x1c\xb6\xd0\x28\x1f\xfa\x9e\x31\x6d\x5a\x47\x01\x12\x06\xc0\x4b\x13\x78\xfc\xb5\x18\xb2\x3a\x84\x76\xd8\x10\x96\x0d\xe6\xbb\x0b\x1f\x48\xdb\xca\x73\xc6\x66\xbc\xd2\xa1\xee\xee\x64\xee\x4c\x56\x39\xd2\x4d\xa3\x32\xd3\xad\x39\x9b\x0d\x9a\x6e\x55\xab\xe1\x29\xa6\xb3\xda\x07\x95\x2f\x0f\x1c\x55\xd9\x00\xc9\x56\xaf\x33\xd5\x6a\xce\x04\x63\x65\x67\x73\xb8\xc4\x4a\xfb\x80\x94\x10\xec\x99\x6e\x2d\x2f\x5d\x17\x90\x52\xa8\x41\xdb\x80\x54\xaa\x1c\x37\x7d\x0a\xd8\x7a\xb8\xbe\xd9\x7b\xa4\x91\x27\xb6\x68\x9d\xb6\x41\x00\x12\x39\x82\x0d\x83\x71\xad\x60\x71\x0c\xa3\x01\x79\xa5\x9a\x0e\x3f\x97\x49\x2d\xd8\x23\x40\x97\xb0\x92\xe7\x9d\xf9\x84\xa1\x76\x45\x22\xe0\x08\x0e\x9f\xd4\x3f\x2c\xc2\xd0\x91\x85\xd2\x04\x79\x12\x29\xca\x84\xd7\xca\x16\x0d\x12\xd4\xca\x83\x75\x60\x86\x06\x7e\x01\xf3\x2f\x3c\x85\x5a\x3c\xb6\xe8\x7f\x92\x95\x8e\xe0\x36\xea\x1f\x54\x29\x5b\xe1\xe0\x65\x4a\xa7\x8b\x75\x84\x8c\xaf\x2d\xcf\x6c\x81\xeb\x04\x5b\x79\xae\x0c\xa6\xc0\x25\x17\xd3\x92\x72\xa8\x8a\xf2\xb7\x5b\x68\xd0\x3e\xe0\x05\x1c\x1d\x0f\x57\x53\x9a\x3f\xb8\xd3\x76\xa5\x1a\x5d\xc0\xd3\xe7\x05\xab\x0c\x2e\x60\xee\x79\xf4\xb0\x6b\x3e\xe9\xd9\x4f\x4e\x62\x55\x74\x33\x96\x5c\xeb\x62\xbd\x7f\xb8\xb8\x99\xe0\x4c\x04\xad\xe4\x2e\x89\x77\xf7\x11\x9b\xd8\x67\x39\x74\x09\x2f\x8c\x3c\xf3\x57\x51\x62\x22\xa2\xe1\xb8\xfd\x86\xe4\x12\xf1\x6f\x3e\xc7\x34\xd3\x31\x47\x98\xc7\x50\x03\x94\xae\xb3\x05\x4f\xc1\xfe\xc6\xeb\x74\x50\xea\x14\xdc\x32\x3a\x31\xf2\xec\x61\x68\x13\x21\x93\x38\xe0\x49\xfc\xa6\xe4\x25\xfa\xd6\x59\x8f\x5f\x49\x0f\xd3\xbd\x37\x9e\x7e\xef\xd0\x07\xf1\xbc\x5b\xb7\xfc\x2f\x5b\x0b\x98\xbf\xdc\x5f\xf1\xf4\x57\x51\x7f\x13\x1e\xc9\x0f\x43\x8b\xd3\x28\x1f\x5b\x79\xa1\x42\x7d\xfd\xea\x26\x05\xaa\xc5\x18\x95\x8f\xe7\xbb\xbf\x52\x4a\x31\x84\x9c\x4c\xe6\xa3\x67\xb3\xd9\x6c\x54\x6a\x75\xc3\x7a\xf6\x23\x00\x00\xff\xff\xc1\xe4\x04\x6d\xdb\x04\x00\x00"),
|
2021-01-08 22:22:43 +03:00
|
|
|
|
},
|
2021-01-16 03:56:35 +03:00
|
|
|
|
"/{{trimSuffix \".proto\" .File.Name}}_micro.pb.go.tmpl": &vfsgen۰CompressedFileInfo{
|
|
|
|
|
name: "{{trimSuffix \".proto\" .File.Name}}_micro.pb.go.tmpl",
|
2021-01-30 19:34:30 +03:00
|
|
|
|
modTime: time.Date(2021, 1, 30, 16, 23, 28, 407468998, time.UTC),
|
|
|
|
|
uncompressedSize: 5572,
|
2021-01-08 22:22:43 +03:00
|
|
|
|
|
2021-01-30 19:34:30 +03:00
|
|
|
|
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xd4\x57\xdf\x6f\xdb\x36\x10\x7e\x8e\xfe\x8a\x83\x10\x04\x52\xe1\xc8\x1d\xf6\xe6\xc1\x0f\x69\xd0\x62\x03\x96\xb4\x68\x86\xed\xa1\x28\x02\x46\x3a\xcb\x5c\x64\x4a\x23\x29\x27\x81\xa2\xff\x7d\xa0\x48\xea\x07\x23\xcb\x76\x10\x14\x68\x5e\x22\x8a\xf7\xdd\x9d\xee\x3e\x9e\x3f\xce\xe7\x70\x99\x27\x08\x29\x32\xe4\x44\x62\x02\x77\x4f\x50\xf0\x5c\xe6\xf1\x79\x8a\xec\x7c\x43\x63\x9e\x7b\xf3\x39\x88\xbc\xe4\x31\x2e\xa0\xaa\xa2\x4f\x34\xc3\xe8\x9a\x6c\xb0\xae\xbd\x82\xc4\xf7\x24\x45\xa8\xaa\x34\xff\x72\x9f\xfe\x49\x84\xfc\x98\xe1\x06\x99\x84\xc6\x0e\x9e\x41\x14\x19\x95\x17\x9c\x93\x27\xf0\x7f\xf3\xe1\x19\x32\x22\x64\x5d\x7b\x1e\xdd\x14\x39\x97\x10\x78\x27\x7e\x9c\x33\x89\x8f\xd2\xf7\xbc\x93\x26\xe2\x2d\x29\x28\xf8\x29\x95\xeb\xf2\x2e\x8a\xf3\xcd\xbc\x64\x54\x48\x12\xdf\x9f\xe7\x3c\x9d\x37\x26\xf3\xed\xaf\x73\x52\x50\x1f\x00\xc0\xa2\xe2\x8c\xaa\xc8\xfb\x81\xda\xd0\x6f\x81\x02\xf9\x16\xf9\x01\x40\x6d\xe8\x7b\xa1\xe7\x55\xd5\x39\x9c\xde\x20\xdf\xd2\x18\x55\x35\x60\xb1\x84\xc8\xac\x9b\xf2\xc0\x33\x48\x4e\x37\x37\xe5\x6a\x45\x1f\xc1\x37\x5b\x3e\xd4\xb5\xc6\x62\xc1\xca\x8d\x42\xbd\xb7\xaf\x38\x61\x29\x76\x4e\xae\x50\xae\xf3\xc4\xec\xd1\x15\xb0\x5c\x42\xa0\x4a\x45\x28\x13\x10\xfc\x2b\x72\x06\xc1\x5a\xca\xe2\x73\x21\x69\xce\x20\x0a\x43\xf0\x59\x99\x65\x7e\x08\x3d\x14\x6a\xa3\xbf\x91\xdf\x41\x14\x82\xef\x66\xb0\x04\x92\x24\x76\xf1\xcb\x30\x17\x05\xfc\x42\xe4\x5a\x5c\x24\x09\x55\x41\x48\xf6\x81\xb2\x84\xb2\x54\x40\x74\x90\x1f\x64\xc9\x41\x8f\x8a\x64\xd7\xf8\x50\x55\xfd\x9a\xd6\xf5\x47\x96\x14\x39\x65\x52\x28\x56\x6e\x69\x82\x02\x14\x37\xb0\x7d\xbd\x41\x99\x10\x49\x60\x95\x73\x70\xc1\x20\xf4\xca\x5b\x95\x2c\x9e\xf4\x1e\x84\xf0\xed\xfb\xbb\x96\x7b\x91\xdd\x80\xca\x53\x04\xeb\xc2\x2d\x96\xb0\x21\xf7\x18\x8c\x5a\xcf\xe0\xfd\x0c\xaa\xca\xd6\xa0\xae\xc3\x06\xdd\x35\xc2\x6c\x34\x0d\x57\x3b\x5b\xc2\x5b\xdf\x30\xe2\xb0\x85\x9b\x22\xd9\xe5\x2e\xa2\xf4\xa3\x1d\x47\x16\x8b\x3c\xed\x99\x2c\x96\x0e\x02\x9c\x10\xd8\x37\x37\x59\x18\x7e\xf5\xab\x06\x4b\x38\x7b\xf9\x6d\xba\xb2\xea\x4f\xf5\x62\x01\xbe\xdb\x9c\xa8\xaa\xcc\x98\xf1\x67\xad\xad\x22\xe3\x02\xbe\x7d\x17\x92\x53\x96\x56\x0a\xd4\x4b\x41\xed\xd6\xb5\x5f\x77\xf6\x3a\xa9\xdd\x08\x5b\xba\x3e\xe6\x43\x9e\x3c\xe9\x7c\x7a\x86\xea\xe5\x20\x13\x53\x84\x9c\x43\x10\x5d\x36\xf3\xe4\x46\x72\x24\x1b\xca\xd2\x10\x82\xa6\x37\xc8\xbb\x57\xa6\x26\xea\x4f\xbf\x5c\x80\xe4\x25\x0e\xfd\x21\x4b\x7a\x76\xbf\x13\x96\x64\xc8\x17\xe0\xf3\x22\x36\x91\x6b\x87\x8f\x4b\x20\x45\x81\x2c\x09\xda\x57\xb3\x76\x37\x74\xf8\x72\x4a\x59\x82\x8f\x33\x38\x45\x33\xa2\x17\xcb\x41\x03\xbb\x33\xfe\x83\x3b\x68\xf2\x39\xb4\x7d\xd6\x7c\xba\x77\xd6\xea\xa7\x6e\x5c\xe7\xf7\xf0\x15\x47\x59\x72\xd6\x85\xf2\xf4\x70\x75\x9b\x63\x16\x40\x99\x44\xbe\x22\x31\x7a\xf2\xa9\xc0\xfd\x66\xcd\x48\x9c\x1e\x42\xcd\x20\xe1\xf8\x9f\x99\x08\xea\x87\xf1\x0f\x56\x94\xf2\x2f\x15\x60\xa8\x08\x22\xab\x08\xa0\x87\x14\x45\x0f\xf9\xb9\x94\x07\x43\x6d\x5b\xdd\x1e\x8e\x74\xba\x8f\x21\x2c\x19\x05\xa9\x19\x3a\x0e\x54\x50\x43\xed\xc0\x88\x97\xe8\x52\xff\x9f\xc1\xbb\xaa\xea\xbe\xbe\xae\x67\x10\x45\x51\x5f\xa0\x44\x97\x24\xcb\xf4\x99\x0b\x21\x70\x0b\x7e\xdb\x7a\x36\xaf\x67\x80\x9c\xe7\x3c\x34\xf9\x62\x26\x70\x7f\x0e\x6f\x1b\x92\x75\x7d\x3d\x2c\xfc\x71\x25\x68\xac\x6d\xd3\x95\xf5\xee\xe8\xcd\x73\xad\xd4\xd7\x94\x58\x3a\x96\x7c\x2d\xec\x48\xe6\x35\xb8\xe3\x48\x37\x7a\xc8\x5e\x34\xc0\x39\x6e\x00\xa6\xb2\x41\x08\x4e\xad\x9b\xdd\x1b\x64\xc9\x95\x48\x83\x16\x55\xd5\xa1\x2e\x62\xb3\xfd\x15\xe3\xed\xc4\xf6\xe0\x14\xbc\x9c\x88\xcd\x29\xd8\x31\x15\x95\xe7\x0b\x96\x5c\x66\xb9\xc0\x60\xb2\x93\xee\x94\xb2\x90\x17\x69\xb8\x19\x18\x7b\xf5\x89\x81\x43\x2b\x17\x3d\x9c\x88\xca\x97\x93\x76\x2f\xeb\xc3\xb3\x6d\x65\x6a\xdd\x7f\x9a\xcf\xe1\x4a\x11\x1a\xcc\xdd\x41\xc8\x72\xb5\x1a\x1d\xb4\xe6\xd7\xc0\x1a\xae\xf5\x72\x9c\x08\xd6\xb6\xdf\xfe\x93\x7d\x57\x83\x1f\xca\xf6\xe3\x87\xec\x40\x92\xee\xe8\xee\x31\xa3\x64\xe2\xf0\x34\x5e\x5f\xb0\xe2\xa0\x89\x75\xb4\xd7\x8e\x0f\xaf\x9b\x88\x0e\xf9\xac\xff\x31\xae\xe9\x1f\xf0\xaf\x98\x52\x21\x91\xef\xe2\x0c\x37\xfb\xc2\x65\x5a\x73\xfb\xd9\x83\x0e\x04\xf4\xaf\xc2\xa6\xb9\x33\x10\xeb\x5d\x1c\x9d\x41\x5e\x48\
|
2021-01-08 22:22:43 +03:00
|
|
|
|
},
|
2021-01-16 03:56:35 +03:00
|
|
|
|
"/{{trimSuffix \".proto\" .File.Name}}_micro_grpc.pb.go.tmpl": &vfsgen۰CompressedFileInfo{
|
|
|
|
|
name: "{{trimSuffix \".proto\" .File.Name}}_micro_grpc.pb.go.tmpl",
|
|
|
|
|
modTime: time.Date(2021, 1, 16, 0, 55, 51, 142484770, time.UTC),
|
|
|
|
|
uncompressedSize: 5873,
|
2021-01-08 22:22:43 +03:00
|
|
|
|
|
2021-01-16 03:56:35 +03:00
|
|
|
|
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xcc\x57\x4d\x6f\xa4\x46\x13\x3e\xd3\xbf\xa2\x16\xbd\x5a\xc1\x2b\xcc\x1c\x72\xf3\xca\x87\x95\x95\x55\x22\x65\x77\xa3\x75\xee\x16\xdb\x53\x83\x91\xa1\x19\x37\x8d\x3d\x16\xee\xff\x1e\x75\x75\xc3\x00\xc3\x7c\x19\x3b\x89\x0f\x1e\x4d\x7f\x55\x3d\xf5\xf1\xd4\x33\x8b\x05\x5c\x97\x4b\x84\x14\x05\xca\x44\xe1\x12\x7e\x3e\xc3\x5a\x96\xaa\xe4\x17\x29\x8a\x8b\x22\xe3\xb2\x64\x8b\x05\x54\x65\x2d\x39\x5e\x42\xd3\xc4\x5f\xb2\x1c\xe3\x6f\x49\x81\x5a\xb3\x75\xc2\xef\x93\x14\xa1\x69\xd2\xf2\xcf\xfb\xf4\x8f\xa4\x52\xbf\xe6\x58\xa0\x50\x40\xe7\xe0\x05\xaa\x75\x9e\xa9\xcf\x52\x26\xcf\xe0\x7f\xf2\xe1\x05\xf2\xa4\x52\x5a\x33\x96\x15\xeb\x52\x2a\x08\x98\xe7\xf3\x52\x28\xdc\x28\x9f\x31\x8f\x2c\xde\xf2\x3c\x33\x6f\xf8\x69\xa6\xee\xea\x9f\x31\x2f\x8b\x45\x2d\xb2\x4a\x25\xfc\xfe\xa2\x94\xe9\x82\x4e\x2d\x1e\x7f\x59\xd8\x83\x3e\xb4\x17\x2b\x94\x8f\x28\x4f\xb8\x68\x0f\xfa\x2c\x64\xec\x31\x91\x10\x30\x00\x80\x5b\xe8\xbf\x12\x7f\x5f\xab\xac\x14\x83\x1d\x6b\xaf\xdd\x09\x19\x6b\x9a\x0b\xf8\x1f\x41\xbd\xbc\x72\x98\xb5\xb6\xab\x37\x28\x1f\x33\x8e\x26\x54\xb4\xe9\xbe\x53\xec\xe0\x05\x94\xcc\x8a\x9b\x7a\xb5\xca\x36\xe0\xbb\x2d\xdf\xdc\x65\xea\x79\x6d\x22\x3a\xb8\xff\x02\x79\xf9\x84\xf2\x4b\x26\x4d\xf0\xdc\x0e\x54\x4a\xd6\x5c\x41\x43\x2e\xf2\xa1\x8b\xd7\xf4\x41\x3b\xc2\xbc\x50\x29\x99\x89\x94\x69\x66\xd2\xf9\xd5\x9c\x04\x17\xe5\x4a\xd5\xab\x15\x2d\x7f\xc3\xa7\xa1\xdd\xad\x29\x2e\x31\x51\x08\x02\x9f\xa0\x6a\x97\xac\x85\x55\x2d\xf8\x81\x9b\x41\xcf\x7a\x34\xed\x64\x08\xfb\xac\x5a\x64\x12\x55\x2d\x05\x7c\x3c\x25\x26\x0d\xbf\x04\x1e\x11\xe4\x4b\xfa\xaf\x0d\xe4\xa6\x91\x89\x48\x71\x9b\x83\xaf\xa8\xee\xca\x65\x9b\x29\x89\x0f\x76\x81\xf2\xf4\xbb\x58\xd7\xea\x2f\x93\x84\x61\xf5\xc6\xbd\xea\xb5\xd7\xaa\x75\xef\xda\xf7\x5a\x9d\x76\x2f\x5b\x41\x22\x96\x10\x88\x52\x81\x8b\xc0\x8d\x92\x98\x14\x99\x48\x43\x08\xc8\x47\x94\xbd\xa5\x0b\xad\x6d\x94\x03\x0e\xff\x3f\x25\x08\x26\xa0\xae\x45\x03\xae\x36\xe0\xfa\x2b\xbe\xb6\x9f\x11\x48\x7c\xa0\x97\x3a\xe0\x5a\x47\x50\xae\x55\x05\x71\x1c\x0f\x33\x94\xe4\xb9\xad\xf6\x10\x82\x71\x9a\x6e\x3b\x33\x6e\x39\x02\x94\xb2\x94\x21\x25\xce\x60\xc5\xbc\x42\x03\x78\x8c\xf3\x1d\x30\xbd\x9b\xfb\xff\x99\xf0\xd3\x95\xb6\xe6\xcc\x95\xb1\xb7\x62\x49\xce\xda\x6f\xd9\x0a\x4a\x39\x55\x4e\xc1\x4e\xd1\xd1\x1d\x30\x4d\x8a\x49\x41\xcf\x9a\x8a\xe6\x31\x8f\xed\x19\x83\x22\xa2\xef\xdf\xf0\xe9\x07\x3e\xd4\x58\xa9\x80\xc7\xa6\xbd\x22\xf0\xc7\x61\x8d\x3b\xf4\x7e\x44\x4d\xdb\x83\xd9\xe8\xd0\x22\x8d\xe3\x38\x24\xa3\xd9\x8a\xec\x7d\xb8\x02\x91\xe5\xae\xe1\xbb\x96\x17\x59\x4e\xee\xd0\x6a\x0f\xd8\x54\xeb\x80\xd6\xf0\xcf\xfe\xf5\xfd\xbf\xbc\x72\xe1\x8b\x6f\x50\x2c\x03\x89\x0f\xe1\xa7\x73\x81\xa1\x58\xba\x4c\x9c\xc5\x78\x6d\xb4\x1b\xeb\x80\x8e\xcc\xeb\xbd\x02\x6e\xdf\xac\xd6\xc6\xcb\x8f\xc3\x22\x6a\xec\x66\x2f\xe5\xa6\xe4\x66\x24\xdc\x20\x8f\x8c\xb1\x93\xf2\xbc\x3f\x20\xdd\x0e\x3d\xd5\x43\x44\x41\x22\x4e\x3f\xaf\xc2\x4f\x1e\xab\x1d\x9a\xe1\x7c\xb5\xd1\x1d\xce\x2f\x6b\x80\x69\xeb\x0c\xb1\xfa\x04\xa3\x53\xb5\x8e\x9d\xec\x48\x65\x73\x1a\xa9\x74\x5e\x85\xf0\x03\xf9\xe3\x67\xb1\xbc\xce\xcb\x0a\x83\x83\xbc\xe0\x15\xd3\x29\xf7\x5c\xbe\x37\xb1\x79\xeb\x6b\x95\x06\x45\xc8\x3c\x97\xa2\xab\x36\x45\x1e\x1d\x33\xa7\x9c\x29\xe6\x69\xd6\x1d\xfb\xb0\x3d\x36\xce\xa1\xa7\x99\xc7\xda\xd5\xc2\x66\xcf\xce\x3e\x9b\xbd\x57\x23\x6f\x21\x13\xc0\xa1\x3a\xd8\xc4\xae\xff\x5a\x5f\xe7\x98\xb1\x44\x1d\x84\x63\xea\xde\x67\xb2\x3d\x3f\xc7\xa8\xe1\x0d\xca\x04\x64\x42\xa1\x5c\x25\x1c\x1b\x7d\x18\x2a\x51\x4d\x31\xcb\x6a\x97\xff\xd3\xad\x9a\x2b\xce\x6a\xd3\x1c\x19\xee\xaf\x0b\x43\x50\x8c\xc7\xe3\xa9\x71\xe8\xd5\x98\xf3\x6d\xd4\x77\xb3\x7c\x23\xe4\x47\x06\x71\xb1\x8f\x64\xb7\x83\x62\x1c\xc9\x89\x41\xb1\xcb\x8a\xe6\x89\x3d\x1d\x05\x16\x6e\x8b\xbc\x2f\x05\xb6\x62\xdf\xfd\x32\x72\x62\xff\x38\x19\xfe\x96\x88\x65\x4e\x17\x3a\x0e\x1c\xf3\xbe\x3b\x42\x8e\x4c\xea\x6b\xf8\xd7\x04\xf6\x19\x73\xc1\x16\xc3\xdd\x91\x62\x70\x58\x8f\x4a\xbb\xc1\x94\x70\xbf\x23\xad\xb9\x6d\x09\x1f\x10\x31\x33\x34\x0c\xf3\x7a\x6c\xdf\x57\x5c\xf3\x34\x8e\xe7\xed\x28\x9c\xe9\xb2\xf5\xbc\x6e\x10\xd0\x0c\xf0\x06\x53\xfc\x2e\xde\x53\x3d\xf1\x20\xa0\x91\x29\xee\xc3\xb2\x67\x2b\xda\
|
2021-01-08 22:22:43 +03:00
|
|
|
|
},
|
2021-01-16 03:56:35 +03:00
|
|
|
|
"/{{trimSuffix \".proto\" .File.Name}}_micro_http.pb.go.tmpl": &vfsgen۰CompressedFileInfo{
|
|
|
|
|
name: "{{trimSuffix \".proto\" .File.Name}}_micro_http.pb.go.tmpl",
|
2021-01-30 19:34:30 +03:00
|
|
|
|
modTime: time.Date(2021, 1, 30, 14, 58, 58, 406174041, time.UTC),
|
|
|
|
|
uncompressedSize: 7671,
|
2021-01-08 22:22:43 +03:00
|
|
|
|
|
2021-01-30 19:34:30 +03:00
|
|
|
|
compressedContent: []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x02\xff\xcc\x59\x5b\x6f\x9b\xc8\x17\x7f\x66\x3e\xc5\x29\xff\xfc\x2b\x58\xe1\xf1\x43\xdf\x52\xe5\xa1\x1b\xb5\x7b\xd1\xa6\xad\x92\x6a\x5f\xaa\x2a\xa2\xf8\x98\xb0\x81\x81\xcc\x8c\x9d\x44\x64\xbe\xfb\x6a\x2e\x60\xc0\xf8\x16\x37\xbb\xdb\x87\xc6\x1e\xce\xfd\xfa\x63\x3c\x9d\xc2\x79\x39\x43\x48\x91\x21\x8f\x25\xce\xe0\xfb\x23\x54\xbc\x94\x65\x32\x49\x91\x4d\x8a\x2c\xe1\x25\x99\x4e\x41\x94\x0b\x9e\xe0\x29\xd4\x35\xfd\x90\xe5\x48\x3f\xc6\x05\x2a\x45\xaa\x38\xb9\x8d\x53\x84\xba\x4e\xcb\xcf\xb7\xe9\x1f\xb1\x90\xef\x73\x2c\x90\x49\x30\x74\xf0\x04\xa2\xca\x33\xf9\x8e\xf3\xf8\x11\xfc\xb7\x3e\x3c\x41\x1e\x0b\xa9\x14\x21\x59\x51\x95\x5c\x42\x40\x3c\x3f\x29\x99\xc4\x07\xe9\x13\x00\x7f\x5e\x48\x9f\x10\xcf\x68\xbe\x4e\xf2\x4c\xcb\xf2\xd3\x4c\xde\x2c\xbe\xd3\xa4\x2c\xa6\x0b\x96\x09\x19\x27\xb7\x93\x92\xa7\x53\x43\x35\x5d\xbe\x99\x5a\x42\x1f\x1a\x46\x81\x7c\x89\x7c\x0f\x46\x4b\xe8\xf7\x15\x5e\xdf\x48\x59\xed\x60\x9e\x58\xd2\x89\x26\x9d\x2e\xdf\xf8\x24\x24\x64\x19\x73\x08\x08\x00\xc0\x35\x74\xed\xa0\x9f\x2a\x99\x95\xac\xf7\xc4\xb2\x37\x4f\x42\x42\xea\x7a\x02\x27\x26\x68\xa7\x67\x2e\x7a\x4a\xd9\xd3\x2b\xe4\xcb\x2c\x41\x1d\x74\xf3\xd0\x7d\x37\x59\x80\x27\x90\x3c\x2b\xae\x16\xf3\x79\xf6\x00\xbe\x7b\xe4\x6b\x5e\x22\x1f\x2b\x9d\x9b\x1e\xff\x13\xe4\xe5\x3d\xf2\x0f\x19\xd7\x69\x70\x4f\x40\x48\xbe\x48\x24\xd4\xc6\xc4\xa4\x6f\xe2\xb9\xf9\x63\x9e\x30\x2d\x41\x48\x9e\xb1\x94\x28\xa2\x0b\xe3\x42\x53\x82\xcb\x93\x90\x8b\xf9\xdc\x1c\x7f\xc4\xfb\xbe\xde\x95\xaa\x84\x63\x2c\x11\x18\xde\x83\x68\x8e\xac\x86\xf9\x82\x25\x5b\x38\x83\x8e\xf6\x68\xdc\xc8\x10\x36\x69\xb5\x9e\x71\x94\x0b\xce\xe0\xf5\x3e\x31\xa9\x93\x53\x48\x22\xe3\xf2\xa9\xf9\x5f\x69\x97\xeb\x9a\xc7\x2c\xc5\x55\x0e\x2e\x50\xde\x94\xb3\x26\x53\x1c\xef\xec\x81\xc9\xd3\x6f\xac\x5a\xc8\x2f\x3a\x09\xfd\x3e\xa0\x9d\x3e\xb0\x6c\xa2\xea\xb0\x7d\x5a\xc8\xfd\xf8\xb2\x39\xc4\x6c\x06\x01\x2b\x25\xb8\x08\x5c\x49\x8e\x71\x91\xb1\x34\x84\xc0\xd8\x88\xbc\x73\x34\x51\xca\x46\x39\x48\xe0\xa7\x7d\x82\xa0\x03\xea\x9a\x3d\x48\xe4\x03\xb8\x4e\xa5\xe7\xf6\x6f\x04\x1c\xef\x8c\xa4\xd6\x71\xa5\x22\x28\x2b\x29\x80\x52\xda\xcf\x50\x9c\xe7\xb6\xda\x43\x08\x86\x69\xba\x6e\xd5\xb8\xe3\x08\x90\xf3\x92\x87\x26\x71\xda\x57\xcc\x05\x6a\x87\x87\x7e\xbe\x80\x4f\x2f\x66\xfe\x7f\x26\xfc\x86\xa5\xa9\x39\xcd\x32\xb4\x96\xcd\xf4\x00\xd1\x2d\xe3\xea\x4c\x97\x58\xa0\xd5\xc7\x19\x13\x10\xfc\x25\x4a\x06\x41\x59\x21\x8b\xab\xcc\x8a\x05\x1a\x86\xe0\xb3\x45\x9e\xfb\xe1\x80\x79\x8d\x90\x5e\xa2\xa8\x4a\x26\x50\x34\x94\xc8\x79\x11\x57\xba\xfc\x8b\xf8\x16\x83\x22\xae\xbe\xda\x4e\xff\x96\x31\x89\x7c\x1e\x27\x58\xab\x08\xea\x1a\x72\x64\xdb\x04\x2a\x15\xb6\xaa\x6d\xab\x9e\xdc\x46\x70\xb2\xd4\xa2\xf7\xb6\xe3\xab\x5f\xd7\x27\xb7\x4a\xf9\xdf\xe0\x4c\x4f\x8b\x09\x04\x29\xca\x0b\x14\x22\x4e\xd1\x34\xa6\x9d\xd4\x27\x4b\x7a\x95\xdc\x60\x11\xd3\xdf\x45\xc9\xdc\xc7\x4b\x9c\x87\x76\x34\x2b\x55\xaf\xe2\x30\x88\xe9\xe6\xaf\xcc\xe4\xef\xf4\x0c\xe2\xaa\x42\x36\x0b\xf4\xd7\xc8\x3c\x01\x58\xdb\x52\x6e\xfe\x04\x7e\x5d\xeb\xaf\x7f\x22\xff\x0e\x54\x29\x3f\x8c\x60\x23\xcb\xe7\x58\xde\x34\x0c\xfa\xb3\x63\x70\xf4\xe3\x09\xd7\xb4\x3f\x97\xb3\x47\xa0\x21\xf8\xbf\xbc\xff\xb2\xca\xf1\x98\x06\x4d\xd9\x68\xb0\x5c\x43\x0d\x1d\x7f\x8f\xac\xb1\x43\xaa\x6c\xcc\xd6\xf7\xba\xf4\x2f\xe2\x2a\xb0\xa9\xdf\x6e\x65\xe7\x20\x24\xad\xe6\x92\x8f\x0d\xdb\x60\x6d\x24\x3b\x4e\x61\x0e\x4c\xd3\xe9\x34\x27\x34\xa1\x96\x46\xf7\x78\x64\xbe\x7f\xc4\xfb\x4b\xbc\x5b\xa0\x90\x41\x42\xf5\xf2\x89\xc0\x1f\x0e\x1d\xda\xce\x06\x3f\x32\x2b\xad\x33\x04\x6a\x15\x46\xb6\x90\x28\xa5\xb6\x21\xb2\xb9\x51\xf8\xea\x0c\x58\x96\xbb\x7d\xd8\x6e\x44\x96\xe5\xc6\x1e\x73\xaa\x48\x2f\x25\x6b\x13\x57\x29\xf8\x67\xff\x75\xed\x3f\x3d\x73\xf1\xa3\x57\xba\x39\x38\xde\x85\x6f\x0f\x75\x0c\xd9\xcc\xa5\xe2\x20\x40\xd0\x84\xbb\xb6\x06\xa8\x48\x4b\xef\xcc\xf7\x46\xa6\x30\x73\xec\x75\x7f\xc6\xd6\xed\x7c\x69\x72\xae\x27\xf2\x11\x19\xd7\x9e\x47\x5a\xd9\x7e\x89\xde\x1c\x91\xf6\x89\x95\xb5\x72\xc9\x44\xc9\x60\x9e\xc3\x6a\x7c\x6f\xd8\xd9\xba\xd3\xc7\x9f\x36\xbc\x7d\x7c\x67\x15\x10\x65\x8d\x31\xa8\x67\x04\xf1\x98\x72\x1d\x1a\xd9\x2e\xdd\x87\xfd\x96\x6e\x6b\x55\x08\x97\x98\x2c\xdf\xb1\
|
2021-01-08 22:22:43 +03:00
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
fs["/"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
|
2021-01-19 12:43:37 +03:00
|
|
|
|
fs["/micro_chi.pb.go.tmpl"].(os.FileInfo),
|
|
|
|
|
fs["/micro_gorilla.pb.go.tmpl"].(os.FileInfo),
|
2021-01-16 03:56:35 +03:00
|
|
|
|
fs["/{{trimSuffix \".proto\" .File.Name}}_micro.pb.go.tmpl"].(os.FileInfo),
|
|
|
|
|
fs["/{{trimSuffix \".proto\" .File.Name}}_micro_grpc.pb.go.tmpl"].(os.FileInfo),
|
|
|
|
|
fs["/{{trimSuffix \".proto\" .File.Name}}_micro_http.pb.go.tmpl"].(os.FileInfo),
|
2021-01-08 22:22:43 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return fs
|
|
|
|
|
}()
|
|
|
|
|
|
|
|
|
|
type vfsgen۰FS map[string]interface{}
|
|
|
|
|
|
|
|
|
|
func (fs vfsgen۰FS) Open(path string) (http.File, error) {
|
|
|
|
|
path = pathpkg.Clean("/" + path)
|
|
|
|
|
f, ok := fs[path]
|
|
|
|
|
if !ok {
|
|
|
|
|
return nil, &os.PathError{Op: "open", Path: path, Err: os.ErrNotExist}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch f := f.(type) {
|
|
|
|
|
case *vfsgen۰CompressedFileInfo:
|
|
|
|
|
gr, err := gzip.NewReader(bytes.NewReader(f.compressedContent))
|
|
|
|
|
if err != nil {
|
|
|
|
|
// This should never happen because we generate the gzip bytes such that they are always valid.
|
|
|
|
|
panic("unexpected error reading own gzip compressed bytes: " + err.Error())
|
|
|
|
|
}
|
|
|
|
|
return &vfsgen۰CompressedFile{
|
|
|
|
|
vfsgen۰CompressedFileInfo: f,
|
|
|
|
|
gr: gr,
|
|
|
|
|
}, nil
|
|
|
|
|
case *vfsgen۰DirInfo:
|
|
|
|
|
return &vfsgen۰Dir{
|
|
|
|
|
vfsgen۰DirInfo: f,
|
|
|
|
|
}, nil
|
|
|
|
|
default:
|
|
|
|
|
// This should never happen because we generate only the above types.
|
|
|
|
|
panic(fmt.Sprintf("unexpected type %T", f))
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// vfsgen۰CompressedFileInfo is a static definition of a gzip compressed file.
|
|
|
|
|
type vfsgen۰CompressedFileInfo struct {
|
|
|
|
|
name string
|
|
|
|
|
modTime time.Time
|
|
|
|
|
compressedContent []byte
|
|
|
|
|
uncompressedSize int64
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Readdir(count int) ([]os.FileInfo, error) {
|
|
|
|
|
return nil, fmt.Errorf("cannot Readdir from file %s", f.name)
|
|
|
|
|
}
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Stat() (os.FileInfo, error) { return f, nil }
|
|
|
|
|
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) GzipBytes() []byte {
|
|
|
|
|
return f.compressedContent
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Name() string { return f.name }
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Size() int64 { return f.uncompressedSize }
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Mode() os.FileMode { return 0444 }
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) ModTime() time.Time { return f.modTime }
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) IsDir() bool { return false }
|
|
|
|
|
func (f *vfsgen۰CompressedFileInfo) Sys() interface{} { return nil }
|
|
|
|
|
|
|
|
|
|
// vfsgen۰CompressedFile is an opened compressedFile instance.
|
|
|
|
|
type vfsgen۰CompressedFile struct {
|
|
|
|
|
*vfsgen۰CompressedFileInfo
|
|
|
|
|
gr *gzip.Reader
|
|
|
|
|
grPos int64 // Actual gr uncompressed position.
|
|
|
|
|
seekPos int64 // Seek uncompressed position.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f *vfsgen۰CompressedFile) Read(p []byte) (n int, err error) {
|
|
|
|
|
if f.grPos > f.seekPos {
|
|
|
|
|
// Rewind to beginning.
|
|
|
|
|
err = f.gr.Reset(bytes.NewReader(f.compressedContent))
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
f.grPos = 0
|
|
|
|
|
}
|
|
|
|
|
if f.grPos < f.seekPos {
|
|
|
|
|
// Fast-forward.
|
|
|
|
|
_, err = io.CopyN(ioutil.Discard, f.gr, f.seekPos-f.grPos)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return 0, err
|
|
|
|
|
}
|
|
|
|
|
f.grPos = f.seekPos
|
|
|
|
|
}
|
|
|
|
|
n, err = f.gr.Read(p)
|
|
|
|
|
f.grPos += int64(n)
|
|
|
|
|
f.seekPos = f.grPos
|
|
|
|
|
return n, err
|
|
|
|
|
}
|
|
|
|
|
func (f *vfsgen۰CompressedFile) Seek(offset int64, whence int) (int64, error) {
|
|
|
|
|
switch whence {
|
|
|
|
|
case io.SeekStart:
|
|
|
|
|
f.seekPos = 0 + offset
|
|
|
|
|
case io.SeekCurrent:
|
|
|
|
|
f.seekPos += offset
|
|
|
|
|
case io.SeekEnd:
|
|
|
|
|
f.seekPos = f.uncompressedSize + offset
|
|
|
|
|
default:
|
|
|
|
|
panic(fmt.Errorf("invalid whence value: %v", whence))
|
|
|
|
|
}
|
|
|
|
|
return f.seekPos, nil
|
|
|
|
|
}
|
|
|
|
|
func (f *vfsgen۰CompressedFile) Close() error {
|
|
|
|
|
return f.gr.Close()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// vfsgen۰DirInfo is a static definition of a directory.
|
|
|
|
|
type vfsgen۰DirInfo struct {
|
|
|
|
|
name string
|
|
|
|
|
modTime time.Time
|
|
|
|
|
entries []os.FileInfo
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (d *vfsgen۰DirInfo) Read([]byte) (int, error) {
|
|
|
|
|
return 0, fmt.Errorf("cannot Read from directory %s", d.name)
|
|
|
|
|
}
|
|
|
|
|
func (d *vfsgen۰DirInfo) Close() error { return nil }
|
|
|
|
|
func (d *vfsgen۰DirInfo) Stat() (os.FileInfo, error) { return d, nil }
|
|
|
|
|
|
|
|
|
|
func (d *vfsgen۰DirInfo) Name() string { return d.name }
|
|
|
|
|
func (d *vfsgen۰DirInfo) Size() int64 { return 0 }
|
|
|
|
|
func (d *vfsgen۰DirInfo) Mode() os.FileMode { return 0755 | os.ModeDir }
|
|
|
|
|
func (d *vfsgen۰DirInfo) ModTime() time.Time { return d.modTime }
|
|
|
|
|
func (d *vfsgen۰DirInfo) IsDir() bool { return true }
|
|
|
|
|
func (d *vfsgen۰DirInfo) Sys() interface{} { return nil }
|
|
|
|
|
|
|
|
|
|
// vfsgen۰Dir is an opened dir instance.
|
|
|
|
|
type vfsgen۰Dir struct {
|
|
|
|
|
*vfsgen۰DirInfo
|
|
|
|
|
pos int // Position within entries for Seek and Readdir.
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (d *vfsgen۰Dir) Seek(offset int64, whence int) (int64, error) {
|
|
|
|
|
if offset == 0 && whence == io.SeekStart {
|
|
|
|
|
d.pos = 0
|
|
|
|
|
return 0, nil
|
|
|
|
|
}
|
|
|
|
|
return 0, fmt.Errorf("unsupported Seek in directory %s", d.name)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (d *vfsgen۰Dir) Readdir(count int) ([]os.FileInfo, error) {
|
|
|
|
|
if d.pos >= len(d.entries) && count > 0 {
|
|
|
|
|
return nil, io.EOF
|
|
|
|
|
}
|
|
|
|
|
if count <= 0 || count > len(d.entries)-d.pos {
|
|
|
|
|
count = len(d.entries) - d.pos
|
|
|
|
|
}
|
|
|
|
|
e := d.entries[d.pos : d.pos+count]
|
|
|
|
|
d.pos += count
|
|
|
|
|
return e, nil
|
|
|
|
|
}
|