updated vmail (merge back and frontend, misc changes)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
377f9f6e4b
commit
1f0d63b2a7
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
/vmail
|
/vmail
|
||||||
*.ini
|
*.ini
|
||||||
|
/cmd/vmail/packrd
|
||||||
|
main-packr.go
|
3
cmd/vmail/version.go
Normal file
3
cmd/vmail/version.go
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
var version = "dev"
|
@ -1,3 +1,6 @@
|
|||||||
|
//go:generate go run github.com/gobuffalo/packr/v2/packr2@latest -v
|
||||||
|
//go:generate ../../scripts/version.sh
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -7,10 +10,10 @@ import (
|
|||||||
"git.paulbsd.com/paulbsd/vmail/src/config"
|
"git.paulbsd.com/paulbsd/vmail/src/config"
|
||||||
"git.paulbsd.com/paulbsd/vmail/src/database"
|
"git.paulbsd.com/paulbsd/vmail/src/database"
|
||||||
"git.paulbsd.com/paulbsd/vmail/src/routers"
|
"git.paulbsd.com/paulbsd/vmail/src/routers"
|
||||||
|
"github.com/gobuffalo/packr/v2"
|
||||||
|
_ "github.com/gobuffalo/packr/v2/file/resolver"
|
||||||
)
|
)
|
||||||
|
|
||||||
var version string
|
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var cfg config.Config
|
var cfg config.Config
|
||||||
var ctx context.Context
|
var ctx context.Context
|
||||||
@ -19,11 +22,13 @@ func main() {
|
|||||||
cfg.GetConfig()
|
cfg.GetConfig()
|
||||||
cfg.Version = version
|
cfg.Version = version
|
||||||
|
|
||||||
|
packr.New("static", "../../frontend/dist")
|
||||||
|
|
||||||
err = database.Initialize(&ctx, &cfg)
|
err = database.Initialize(&ctx, &cfg)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
defer cfg.Db.Close()
|
defer cfg.Db.Close()
|
||||||
|
|
||||||
err = routers.RunServer(&ctx, &cfg)
|
routers.RunServer(&ctx, &cfg)
|
||||||
}
|
}
|
||||||
|
22
frontend/.gitignore
vendored
Normal file
22
frontend/.gitignore
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
/dist
|
||||||
|
|
||||||
|
# local env files
|
||||||
|
.env.local
|
||||||
|
.env.*.local
|
||||||
|
|
||||||
|
# Log files
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.idea
|
||||||
|
.vscode
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
24
frontend/README.md
Normal file
24
frontend/README.md
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# vmail-ui
|
||||||
|
|
||||||
|
## Project setup
|
||||||
|
```
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and hot-reloads for development
|
||||||
|
```
|
||||||
|
npm run serve
|
||||||
|
```
|
||||||
|
|
||||||
|
### Compiles and minifies for production
|
||||||
|
```
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
### Lints and fixes files
|
||||||
|
```
|
||||||
|
npm run lint
|
||||||
|
```
|
||||||
|
|
||||||
|
### Customize configuration
|
||||||
|
See [Configuration Reference](https://cli.vuejs.org/config/).
|
5
frontend/babel.config.js
Normal file
5
frontend/babel.config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
presets: [
|
||||||
|
'@vue/cli-plugin-babel/preset'
|
||||||
|
]
|
||||||
|
}
|
27252
frontend/package-lock.json
generated
Normal file
27252
frontend/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
52
frontend/package.json
Normal file
52
frontend/package.json
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"name": "vmail-ui",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"serve": "vue-cli-service serve",
|
||||||
|
"build": "vue-cli-service build",
|
||||||
|
"lint": "vue-cli-service lint"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@mdi/font": "^5.9.55",
|
||||||
|
"axios": "^0.19.2",
|
||||||
|
"caniuse-lite": "^1.0.30001292",
|
||||||
|
"core-js": "^3.20.1",
|
||||||
|
"vue": "^2.6.14",
|
||||||
|
"vue-router": "^3.5.3",
|
||||||
|
"vuetify": "^2.6.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@vue/cli-plugin-babel": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-eslint": "~4.4.0",
|
||||||
|
"@vue/cli-plugin-router": "^4.5.15",
|
||||||
|
"@vue/cli-service": "^4.5.15",
|
||||||
|
"babel-eslint": "^10.1.0",
|
||||||
|
"eslint": "^6.7.2",
|
||||||
|
"eslint-plugin-vue": "^6.2.2",
|
||||||
|
"sass": "^1.45.1",
|
||||||
|
"sass-loader": "^8.0.0",
|
||||||
|
"vue-cli-plugin-vuetify": "^2.4.5",
|
||||||
|
"vue-template-compiler": "^2.6.14",
|
||||||
|
"vuetify-loader": "^1.7.3"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"root": true,
|
||||||
|
"env": {
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:vue/essential",
|
||||||
|
"eslint:recommended"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"parser": "babel-eslint"
|
||||||
|
},
|
||||||
|
"rules": {}
|
||||||
|
},
|
||||||
|
"browserslist": [
|
||||||
|
"> 1%",
|
||||||
|
"last 2 versions",
|
||||||
|
"not dead"
|
||||||
|
]
|
||||||
|
}
|
BIN
frontend/public/favicon.ico
Normal file
BIN
frontend/public/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
24
frontend/public/index.html
Normal file
24
frontend/public/index.html
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
|
<title><%= htmlWebpackPlugin.options.title %></title>
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
|
||||||
|
<link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet">
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900">
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>
|
||||||
|
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
|
||||||
|
</noscript>
|
||||||
|
<div id="app"></div>
|
||||||
|
<!-- built files will be auto injected -->
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
95
frontend/src/App.vue
Normal file
95
frontend/src/App.vue
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
<template>
|
||||||
|
<v-app>
|
||||||
|
<div id="app">
|
||||||
|
<div id="nav">
|
||||||
|
<div class="routers">
|
||||||
|
<v-icon small>mdi-home</v-icon>
|
||||||
|
<router-link to="/">Home</router-link>
|
||||||
|
</div>
|
||||||
|
<div class="routers">
|
||||||
|
<v-icon small>mdi-account-settings</v-icon>
|
||||||
|
<router-link to="/admin">Admins</router-link>
|
||||||
|
</div>
|
||||||
|
<div class="routers">
|
||||||
|
<v-icon small>mdi-email-box</v-icon>
|
||||||
|
<router-link to="/mailbox">Mailboxes</router-link>
|
||||||
|
</div>
|
||||||
|
<div class="routers">
|
||||||
|
<v-icon small>mdi-at</v-icon>
|
||||||
|
<router-link to="/alias">Aliases</router-link>
|
||||||
|
</div>
|
||||||
|
<div class="routers">
|
||||||
|
<v-icon small>mdi-format-list-checkbox</v-icon>
|
||||||
|
<router-link to="/logs">Logs</router-link>
|
||||||
|
</div>
|
||||||
|
<div id="menu">
|
||||||
|
<Menu />
|
||||||
|
</div>
|
||||||
|
<div id="view">
|
||||||
|
<router-view :vmailapi="vmailapi" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import VmailApi from "@/classes/vmailapi.js";
|
||||||
|
import Menu from "@/components/menu.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "App",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
config: {
|
||||||
|
apiurl: "http://localhost:9000",
|
||||||
|
},
|
||||||
|
vmailapi: VmailApi,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
Menu,
|
||||||
|
},
|
||||||
|
mounted: function () {
|
||||||
|
this.vmailapi = new VmailApi(this.config.apiurl);
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
#app {
|
||||||
|
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
/*text-align: center;*/
|
||||||
|
color: #2c4e50;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav {
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#view {
|
||||||
|
padding-top: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a {
|
||||||
|
font-weight: bold;
|
||||||
|
color: #151d25;
|
||||||
|
}
|
||||||
|
|
||||||
|
#nav a.router-link-exact-active {
|
||||||
|
color: #0fb1e2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
.routers {
|
||||||
|
float: left;
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
}
|
||||||
|
</style>
|
13
frontend/src/classes/vmailapi.js
Normal file
13
frontend/src/classes/vmailapi.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
export default class VmailApi {
|
||||||
|
constructor(url) {
|
||||||
|
this.url = url;
|
||||||
|
}
|
||||||
|
|
||||||
|
Auth() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
GetUrl() {
|
||||||
|
return this.url;
|
||||||
|
}
|
||||||
|
}
|
34
frontend/src/classes/vmailobject.js
Normal file
34
frontend/src/classes/vmailobject.js
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import Axios from "axios";
|
||||||
|
import VmailApi from "@/classes/vmailapi.js"
|
||||||
|
|
||||||
|
export default class VmailObject {
|
||||||
|
constructor(url, objecttype, readonly) {
|
||||||
|
this.vmailapi = new VmailApi(url);
|
||||||
|
this.apipath = `/api/${objecttype}`;
|
||||||
|
this.readonly = readonly;
|
||||||
|
}
|
||||||
|
|
||||||
|
GetModel() {
|
||||||
|
return Axios.get(this.vmailapi.GetUrl() + this.apipath + "/" + "model")
|
||||||
|
}
|
||||||
|
|
||||||
|
GetList() {
|
||||||
|
return Axios.get(this.vmailapi.GetUrl() + this.apipath)
|
||||||
|
}
|
||||||
|
|
||||||
|
GetItem(id) {
|
||||||
|
return Axios.get(this.vmailapi.GetUrl() + this.apipath + "/" + id)
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateItem(data) {
|
||||||
|
return Axios.post(this.vmailapi.GetUrl() + this.apipath, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
ModifyItem(id, data) {
|
||||||
|
return Axios.put(this.vmailapi.GetUrl() + this.apipath + "/" + id, data)
|
||||||
|
}
|
||||||
|
|
||||||
|
DeleteItem(id) {
|
||||||
|
return Axios.delete(this.vmailapi.GetUrl() + this.apipath + "/" + id)
|
||||||
|
}
|
||||||
|
}
|
0
frontend/src/components/create.vue
Normal file
0
frontend/src/components/create.vue
Normal file
158
frontend/src/components/list.vue
Normal file
158
frontend/src/components/list.vue
Normal file
@ -0,0 +1,158 @@
|
|||||||
|
<template>
|
||||||
|
<div class="list">
|
||||||
|
<v-data-table
|
||||||
|
:headers="headers"
|
||||||
|
:items="itemlist"
|
||||||
|
:items-per-page="20"
|
||||||
|
class="elevation-1"
|
||||||
|
>
|
||||||
|
<template v-slot:[`item.active`]="{ item }">
|
||||||
|
<v-simple-checkbox v-model="item.active" disabled></v-simple-checkbox>
|
||||||
|
</template>
|
||||||
|
<template v-slot:[`item.superadmin`]="{ item }">
|
||||||
|
<v-simple-checkbox
|
||||||
|
v-model="item.superadmin"
|
||||||
|
disabled
|
||||||
|
></v-simple-checkbox>
|
||||||
|
</template>
|
||||||
|
<template v-slot:[`item.actions`]="{ item }">
|
||||||
|
<v-icon small @click="editItem(item)">mdi-pencil</v-icon>
|
||||||
|
<v-icon small @click="deleteItem(item)">mdi-delete</v-icon>
|
||||||
|
</template>
|
||||||
|
</v-data-table>
|
||||||
|
<v-dialog v-model="dialog" max-width="500px">
|
||||||
|
<v-card>
|
||||||
|
<v-card-title>
|
||||||
|
<span class="headline">{{ formTitle }}</span>
|
||||||
|
</v-card-title>
|
||||||
|
<v-card-text>
|
||||||
|
<v-container>
|
||||||
|
Edit Entry
|
||||||
|
<v-row v-for="item in headers" :key="item">
|
||||||
|
<template v-if="item.editable">
|
||||||
|
<v-col cols="16" sm="8" md="6">
|
||||||
|
<v-checkbox
|
||||||
|
v-if="typeof editedItem[item.value] == 'boolean'"
|
||||||
|
v-model="editedItem[item.value]"
|
||||||
|
v-bind:label="item.text"
|
||||||
|
></v-checkbox>
|
||||||
|
<v-text-field
|
||||||
|
v-if="typeof editedItem[item.value] == 'string'"
|
||||||
|
v-model="editedItem[item.value]"
|
||||||
|
v-bind:label="item.text"
|
||||||
|
></v-text-field>
|
||||||
|
</v-col>
|
||||||
|
</template>
|
||||||
|
</v-row>
|
||||||
|
</v-container>
|
||||||
|
</v-card-text>
|
||||||
|
<v-card-actions>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
<v-btn color="blue darken-1" text @click="close">Cancel</v-btn>
|
||||||
|
<v-btn color="blue darken-1" text @click="save">Save</v-btn>
|
||||||
|
</v-card-actions>
|
||||||
|
</v-card>
|
||||||
|
</v-dialog>
|
||||||
|
<v-snackbar v-model="snackbarshow" :timeout="snackbartimeout">
|
||||||
|
{{ snackbartext }}
|
||||||
|
|
||||||
|
<template v-slot:action="{ attrs }">
|
||||||
|
<v-btn color="blue" text v-bind="attrs" @click="snackbarshow = false">
|
||||||
|
Close
|
||||||
|
</v-btn>
|
||||||
|
</template>
|
||||||
|
</v-snackbar>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "List",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
snackbarshow: false,
|
||||||
|
snackbartext: "",
|
||||||
|
snackbartimeout: 10000,
|
||||||
|
colsize: 3,
|
||||||
|
editedItem: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
position() {
|
||||||
|
return this.itemlist.length() + 1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/*createItem(name) {
|
||||||
|
this.editedIndex = this.itemlist.indexOf(item);
|
||||||
|
this.editedItem = Object.assign({}, item);
|
||||||
|
this.dialog = true;
|
||||||
|
},*/
|
||||||
|
editItem(item) {
|
||||||
|
this.editedIndex = this.itemlist.indexOf(item);
|
||||||
|
this.editedItem = Object.assign({}, item);
|
||||||
|
this.dialog = true;
|
||||||
|
},
|
||||||
|
deleteItem(item) {
|
||||||
|
const index = this.itemlist.indexOf(item);
|
||||||
|
// Assuming that first elem of item is the primary key
|
||||||
|
confirm("Are you sure you want to delete this item?") &&
|
||||||
|
this.object.DeleteItem(item[Object.keys(item)[0]]).then(() => {
|
||||||
|
this.itemlist.splice(index, 1);
|
||||||
|
});
|
||||||
|
},
|
||||||
|
close() {
|
||||||
|
this.dialog = false;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.editedItem = Object.assign({}, this.defaultItem);
|
||||||
|
this.editedIndex = -1;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
save() {
|
||||||
|
if (this.editedIndex > -1) {
|
||||||
|
Object.assign(this.itemlist[this.editedIndex], this.editedItem);
|
||||||
|
} else {
|
||||||
|
this.itemlist.push(this.editedItem);
|
||||||
|
}
|
||||||
|
this.snackbartext = "";
|
||||||
|
this.object
|
||||||
|
.ModifyItem(this.editedItem.id, this.editedItem)
|
||||||
|
.then((response) => {
|
||||||
|
this.snackbarshow = true;
|
||||||
|
if (response.status == 200) {
|
||||||
|
this.snackbartext = `${
|
||||||
|
this.itemlist[0][this.$parent.attrs[0].value]
|
||||||
|
} saved`;
|
||||||
|
} else {
|
||||||
|
this.snackbartext = `error occured when saving ${
|
||||||
|
this.itemlist[0][this.$parent.attrs[0].value]
|
||||||
|
}`;
|
||||||
|
}
|
||||||
|
this.$parent.RefreshData();
|
||||||
|
});
|
||||||
|
this.close();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
props: ["headers", "itemlist", "object"],
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
h3 {
|
||||||
|
margin: 40px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
display: inline-block;
|
||||||
|
margin: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: #42b983;
|
||||||
|
}
|
||||||
|
</style>
|
56
frontend/src/components/menu.vue
Normal file
56
frontend/src/components/menu.vue
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
<template>
|
||||||
|
<div class="text-center">
|
||||||
|
<v-menu offset-y>
|
||||||
|
<template v-slot:activator="{ on, attrs }">
|
||||||
|
<v-btn color="primary" dark v-bind="attrs" v-on="on"> Create </v-btn>
|
||||||
|
</template>
|
||||||
|
<v-list>
|
||||||
|
<v-list-item
|
||||||
|
v-for="(item, index) in items"
|
||||||
|
:key="index"
|
||||||
|
@click="opendialog(item.dest)"
|
||||||
|
link
|
||||||
|
>
|
||||||
|
<v-list-item-title>{{ item.title }}</v-list-item-title>
|
||||||
|
</v-list-item>
|
||||||
|
</v-list>
|
||||||
|
</v-menu>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vmailobject from "@/classes/vmailobject.js";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Menu",
|
||||||
|
data: () => ({
|
||||||
|
items: [
|
||||||
|
{
|
||||||
|
title: "Admin",
|
||||||
|
dest: "admin",
|
||||||
|
cls: Vmailobject,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Alias",
|
||||||
|
dest: "alias",
|
||||||
|
cls: Vmailobject,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Domain",
|
||||||
|
dest: "domain",
|
||||||
|
cls: Vmailobject,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Mailbox",
|
||||||
|
dest: "mailbox",
|
||||||
|
cls: Vmailobject,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
|
methods: {
|
||||||
|
opendialog(item) {
|
||||||
|
console.log(item);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
23
frontend/src/main.js
Normal file
23
frontend/src/main.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import App from './App.vue'
|
||||||
|
import routes from './router'
|
||||||
|
import VueRouter from 'vue-router';
|
||||||
|
import Vuetify from 'vuetify/lib';
|
||||||
|
|
||||||
|
Vue.config.productionTip = false;
|
||||||
|
Vue.config.silent = true;
|
||||||
|
|
||||||
|
Vue.use(VueRouter);
|
||||||
|
Vue.use(Vuetify);
|
||||||
|
|
||||||
|
const router = new VueRouter({
|
||||||
|
routes
|
||||||
|
})
|
||||||
|
|
||||||
|
const vuetify = new Vuetify();
|
||||||
|
|
||||||
|
new Vue({
|
||||||
|
router,
|
||||||
|
vuetify,
|
||||||
|
render: h => h(App)
|
||||||
|
}).$mount('#app')
|
29
frontend/src/router/index.js
Normal file
29
frontend/src/router/index.js
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
import Home from '../views/Home.vue'
|
||||||
|
import Admin from '../views/Admin.vue'
|
||||||
|
import Mailbox from '../views/Mailbox.vue'
|
||||||
|
import Alias from '../views/Alias.vue'
|
||||||
|
import Logs from '../views/Logs.vue'
|
||||||
|
|
||||||
|
const routes = [{
|
||||||
|
path: '/',
|
||||||
|
component: Home,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/admin',
|
||||||
|
component: Admin,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/alias',
|
||||||
|
component: Alias,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/mailbox',
|
||||||
|
component: Mailbox,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/logs',
|
||||||
|
component: Logs,
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
export default routes
|
83
frontend/src/views/Admin.vue
Normal file
83
frontend/src/views/Admin.vue
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
<template>
|
||||||
|
<div class="admin">
|
||||||
|
<List :headers="attrs" :itemlist="itemlist" :object="admin" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vmailobject from "@/classes/vmailobject.js";
|
||||||
|
import List from "@/components/list.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Admins",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
attrs: [
|
||||||
|
{
|
||||||
|
text: "Username",
|
||||||
|
value: "username",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Created",
|
||||||
|
value: "created",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Modified",
|
||||||
|
value: "modified",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Active",
|
||||||
|
value: "active",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Super administrator",
|
||||||
|
value: "superadmin",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Actions",
|
||||||
|
value: "actions",
|
||||||
|
sortable: false,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
itemlist: [],
|
||||||
|
item: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
List,
|
||||||
|
},
|
||||||
|
props: ["vmailapi"],
|
||||||
|
mounted() {
|
||||||
|
this.admin = new Vmailobject(this.vmailapi.GetUrl(), this.$el.className);
|
||||||
|
this.RefreshData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
RefreshData() {
|
||||||
|
this.admin.GetList().then((response) => {
|
||||||
|
this.itemlist = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ModifyItem(id, item) {
|
||||||
|
this.admin.ModifyItem(id, item).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
DeleteItem(id) {
|
||||||
|
this.admin.DeleteItem(id).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
89
frontend/src/views/Alias.vue
Normal file
89
frontend/src/views/Alias.vue
Normal file
@ -0,0 +1,89 @@
|
|||||||
|
<template>
|
||||||
|
<div class="alias">
|
||||||
|
<List :headers="attrs" :itemlist="itemlist" :object="alias" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vmailobject from "@/classes/vmailobject.js";
|
||||||
|
import List from "@/components/list.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Alias",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
attrs: [
|
||||||
|
{
|
||||||
|
text: "Address",
|
||||||
|
value: "address",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Destination",
|
||||||
|
value: "goto",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Domain",
|
||||||
|
value: "domain",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Created",
|
||||||
|
value: "created",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Modified",
|
||||||
|
value: "modified",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Active",
|
||||||
|
value: "active",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Actions",
|
||||||
|
value: "actions",
|
||||||
|
sortable: false,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
itemlist: [],
|
||||||
|
item: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
List,
|
||||||
|
},
|
||||||
|
props: ["vmailapi"],
|
||||||
|
mounted() {
|
||||||
|
this.alias = new Vmailobject(this.vmailapi.GetUrl(), this.$el.className);
|
||||||
|
this.RefreshData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
RefreshData() {
|
||||||
|
this.alias.GetList().then((response) => {
|
||||||
|
this.itemlist = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ModifyItem(id, item) {
|
||||||
|
this.alias.ModifyItem(id, item).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
DeleteItem(id) {
|
||||||
|
this.alias.DeleteItem(id).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
18
frontend/src/views/Home.vue
Normal file
18
frontend/src/views/Home.vue
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<template>
|
||||||
|
<div class="Home">
|
||||||
|
<h1>Vmail Application</h1>
|
||||||
|
Here is Vmail app, which provides administration of ressources relative to
|
||||||
|
dovecot and postfix
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "Home",
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
components: {},
|
||||||
|
props: ["vmailapi"],
|
||||||
|
};
|
||||||
|
</script>
|
57
frontend/src/views/Logs.vue
Normal file
57
frontend/src/views/Logs.vue
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
<template>
|
||||||
|
<div class="logs">
|
||||||
|
<List :headers="attrs" :itemlist="itemlist" :object="log" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vmailobject from "@/classes/vmailobject.js";
|
||||||
|
import List from "@/components/list.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Logs",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
attrs: [
|
||||||
|
{
|
||||||
|
text: "Date",
|
||||||
|
value: "timestamp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Username / IP",
|
||||||
|
value: "username",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Domain",
|
||||||
|
value: "domain",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Action",
|
||||||
|
value: "action",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Modified Data",
|
||||||
|
value: "data",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
itemlist: [],
|
||||||
|
item: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
List,
|
||||||
|
},
|
||||||
|
props: ["vmailapi"],
|
||||||
|
mounted() {
|
||||||
|
this.log = new Vmailobject(this.vmailapi.GetUrl(), this.$el.className);
|
||||||
|
this.RefreshData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
RefreshData() {
|
||||||
|
this.log.GetList().then((response) => {
|
||||||
|
this.itemlist = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
107
frontend/src/views/Mailbox.vue
Normal file
107
frontend/src/views/Mailbox.vue
Normal file
@ -0,0 +1,107 @@
|
|||||||
|
<template>
|
||||||
|
<div class="mailbox">
|
||||||
|
<List :headers="attrs" :itemlist="itemlist" :object="mailbox" />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Vmailobject from "@/classes/vmailobject.js";
|
||||||
|
import List from "@/components/list.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "Mailbox",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
attrs: [
|
||||||
|
{
|
||||||
|
text: "Username",
|
||||||
|
value: "username",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Name",
|
||||||
|
value: "name",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Mail directory",
|
||||||
|
value: "maildir",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Quota",
|
||||||
|
value: "quota",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Created",
|
||||||
|
value: "created",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Modified",
|
||||||
|
value: "modified",
|
||||||
|
sortable: true,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Active",
|
||||||
|
value: "active",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Domain",
|
||||||
|
value: "domain",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Email local part",
|
||||||
|
value: "localpart",
|
||||||
|
sortable: true,
|
||||||
|
editable: true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
text: "Actions",
|
||||||
|
value: "actions",
|
||||||
|
sortable: false,
|
||||||
|
editable: false,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
itemlist: [],
|
||||||
|
item: {},
|
||||||
|
};
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
List,
|
||||||
|
},
|
||||||
|
props: ["vmailapi"],
|
||||||
|
mounted() {
|
||||||
|
this.mailbox = new Vmailobject(this.vmailapi.GetUrl(), this.$el.className);
|
||||||
|
this.RefreshData();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
RefreshData() {
|
||||||
|
this.mailbox.GetList().then((response) => {
|
||||||
|
this.itemlist = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
ModifyItem(id, item) {
|
||||||
|
this.mailbox.ModifyItem(id, item).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
DeleteItem(id) {
|
||||||
|
this.mailbox.DeleteItem(id).then((response) => {
|
||||||
|
return response;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
5
frontend/vue.config.js
Normal file
5
frontend/vue.config.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
module.exports = {
|
||||||
|
"transpileDependencies": [
|
||||||
|
"vuetify"
|
||||||
|
]
|
||||||
|
}
|
38
go.mod
38
go.mod
@ -4,28 +4,38 @@ go 1.17
|
|||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/golang/snappy v0.0.4 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/labstack/echo/v4 v4.5.0
|
github.com/labstack/echo/v4 v4.6.1
|
||||||
github.com/lib/pq v1.10.2
|
github.com/lib/pq v1.10.4
|
||||||
github.com/mattn/go-colorable v0.1.8 // indirect
|
github.com/mattn/go-colorable v0.1.12 // indirect
|
||||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 // indirect
|
||||||
golang.org/x/net v0.0.0-20210825183410-e898025ed96a // indirect
|
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f // indirect
|
||||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
|
||||||
golang.org/x/text v0.3.7 // indirect
|
golang.org/x/text v0.3.7 // indirect
|
||||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
|
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
|
||||||
gopkg.in/ini.v1 v1.62.0
|
gopkg.in/ini.v1 v1.66.2
|
||||||
xorm.io/builder v0.3.9 // indirect
|
xorm.io/builder v0.3.9 // indirect
|
||||||
xorm.io/xorm v1.2.3
|
xorm.io/xorm v1.2.5
|
||||||
)
|
)
|
||||||
|
|
||||||
|
require github.com/gobuffalo/packr/v2 v2.8.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/goccy/go-json v0.7.7 // indirect
|
github.com/gobuffalo/logger v1.0.6 // indirect
|
||||||
|
github.com/gobuffalo/packd v1.0.1 // indirect
|
||||||
|
github.com/goccy/go-json v0.8.1 // indirect
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
||||||
github.com/json-iterator/go v1.1.11 // indirect
|
github.com/json-iterator/go v1.1.12 // indirect
|
||||||
github.com/labstack/gommon v0.3.0 // indirect
|
github.com/karrick/godirwalk v1.16.1 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.13 // indirect
|
github.com/labstack/gommon v0.3.1 // indirect
|
||||||
|
github.com/markbates/errx v1.1.0 // indirect
|
||||||
|
github.com/markbates/oncer v1.0.0 // indirect
|
||||||
|
github.com/markbates/safe v1.0.1 // indirect
|
||||||
|
github.com/mattn/go-isatty v0.0.14 // indirect
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||||
github.com/modern-go/reflect2 v1.0.1 // indirect
|
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||||
|
github.com/sirupsen/logrus v1.8.1 // indirect
|
||||||
github.com/syndtr/goleveldb v1.0.0 // indirect
|
github.com/syndtr/goleveldb v1.0.0 // indirect
|
||||||
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
||||||
github.com/valyala/fasttemplate v1.2.1 // indirect
|
github.com/valyala/fasttemplate v1.2.1 // indirect
|
||||||
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
|
||||||
)
|
)
|
||||||
|
447
go.sum
447
go.sum
@ -1,8 +1,46 @@
|
|||||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
|
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
|
||||||
|
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
|
||||||
|
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
|
||||||
|
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
|
||||||
|
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
|
||||||
|
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
|
||||||
|
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
|
||||||
|
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
|
||||||
|
cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
|
||||||
|
cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
|
||||||
|
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
|
||||||
|
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||||
|
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||||
|
cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI=
|
||||||
|
cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk=
|
||||||
|
cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg=
|
||||||
|
cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8=
|
||||||
|
cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0=
|
||||||
|
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||||
|
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||||
|
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||||
|
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||||
|
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||||
|
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||||
|
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||||
|
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||||
|
cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
|
||||||
|
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||||
|
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||||
|
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||||
|
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||||
|
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||||
|
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||||
|
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||||
|
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||||
|
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||||
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=
|
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a h1:lSA0F4e9A2NcQSqGqTOXqu2aRi/XEQxDCBwM8yJtE6s=
|
||||||
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:EXuID2Zs0pAQhH8yz+DNjUbjppKQzKFAn28TMYPB6IU=
|
gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a/go.mod h1:EXuID2Zs0pAQhH8yz+DNjUbjppKQzKFAn28TMYPB6IU=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
|
||||||
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
|
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
|
||||||
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
|
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
|
||||||
@ -13,6 +51,7 @@ github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuy
|
|||||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||||
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||||
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||||
|
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
|
||||||
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
||||||
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ=
|
||||||
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
|
||||||
@ -26,21 +65,31 @@ github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24
|
|||||||
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||||
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||||
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
|
||||||
|
github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM=
|
||||||
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
|
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
|
||||||
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
|
github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
|
||||||
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
|
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
|
||||||
|
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||||
|
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||||
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
|
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
|
||||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||||
|
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||||
|
github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||||
|
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
|
||||||
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
|
github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
|
||||||
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
|
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
|
||||||
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
|
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
|
||||||
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||||
|
github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
|
||||||
github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||||
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||||
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
|
||||||
|
github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
|
||||||
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
|
||||||
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||||
|
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
||||||
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
|
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
@ -54,13 +103,22 @@ github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1
|
|||||||
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
|
github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I=
|
||||||
github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
|
github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
|
||||||
github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
|
github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||||
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk=
|
||||||
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||||
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
||||||
github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
|
github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4=
|
||||||
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20=
|
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20=
|
||||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||||
|
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||||
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
|
||||||
|
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||||
|
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||||
|
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||||
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||||
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||||
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
|
github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o=
|
||||||
@ -71,25 +129,58 @@ github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG
|
|||||||
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
|
github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
|
||||||
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||||
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||||
|
github.com/gobuffalo/logger v1.0.6 h1:nnZNpxYo0zx+Aj9RfMPBm+x9zAU2OayFh/xrAWi34HU=
|
||||||
|
github.com/gobuffalo/logger v1.0.6/go.mod h1:J31TBEHR1QLV2683OXTAItYIg8pv2JMHnF/quuAbMjs=
|
||||||
|
github.com/gobuffalo/packd v1.0.1 h1:U2wXfRr4E9DH8IdsDLlRFwTZTK7hLfq9qT/QHXGVe/0=
|
||||||
|
github.com/gobuffalo/packd v1.0.1/go.mod h1:PP2POP3p3RXGz7Jh6eYEf93S7vA2za6xM7QT85L4+VY=
|
||||||
|
github.com/gobuffalo/packr/v2 v2.8.3 h1:xE1yzvnO56cUC0sTpKR3DIbxZgB54AftTFMhB2XEWlY=
|
||||||
|
github.com/gobuffalo/packr/v2 v2.8.3/go.mod h1:0SahksCVcx4IMnigTjiFuyldmTrdTctXsOdiU5KwbKc=
|
||||||
github.com/goccy/go-json v0.7.4/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
github.com/goccy/go-json v0.7.4/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||||
github.com/goccy/go-json v0.7.7 h1:MflzqwHECILPg/0qDYB+jx+sJeNojJHEbRYsa8q7j/o=
|
github.com/goccy/go-json v0.7.7 h1:MflzqwHECILPg/0qDYB+jx+sJeNojJHEbRYsa8q7j/o=
|
||||||
github.com/goccy/go-json v0.7.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
github.com/goccy/go-json v0.7.7/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||||
|
github.com/goccy/go-json v0.8.1 h1:4/Wjm0JIJaTDm8K1KcGrLHJoa8EsJ13YWeX+6Kfq6uI=
|
||||||
|
github.com/goccy/go-json v0.8.1/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
|
||||||
|
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
|
||||||
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
github.com/gofrs/uuid v3.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||||
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
|
||||||
github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
|
github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s=
|
||||||
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||||
github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||||
github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
|
github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
|
||||||
|
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
|
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
|
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
|
||||||
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
|
github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
|
||||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||||
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
|
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||||
|
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||||
|
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
||||||
|
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||||
|
github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||||
|
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||||
|
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||||
|
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||||
|
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||||
|
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||||
|
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||||
|
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||||
|
github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM=
|
||||||
|
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||||
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||||
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
|
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
|
||||||
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||||
@ -98,10 +189,34 @@ github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ
|
|||||||
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
|
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
|
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||||
|
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||||
|
github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||||
|
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
|
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
|
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||||
|
github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||||
|
github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||||
|
github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
|
||||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||||
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||||
|
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
|
||||||
github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
|
github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
|
||||||
@ -111,7 +226,10 @@ github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY
|
|||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
|
github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
|
||||||
github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
|
github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
|
||||||
|
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
|
||||||
|
github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
|
||||||
github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
|
github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE=
|
||||||
|
github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||||
github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
|
||||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
|
||||||
@ -127,6 +245,7 @@ github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09
|
|||||||
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
|
github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
|
||||||
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
|
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
|
||||||
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
|
||||||
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
|
github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
|
||||||
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
|
||||||
@ -134,6 +253,8 @@ github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/J
|
|||||||
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
|
github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=
|
||||||
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
|
||||||
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
|
github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg=
|
||||||
|
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
|
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
||||||
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
|
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
|
||||||
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
|
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
|
||||||
@ -190,15 +311,23 @@ github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/u
|
|||||||
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
github.com/json-iterator/go v1.1.11 h1:uVUAXhF2To8cbw/3xN3pxj6kk7TYKs98NIrTqPlMWAQ=
|
github.com/json-iterator/go v1.1.11 h1:uVUAXhF2To8cbw/3xN3pxj6kk7TYKs98NIrTqPlMWAQ=
|
||||||
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
|
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
|
||||||
|
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
|
||||||
|
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||||
|
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||||
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
|
github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
|
||||||
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
|
||||||
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||||
|
github.com/karrick/godirwalk v1.16.1 h1:DynhcF+bztK8gooS0+NDJFrdNZjJ3gzVzC545UNA9iw=
|
||||||
|
github.com/karrick/godirwalk v1.16.1/go.mod h1:j4mkqPuvaLI8mp1DroR3P6ad7cyYd4c1qeJ3RV7ULlk=
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||||
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
|
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
|
||||||
|
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
|
github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
|
||||||
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
||||||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
@ -206,23 +335,39 @@ github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
|
|||||||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
github.com/labstack/echo/v4 v4.5.0 h1:JXk6H5PAw9I3GwizqUHhYyS4f45iyGebR/c1xNCeOCY=
|
github.com/labstack/echo/v4 v4.5.0 h1:JXk6H5PAw9I3GwizqUHhYyS4f45iyGebR/c1xNCeOCY=
|
||||||
github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awStJ6ArI7Y=
|
github.com/labstack/echo/v4 v4.5.0/go.mod h1:czIriw4a0C1dFun+ObrXp7ok03xON0N1awStJ6ArI7Y=
|
||||||
|
github.com/labstack/echo/v4 v4.6.1 h1:OMVsrnNFzYlGSdaiYGHbgWQnr+JM7NG+B9suCPie14M=
|
||||||
|
github.com/labstack/echo/v4 v4.6.1/go.mod h1:RnjgMWNDB9g/HucVWhQYNQP9PvbYf6adqftqryo7s9k=
|
||||||
github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0=
|
github.com/labstack/gommon v0.3.0 h1:JEeO0bvc78PKdyHxloTKiF8BD5iGrH8T6MSeGvSgob0=
|
||||||
github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
|
github.com/labstack/gommon v0.3.0/go.mod h1:MULnywXg0yavhxWKc+lOruYdAhDwPK9wf0OL7NoOu+k=
|
||||||
|
github.com/labstack/gommon v0.3.1 h1:OomWaJXm7xR6L1HmEtGyQf26TEn7V6X88mktX9kee9o=
|
||||||
|
github.com/labstack/gommon v0.3.1/go.mod h1:uW6kP17uPlLJsD3ijUYn3/M5bAxtlZhMI6m3MFxTMTM=
|
||||||
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
||||||
github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8=
|
github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8=
|
||||||
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||||
|
github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk=
|
||||||
|
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
|
||||||
github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
|
github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
|
||||||
github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
|
github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
|
||||||
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
|
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
|
||||||
|
github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
|
||||||
|
github.com/markbates/errx v1.1.0 h1:QDFeR+UP95dO12JgW+tgi2UVfo0V8YBHiUIOaeBPiEI=
|
||||||
|
github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc=
|
||||||
|
github.com/markbates/oncer v1.0.0 h1:E83IaVAHygyndzPimgUYJjbshhDTALZyXxvk9FOlQRY=
|
||||||
|
github.com/markbates/oncer v1.0.0/go.mod h1:Z59JA581E9GP6w96jai+TGqafHPW+cPfRxz2aSZ0mcI=
|
||||||
|
github.com/markbates/safe v1.0.1 h1:yjZkbvRM6IzKj9tlu/zMJLS0n/V351OZWRnF3QfaUxI=
|
||||||
|
github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0=
|
||||||
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
||||||
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
|
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
|
||||||
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||||
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||||
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
|
github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
|
||||||
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
|
||||||
|
github.com/mattn/go-colorable v0.1.11/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||||
|
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
||||||
|
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||||
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||||
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
||||||
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||||
@ -232,6 +377,8 @@ github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2y
|
|||||||
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||||
github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA=
|
github.com/mattn/go-isatty v0.0.13 h1:qdl+GuBjcsKKDco5BsxPJlId98mSWNKqYA+Co0SC1yA=
|
||||||
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
github.com/mattn/go-isatty v0.0.13/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
|
||||||
|
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
|
||||||
|
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
||||||
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||||
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
github.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||||
github.com/mattn/go-sqlite3 v1.14.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU=
|
github.com/mattn/go-sqlite3 v1.14.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU=
|
||||||
@ -245,12 +392,15 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4
|
|||||||
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
|
||||||
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||||
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
|
||||||
|
github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
|
||||||
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
|
||||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||||
github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
|
github.com/modern-go/reflect2 v1.0.1 h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=
|
||||||
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||||
|
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
|
||||||
|
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||||
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
|
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
|
||||||
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
|
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
|
||||||
@ -279,12 +429,15 @@ github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnh
|
|||||||
github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
|
github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM=
|
||||||
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
|
||||||
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
|
github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k=
|
||||||
|
github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
|
||||||
github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
|
github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac=
|
||||||
github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
|
github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc=
|
||||||
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
|
github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
|
||||||
|
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||||
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
|
github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
|
||||||
|
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
|
||||||
@ -308,7 +461,9 @@ github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqn
|
|||||||
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk=
|
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk=
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||||
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
|
||||||
|
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
|
||||||
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
|
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
|
||||||
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
|
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
|
||||||
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
|
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
|
||||||
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
|
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
|
||||||
@ -324,14 +479,22 @@ github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeV
|
|||||||
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||||
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
|
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
|
||||||
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||||
|
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
||||||
|
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
|
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
|
||||||
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
|
||||||
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
|
github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
|
||||||
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
|
||||||
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
|
||||||
github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
|
github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY=
|
||||||
|
github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
|
||||||
|
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
|
||||||
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
|
||||||
|
github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk=
|
||||||
|
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
|
||||||
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
|
github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
|
||||||
|
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||||
|
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
|
||||||
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
|
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
|
||||||
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
|
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
|
||||||
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
|
github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI=
|
||||||
@ -342,8 +505,10 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
|
|||||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||||
|
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
|
||||||
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||||
|
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
|
||||||
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
|
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
|
||||||
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
|
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
|
||||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
|
||||||
@ -355,31 +520,49 @@ github.com/valyala/fasttemplate v1.0.1/go.mod h1:UQGH1tvbgY+Nz5t2n7tXsz52dQxojPU
|
|||||||
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
|
github.com/valyala/fasttemplate v1.2.1 h1:TVEnxayobAdVkhQfrfes2IzOB6o+z4roRkPF52WA1u4=
|
||||||
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
github.com/valyala/fasttemplate v1.2.1/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ=
|
||||||
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
|
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
|
||||||
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
|
github.com/yuin/goldmark v1.4.0/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
|
||||||
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
|
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
|
||||||
github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0=
|
github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0=
|
||||||
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
|
||||||
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
|
go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg=
|
||||||
|
go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs=
|
||||||
|
go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g=
|
||||||
|
go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ=
|
||||||
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
||||||
go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk=
|
||||||
|
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||||
|
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||||
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||||
|
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
|
||||||
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
|
||||||
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||||
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
|
||||||
|
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
|
||||||
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
|
||||||
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
|
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
|
||||||
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
|
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
|
||||||
|
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
|
||||||
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
|
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
|
||||||
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
|
go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
|
||||||
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
|
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
|
||||||
go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
|
go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
|
||||||
|
go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo=
|
||||||
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
|
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
|
||||||
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
|
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20190911031432-227b76d455e7/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
@ -391,16 +574,44 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm
|
|||||||
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ=
|
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 h1:HWj/xjIHfjYU5nVXpTM0s39J9CbLn7Cc5a7IC5rwsMQ=
|
||||||
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
|
||||||
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3 h1:0es+/5331RGQPcXlMfP+WrnIIS6dNnNRe0WB02W0F4M=
|
||||||
|
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
|
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||||
|
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
|
||||||
|
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
|
||||||
|
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||||
|
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||||
|
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||||
|
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||||
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
|
||||||
|
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
|
||||||
|
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||||
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||||
|
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||||
|
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||||
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
@ -413,24 +624,65 @@ golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73r
|
|||||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||||
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
|
golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
|
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
|
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
|
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
|
||||||
|
golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc=
|
||||||
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
|
||||||
|
golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.0.0-20210825183410-e898025ed96a h1:bRuuGXV8wwSdGTB+CtJf+FjgO1APK1CoO39T4BN/XBw=
|
golang.org/x/net v0.0.0-20210825183410-e898025ed96a h1:bRuuGXV8wwSdGTB+CtJf+FjgO1APK1CoO39T4BN/XBw=
|
||||||
golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
golang.org/x/net v0.0.0-20210825183410-e898025ed96a/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
|
golang.org/x/net v0.0.0-20210913180222-943fd674d43e/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
|
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f h1:hEYJvxw1lSnWIl8X9ofsYMklzaDs90JI2az5YMd4fPM=
|
||||||
|
golang.org/x/net v0.0.0-20211216030914-fe4d6282115f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
@ -441,59 +693,147 @@ golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5h
|
|||||||
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20201126233918-771906719818/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf h1:2ucpDCmfkl8Bd/FsLtiD653Wf96cW37s+iGx93zsu4k=
|
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf h1:2ucpDCmfkl8Bd/FsLtiD653Wf96cW37s+iGx93zsu4k=
|
||||||
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20210910150752-751e447fb3d0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20211103235746-7861aae1554b/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
|
||||||
|
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
|
||||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY=
|
||||||
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||||
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
||||||
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
||||||
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20201208040808-7e3f01d25324/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
|
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac h1:7zkz7BUtwNFFqcowJ+RIgu2MaV/MapERkDIy+mwPyjs=
|
||||||
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
|
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 h1:GZokNIeuVkl3aZHJchRrr13WCsols02MLUcz1U9is6M=
|
||||||
|
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
|
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
|
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
|
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
|
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||||
|
golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||||
|
golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
|
||||||
|
golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
|
||||||
|
golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 h1:M8tBwCtWD/cZV9DZpFYRUgaymAYAr+aIUTWzDaM3uPs=
|
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 h1:M8tBwCtWD/cZV9DZpFYRUgaymAYAr+aIUTWzDaM3uPs=
|
||||||
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
|
||||||
|
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
|
||||||
|
golang.org/x/tools v0.1.7/go.mod h1:LGqMHiF4EqQNHR1JncWGqT5BVaXmza+X+BDGol+dOxo=
|
||||||
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
@ -502,23 +842,115 @@ golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8T
|
|||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
|
google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk=
|
||||||
|
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
|
||||||
|
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
|
||||||
|
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||||
|
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||||
|
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||||
|
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||||
|
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||||
|
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||||
|
google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg=
|
||||||
|
google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE=
|
||||||
|
google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8=
|
||||||
|
google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU=
|
||||||
|
google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94=
|
||||||
|
google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8=
|
||||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||||
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
|
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
|
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
|
||||||
|
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||||
|
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||||
|
google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||||
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
|
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
|
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s=
|
google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s=
|
||||||
|
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||||
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||||
|
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
|
||||||
|
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
|
||||||
|
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
|
||||||
|
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||||
|
google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
|
||||||
|
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A=
|
||||||
|
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0=
|
||||||
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs=
|
||||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||||
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
|
google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM=
|
||||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||||
google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||||
|
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||||
google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||||
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||||
google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||||
|
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||||
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
|
||||||
|
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||||
|
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
|
||||||
|
google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc=
|
||||||
|
google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8=
|
||||||
|
google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||||
|
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||||
|
google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
|
||||||
|
google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||||
|
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||||
|
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||||
|
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||||
|
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||||
|
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||||
|
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
@ -530,6 +962,8 @@ gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o=
|
|||||||
gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=
|
gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=
|
||||||
gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=
|
gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=
|
||||||
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
||||||
|
gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI=
|
||||||
|
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
|
||||||
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
|
gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
|
||||||
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
|
||||||
@ -538,12 +972,20 @@ gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bl
|
|||||||
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
|
||||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
lukechampine.com/uint128 v1.1.1 h1:pnxCASz787iMf+02ssImqk6OLt+Z5QHMoZyUXR4z6JU=
|
lukechampine.com/uint128 v1.1.1 h1:pnxCASz787iMf+02ssImqk6OLt+Z5QHMoZyUXR4z6JU=
|
||||||
lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
lukechampine.com/uint128 v1.1.1/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
||||||
modernc.org/cc/v3 v3.33.6 h1:r63dgSzVzRxUpAJFPQWHy1QeZeY1ydNENUDaBx1GqYc=
|
modernc.org/cc/v3 v3.33.6 h1:r63dgSzVzRxUpAJFPQWHy1QeZeY1ydNENUDaBx1GqYc=
|
||||||
@ -571,9 +1013,14 @@ modernc.org/tcl v1.5.5/go.mod h1:ADkaTUuwukkrlhqwERyq0SM8OvyXo7+TjFz7yAF56EI=
|
|||||||
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
|
modernc.org/token v1.0.0 h1:a0jaWiNMDhDUtqOj09wvjWWAqd3q7WpBulmL9H2egsk=
|
||||||
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
modernc.org/token v1.0.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||||
modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
|
modernc.org/z v1.0.1/go.mod h1:8/SRk5C/HgiQWCgXdfpb+1RvhORdkz5sw72d3jjtyqA=
|
||||||
|
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||||
|
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||||
|
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||||
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o=
|
||||||
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
|
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
|
||||||
xorm.io/builder v0.3.9 h1:Sd65/LdWyO7LR8+Cbd+e7mm3sK/7U9k0jS3999IDHMc=
|
xorm.io/builder v0.3.9 h1:Sd65/LdWyO7LR8+Cbd+e7mm3sK/7U9k0jS3999IDHMc=
|
||||||
xorm.io/builder v0.3.9/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
|
xorm.io/builder v0.3.9/go.mod h1:aUW0S9eb9VCaPohFCH3j7czOx1PMW3i1HrSzbLYGBSE=
|
||||||
xorm.io/xorm v1.2.3 h1:ZsVtQEsfkA31bbe8lhrP5cZKUjrxXQQO5tsr7Tf/0eo=
|
xorm.io/xorm v1.2.3 h1:ZsVtQEsfkA31bbe8lhrP5cZKUjrxXQQO5tsr7Tf/0eo=
|
||||||
xorm.io/xorm v1.2.3/go.mod h1:fTG8tSjk6O1BYxwuohZUK+S1glnRycsCF05L1qQyEU0=
|
xorm.io/xorm v1.2.3/go.mod h1:fTG8tSjk6O1BYxwuohZUK+S1glnRycsCF05L1qQyEU0=
|
||||||
|
xorm.io/xorm v1.2.5 h1:tqN7OhN8P9xi52qBb76I8m5maAJMz/SSbgK2RGPCPbo=
|
||||||
|
xorm.io/xorm v1.2.5/go.mod h1:fTG8tSjk6O1BYxwuohZUK+S1glnRycsCF05L1qQyEU0=
|
||||||
|
12
scripts/version.sh
Executable file
12
scripts/version.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VERSION=$(git tag | tail -n 1)
|
||||||
|
|
||||||
|
if [[ -z $VERSION ]]
|
||||||
|
then
|
||||||
|
VERSION="dev"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo 'package main
|
||||||
|
|
||||||
|
var version = "'${VERSION}'"' > version.go
|
@ -15,7 +15,14 @@ import (
|
|||||||
|
|
||||||
// Initialize creates connection to database and exec Schema
|
// Initialize creates connection to database and exec Schema
|
||||||
func Initialize(ctx *context.Context, config *config.Config) (err error) {
|
func Initialize(ctx *context.Context, config *config.Config) (err error) {
|
||||||
config.Db, err = xorm.NewEngine("postgres", fmt.Sprintf("postgres://%s:%s@%s/%s", config.DbUsername, config.DbPassword, config.DbHostname, config.DbName))
|
var dbType = "postgres"
|
||||||
|
config.Db, err = xorm.NewEngine(dbType,
|
||||||
|
fmt.Sprintf("%s://%s:%s@%s/%s",
|
||||||
|
dbType,
|
||||||
|
config.DbUsername,
|
||||||
|
config.DbPassword,
|
||||||
|
config.DbHostname,
|
||||||
|
config.DbName))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalln(err)
|
log.Fatalln(err)
|
||||||
}
|
}
|
||||||
|
@ -42,9 +42,6 @@ func GetAdmin(ctx *context.Context, config *config.Config, id interface{}) (apia
|
|||||||
func CreateAdmin(ctx *context.Context, config *config.Config) (num int64, err error) {
|
func CreateAdmin(ctx *context.Context, config *config.Config) (num int64, err error) {
|
||||||
var admin Admin
|
var admin Admin
|
||||||
num, err = config.Db.Insert(&admin)
|
num, err = config.Db.Insert(&admin)
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -106,8 +103,8 @@ type Admin struct {
|
|||||||
ID int `xorm:"not null pk unique serial"`
|
ID int `xorm:"not null pk unique serial"`
|
||||||
Username string `xorm:"not null unique VARCHAR(255)"`
|
Username string `xorm:"not null unique VARCHAR(255)"`
|
||||||
Password string `xorm:"not null default '' VARCHAR(255)"`
|
Password string `xorm:"not null default '' VARCHAR(255)"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"TIMESTAMPZ updated"`
|
||||||
Active bool `xorm:"not null default true BOOL"`
|
Active bool `xorm:"not null default true BOOL"`
|
||||||
Superadmin bool `xorm:"not null default false BOOL"`
|
Superadmin bool `xorm:"not null default false BOOL"`
|
||||||
Phone string `xorm:"not null default '' VARCHAR(30)"`
|
Phone string `xorm:"not null default '' VARCHAR(30)"`
|
||||||
|
@ -47,9 +47,6 @@ func GetAlias(ctx *context.Context, config *config.Config, id interface{}) (apia
|
|||||||
func CreateAlias(ctx *context.Context, config *config.Config) (num int64, err error) {
|
func CreateAlias(ctx *context.Context, config *config.Config) (num int64, err error) {
|
||||||
var alias Alias
|
var alias Alias
|
||||||
num, err = config.Db.Insert(&alias)
|
num, err = config.Db.Insert(&alias)
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,7 +109,7 @@ type Alias struct {
|
|||||||
Address string `xorm:"not null index(alias_address_active) unique VARCHAR(255)"`
|
Address string `xorm:"not null index(alias_address_active) unique VARCHAR(255)"`
|
||||||
Goto string `xorm:"not null TEXT"`
|
Goto string `xorm:"not null TEXT"`
|
||||||
Domain string `xorm:"not null index VARCHAR(255)"`
|
Domain string `xorm:"not null index VARCHAR(255)"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ updated"`
|
Modified time.Time `xorm:"TIMESTAMPZ updated"`
|
||||||
Active bool `xorm:"default false index(alias_address_active) BOOL"`
|
Active bool `xorm:"default false index(alias_address_active) BOOL"`
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ type AliasDomain struct {
|
|||||||
ID int `xorm:"not null pk unique serial"`
|
ID int `xorm:"not null pk unique serial"`
|
||||||
AliasDomain string `xorm:"not null index(alias_domain_active) VARCHAR(255)"`
|
AliasDomain string `xorm:"not null index(alias_domain_active) VARCHAR(255)"`
|
||||||
TargetDomain string `xorm:"not null VARCHAR(255)"`
|
TargetDomain string `xorm:"not null VARCHAR(255)"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"TIMESTAMPZ modified"`
|
||||||
Active bool `xorm:"not null default true index(alias_domain_active) BOOL"`
|
Active bool `xorm:"not null default true index(alias_domain_active) BOOL"`
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,8 @@ type Domain struct {
|
|||||||
Quota int64 `xorm:"not null default 0 BIGINT"`
|
Quota int64 `xorm:"not null default 0 BIGINT"`
|
||||||
Transport string `xorm:"default 'NULL' VARCHAR(255)"`
|
Transport string `xorm:"default 'NULL' VARCHAR(255)"`
|
||||||
Backupmx bool `xorm:"not null default false BOOL"`
|
Backupmx bool `xorm:"not null default false BOOL"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"TIMESTAMPZ modified"`
|
||||||
Active bool `xorm:"not null default true index(domain_domain_active) BOOL"`
|
Active bool `xorm:"not null default true index(domain_domain_active) BOOL"`
|
||||||
PasswordExpiry int `xorm:"default 0 INTEGER"`
|
PasswordExpiry int `xorm:"default 0 INTEGER"`
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,6 @@ type DomainAdmins struct {
|
|||||||
ID int `xorm:"not null pk unique serial"`
|
ID int `xorm:"not null pk unique serial"`
|
||||||
Username string `xorm:"not null VARCHAR(255)"`
|
Username string `xorm:"not null VARCHAR(255)"`
|
||||||
Domain string `xorm:"not null VARCHAR(255)"`
|
Domain string `xorm:"not null VARCHAR(255)"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Active bool `xorm:"not null default true BOOL"`
|
Active bool `xorm:"not null default true BOOL"`
|
||||||
}
|
}
|
||||||
|
@ -25,6 +25,6 @@ type Fetchmail struct {
|
|||||||
Sslfingerprint string `xorm:"default '' VARCHAR(255)"`
|
Sslfingerprint string `xorm:"default '' VARCHAR(255)"`
|
||||||
Domain string `xorm:"default '' VARCHAR(255)"`
|
Domain string `xorm:"default '' VARCHAR(255)"`
|
||||||
Active bool `xorm:"not null default false BOOL"`
|
Active bool `xorm:"not null default false BOOL"`
|
||||||
Created time.Time `xorm:"default '2000-01-01 00:00:00+01' TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"TIMESTAMPZ updated"`
|
||||||
}
|
}
|
||||||
|
@ -32,12 +32,15 @@ func GetMailbox(ctx *context.Context, config *config.Config, id interface{}) (ap
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CreateMailbox ...
|
// CreateMailbox ...
|
||||||
func CreateMailbox(ctx *context.Context, config *config.Config) (num int64, err error) {
|
func CreateMailbox(ctx *context.Context, config *config.Config, c echo.Context) (num int64, err error) {
|
||||||
var mailbox Mailbox
|
var mailbox Mailbox
|
||||||
num, err = config.Db.Insert(&mailbox)
|
var apimailbox = new(api.Mailbox)
|
||||||
if err != nil {
|
if err = c.Bind(apimailbox); err != nil {
|
||||||
|
fmt.Println(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
mailbox.APIParse(*apimailbox)
|
||||||
|
num, err = config.Db.Insert(&mailbox)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -55,14 +58,14 @@ func UpdateMailbox(ctx *context.Context, config *config.Config, c echo.Context)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// APIParse returns a JSON formatted object of Mailbox
|
// APIParse returns a JSON formatted object of Mailbox
|
||||||
func (alias *Mailbox) APIParse(apimailbox api.Mailbox) (err error) {
|
func (mailbox *Mailbox) APIParse(apimailbox api.Mailbox) (err error) {
|
||||||
*alias = Mailbox{
|
*mailbox = Mailbox{
|
||||||
ID: apimailbox.ID,
|
ID: apimailbox.ID,
|
||||||
Username: apimailbox.Username,
|
Username: apimailbox.Username,
|
||||||
Password: apimailbox.Password,
|
Password: apimailbox.Password,
|
||||||
Name: apimailbox.Name,
|
Name: apimailbox.Name,
|
||||||
Maildir: apimailbox.Maildir,
|
Maildir: apimailbox.Maildir,
|
||||||
//Quota: apimailbox.Quota,
|
Quota: quotaParse(apimailbox.Quota),
|
||||||
Active: apimailbox.Active,
|
Active: apimailbox.Active,
|
||||||
Domain: apimailbox.Domain,
|
Domain: apimailbox.Domain,
|
||||||
LocalPart: apimailbox.LocalPart,
|
LocalPart: apimailbox.LocalPart,
|
||||||
@ -102,8 +105,8 @@ type Mailbox struct {
|
|||||||
Name string `xorm:"not null default '' VARCHAR(255)"`
|
Name string `xorm:"not null default '' VARCHAR(255)"`
|
||||||
Maildir string `xorm:"not null default '' VARCHAR(255)"`
|
Maildir string `xorm:"not null default '' VARCHAR(255)"`
|
||||||
Quota int64 `xorm:"not null default 0 BIGINT"`
|
Quota int64 `xorm:"not null default 0 BIGINT"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"updated"`
|
||||||
Active bool `xorm:"default false index BOOL"`
|
Active bool `xorm:"default false index BOOL"`
|
||||||
Domain string `xorm:"index VARCHAR(255)"`
|
Domain string `xorm:"index VARCHAR(255)"`
|
||||||
LocalPart string `xorm:"not null VARCHAR(255)"`
|
LocalPart string `xorm:"not null VARCHAR(255)"`
|
||||||
|
@ -22,3 +22,13 @@ func quotaFormat(in int64) (out string) {
|
|||||||
}
|
}
|
||||||
return units.RoundToString(int64(converted), 1024, "B", "B")
|
return units.RoundToString(int64(converted), 1024, "B", "B")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func quotaParse(in string) (out int64) {
|
||||||
|
var converted units.Base2Bytes
|
||||||
|
converted, err := units.ParseBase2Bytes(in)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
out = int64(converted)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -10,8 +10,8 @@ type Vacation struct {
|
|||||||
Body string `xorm:"not null default '' TEXT"`
|
Body string `xorm:"not null default '' TEXT"`
|
||||||
Active bool `xorm:"not null default true index(vacation_email_active) BOOL"`
|
Active bool `xorm:"not null default true index(vacation_email_active) BOOL"`
|
||||||
Domain string `xorm:"VARCHAR(255)"`
|
Domain string `xorm:"VARCHAR(255)"`
|
||||||
Created time.Time `xorm:"default now() TIMESTAMPZ created"`
|
Created time.Time `xorm:"TIMESTAMPZ created"`
|
||||||
Modified time.Time `xorm:"default now() TIMESTAMPZ modified"`
|
Modified time.Time `xorm:"TIMESTAMPZ modified"`
|
||||||
Activefrom time.Time `xorm:"default '2000-01-01 00:00:00+01' TIMESTAMPZ"`
|
Activefrom time.Time `xorm:"default '2000-01-01 00:00:00+01' TIMESTAMPZ"`
|
||||||
Activeuntil time.Time `xorm:"default '2038-01-18 00:00:00+01' TIMESTAMPZ"`
|
Activeuntil time.Time `xorm:"default '2038-01-18 00:00:00+01' TIMESTAMPZ"`
|
||||||
IntervalTime int `xorm:"not null default 0 INTEGER"`
|
IntervalTime int `xorm:"not null default 0 INTEGER"`
|
||||||
|
@ -6,13 +6,22 @@ import (
|
|||||||
|
|
||||||
"git.paulbsd.com/paulbsd/vmail/src/config"
|
"git.paulbsd.com/paulbsd/vmail/src/config"
|
||||||
"git.paulbsd.com/paulbsd/vmail/src/models"
|
"git.paulbsd.com/paulbsd/vmail/src/models"
|
||||||
|
"git.paulbsd.com/paulbsd/vmail/src/static"
|
||||||
|
"github.com/gobuffalo/packr/v2"
|
||||||
"github.com/labstack/echo/v4"
|
"github.com/labstack/echo/v4"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterRoutes ...
|
// RegisterRoutes ...
|
||||||
func RegisterRoutes(e *echo.Echo, ctx *context.Context, cfg *config.Config) {
|
func RegisterRoutes(e *echo.Echo, ctx *context.Context, cfg *config.Config) {
|
||||||
e.GET("/", func(c echo.Context) (err error) {
|
staticbox := packr.New("static", "../../frontend/dist")
|
||||||
return c.HTML(http.StatusOK, "Welcome to Vmail API")
|
e.GET("/", func(c echo.Context) error {
|
||||||
|
return static.GetStatic(staticbox, c)
|
||||||
|
})
|
||||||
|
e.GET("/*.css", func(c echo.Context) error {
|
||||||
|
return static.GetStatic(staticbox, c)
|
||||||
|
})
|
||||||
|
e.GET("/*.js", func(c echo.Context) error {
|
||||||
|
return static.GetStatic(staticbox, c)
|
||||||
})
|
})
|
||||||
e.POST("/auth", func(c echo.Context) (err error) {
|
e.POST("/auth", func(c echo.Context) (err error) {
|
||||||
return c.String(http.StatusOK, "/auth")
|
return c.String(http.StatusOK, "/auth")
|
||||||
@ -83,7 +92,7 @@ func RegisterRoutes(e *echo.Echo, ctx *context.Context, cfg *config.Config) {
|
|||||||
return JSONResult(c, err, ret)
|
return JSONResult(c, err, ret)
|
||||||
})
|
})
|
||||||
e.POST("/api/mailbox", func(c echo.Context) (err error) {
|
e.POST("/api/mailbox", func(c echo.Context) (err error) {
|
||||||
ret, err := models.CreateMailbox(ctx, cfg)
|
ret, err := models.CreateMailbox(ctx, cfg, c)
|
||||||
return JSONResult(c, err, ret)
|
return JSONResult(c, err, ret)
|
||||||
})
|
})
|
||||||
e.PUT("/api/mailbox/:id", func(c echo.Context) (err error) {
|
e.PUT("/api/mailbox/:id", func(c echo.Context) (err error) {
|
||||||
@ -96,7 +105,7 @@ func RegisterRoutes(e *echo.Echo, ctx *context.Context, cfg *config.Config) {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// Logs
|
// Logs
|
||||||
e.GET("/api/log", func(c echo.Context) (err error) {
|
e.GET("/api/logs", func(c echo.Context) (err error) {
|
||||||
ret, err := models.GetLogs(ctx, cfg)
|
ret, err := models.GetLogs(ctx, cfg)
|
||||||
return JSONResult(c, err, ret)
|
return JSONResult(c, err, ret)
|
||||||
})
|
})
|
||||||
|
@ -17,7 +17,7 @@ func RunServer(ctx *context.Context, cfg *config.Config) (err error) {
|
|||||||
e.HideBanner = true
|
e.HideBanner = true
|
||||||
|
|
||||||
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
|
e.Use(middleware.CORSWithConfig(middleware.CORSConfig{
|
||||||
AllowOrigins: []string{"http://localhost:8080"},
|
AllowOrigins: []string{"http://localhost:8081"},
|
||||||
AllowMethods: []string{http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete},
|
AllowMethods: []string{http.MethodGet, http.MethodPut, http.MethodPost, http.MethodDelete},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
36
src/static/main.go
Normal file
36
src/static/main.go
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
package static
|
||||||
|
|
||||||
|
import (
|
||||||
|
"log"
|
||||||
|
"net/http"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2"
|
||||||
|
"github.com/labstack/echo/v4"
|
||||||
|
)
|
||||||
|
|
||||||
|
// GetStatic returns static file content
|
||||||
|
func GetStatic(box *packr.Box, c echo.Context) (err error) {
|
||||||
|
name := c.Param("*")
|
||||||
|
if name == "" {
|
||||||
|
name = "index.html"
|
||||||
|
}
|
||||||
|
cnt, err := box.FindString(name)
|
||||||
|
if err != nil {
|
||||||
|
log.Println(err)
|
||||||
|
}
|
||||||
|
if strings.HasSuffix(name, ".js") {
|
||||||
|
c.Response().Header().Set(echo.HeaderContentType, echo.MIMEApplicationJavaScript)
|
||||||
|
} else if strings.HasSuffix(name, ".css") {
|
||||||
|
c.Response().Header().Set(echo.HeaderContentType, "text/css")
|
||||||
|
} else {
|
||||||
|
c.Response().Header().Set(echo.HeaderContentType, "text/html")
|
||||||
|
}
|
||||||
|
return c.String(http.StatusOK, cnt)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Static defines static file
|
||||||
|
type Static struct {
|
||||||
|
Name string
|
||||||
|
Content string
|
||||||
|
}
|
29
vendor/github.com/gobuffalo/logger/.gitignore
generated
vendored
Normal file
29
vendor/github.com/gobuffalo/logger/.gitignore
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
doc
|
||||||
|
tmp
|
||||||
|
pkg
|
||||||
|
*.gem
|
||||||
|
*.pid
|
||||||
|
coverage
|
||||||
|
coverage.data
|
||||||
|
build/*
|
||||||
|
*.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
.svn
|
||||||
|
profile
|
||||||
|
.console_history
|
||||||
|
.sass-cache/*
|
||||||
|
.rake_tasks~
|
||||||
|
*.log.lck
|
||||||
|
solr/
|
||||||
|
.jhw-cache/
|
||||||
|
jhw.*
|
||||||
|
*.sublime*
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
generated/
|
||||||
|
.vendor/
|
||||||
|
bin/*
|
||||||
|
gin-bin
|
||||||
|
.idea/
|
21
vendor/github.com/gobuffalo/logger/LICENSE
generated
vendored
Normal file
21
vendor/github.com/gobuffalo/logger/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2019 Mark Bates
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
61
vendor/github.com/gobuffalo/logger/Makefile
generated
vendored
Normal file
61
vendor/github.com/gobuffalo/logger/Makefile
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
TAGS ?= ""
|
||||||
|
GO_BIN ?= "go"
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(GO_BIN) install -tags ${TAGS} -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
echo skipping go mod tidy
|
||||||
|
endif
|
||||||
|
|
||||||
|
deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(GO_BIN) build -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
test:
|
||||||
|
$(GO_BIN) test -cover -tags ${TAGS} ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
ci-deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
|
||||||
|
ci-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
|
golangci-lint run --enable-all
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
update:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
rm go.*
|
||||||
|
$(GO_BIN) mod init
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
$(GO_BIN) get -u -tags ${TAGS}
|
||||||
|
endif
|
||||||
|
make test
|
||||||
|
make install
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release:
|
||||||
|
$(GO_BIN) get github.com/gobuffalo/release
|
||||||
|
make tidy
|
||||||
|
release -y -f version.go --skip-packr
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
|
||||||
|
|
24
vendor/github.com/gobuffalo/logger/README.md
generated
vendored
Normal file
24
vendor/github.com/gobuffalo/logger/README.md
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<p align="center"><img src="https://github.com/gobuffalo/buffalo/blob/master/logo.svg" width="360"></p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://godoc.org/github.com/gobuffalo/logger"><img src="https://godoc.org/github.com/gobuffalo/logger?status.svg" alt="GoDoc" /></a>
|
||||||
|
|
||||||
|
![Tests](https://github.com/gobuffalo/logger/actions/workflows/tests.yml/badge.svg)
|
||||||
|
|
||||||
|
<a href="https://goreportcard.com/report/github.com/gobuffalo/logger"><img src="https://goreportcard.com/badge/github.com/gobuffalo/logger" alt="Go Report Card" /></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
# Logger
|
||||||
|
|
||||||
|
The [`logger.Logger`](https://godoc.org/github.com/gobuffalo/logger#Logger) interface is used throughout Buffalo apps, and other systems, to log a whole manner of things.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ go get -u github.com/gobuffalo/logger
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
* [GoDoc](https://godoc.org/github.com/gobuffalo/logger)
|
||||||
|
* [General Buffalo Documentation](https://gobuffalo.io)
|
18
vendor/github.com/gobuffalo/logger/SHOULDERS.md
generated
vendored
Normal file
18
vendor/github.com/gobuffalo/logger/SHOULDERS.md
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
# github.com/gobuffalo/logger Stands on the Shoulders of Giants
|
||||||
|
|
||||||
|
github.com/gobuffalo/logger does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
|
||||||
|
|
||||||
|
Thank you to the following **GIANTS**:
|
||||||
|
|
||||||
|
|
||||||
|
* [github.com/gobuffalo/envy](https://godoc.org/github.com/gobuffalo/envy)
|
||||||
|
|
||||||
|
* [github.com/konsorten/go-windows-terminal-sequences](https://godoc.org/github.com/konsorten/go-windows-terminal-sequences)
|
||||||
|
|
||||||
|
* [github.com/rogpeppe/go-internal](https://godoc.org/github.com/rogpeppe/go-internal)
|
||||||
|
|
||||||
|
* [github.com/sirupsen/logrus](https://godoc.org/github.com/sirupsen/logrus)
|
||||||
|
|
||||||
|
* [golang.org/x/term](https://godoc.org/golang.org/x/term)
|
||||||
|
|
||||||
|
* [golang.org/x/sys](https://godoc.org/golang.org/x/sys)
|
154
vendor/github.com/gobuffalo/logger/formatter.go
generated
vendored
Normal file
154
vendor/github.com/gobuffalo/logger/formatter.go
generated
vendored
Normal file
@ -0,0 +1,154 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
// I really don't want to have this, but until (if) https://github.com/sirupsen/logrus/pull/606 is merged we're stuck with all this code. And yes, this is ALL needed just to remove some blank space in the logs
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
"sync"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
red = 31
|
||||||
|
yellow = 33
|
||||||
|
blue = 36
|
||||||
|
gray = 37
|
||||||
|
)
|
||||||
|
|
||||||
|
// textFormatter formats logs into text
|
||||||
|
type textFormatter struct {
|
||||||
|
ForceColors bool
|
||||||
|
isTerminal bool
|
||||||
|
sync.Once
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *textFormatter) init(entry *logrus.Entry) {
|
||||||
|
if entry.Logger != nil {
|
||||||
|
f.isTerminal = checkIfTerminal(entry.Logger.Out)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const defaultTimestampFormat = time.RFC3339
|
||||||
|
|
||||||
|
// Format renders a single log entry
|
||||||
|
func (f *textFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||||
|
prefixFieldClashes(entry.Data)
|
||||||
|
|
||||||
|
keys := make([]string, 0, len(entry.Data))
|
||||||
|
for k := range entry.Data {
|
||||||
|
keys = append(keys, k)
|
||||||
|
}
|
||||||
|
|
||||||
|
sort.Strings(keys)
|
||||||
|
|
||||||
|
var b *bytes.Buffer
|
||||||
|
if entry.Buffer != nil {
|
||||||
|
b = entry.Buffer
|
||||||
|
} else {
|
||||||
|
b = &bytes.Buffer{}
|
||||||
|
}
|
||||||
|
|
||||||
|
f.Do(func() { f.init(entry) })
|
||||||
|
|
||||||
|
isColored := (f.ForceColors || f.isTerminal)
|
||||||
|
|
||||||
|
if isColored {
|
||||||
|
f.printColored(b, entry, keys)
|
||||||
|
} else {
|
||||||
|
f.appendKeyValue(b, "level", entry.Level.String())
|
||||||
|
f.appendKeyValue(b, "time", entry.Time.Format(defaultTimestampFormat))
|
||||||
|
if entry.Message != "" {
|
||||||
|
f.appendKeyValue(b, "msg", entry.Message)
|
||||||
|
}
|
||||||
|
for _, key := range keys {
|
||||||
|
f.appendKeyValue(b, key, entry.Data[key])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
b.WriteByte('\n')
|
||||||
|
return b.Bytes(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *textFormatter) printColored(b *bytes.Buffer, entry *logrus.Entry, keys []string) {
|
||||||
|
var levelColor int
|
||||||
|
switch entry.Level {
|
||||||
|
case logrus.DebugLevel:
|
||||||
|
levelColor = gray
|
||||||
|
case logrus.WarnLevel:
|
||||||
|
levelColor = yellow
|
||||||
|
case logrus.ErrorLevel, logrus.FatalLevel, logrus.PanicLevel:
|
||||||
|
levelColor = red
|
||||||
|
default:
|
||||||
|
levelColor = blue
|
||||||
|
}
|
||||||
|
|
||||||
|
levelText := strings.ToUpper(entry.Level.String())[0:4]
|
||||||
|
|
||||||
|
fmt.Fprintf(b, "\x1b[%dm%s\x1b[0m[%s]", levelColor, levelText, entry.Time.Format(defaultTimestampFormat))
|
||||||
|
|
||||||
|
if entry.Message != "" {
|
||||||
|
fmt.Fprintf(b, " %s", entry.Message)
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, k := range keys {
|
||||||
|
v := entry.Data[k]
|
||||||
|
fmt.Fprintf(b, " \x1b[%dm%s\x1b[0m=", levelColor, k)
|
||||||
|
f.appendValue(b, v)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *textFormatter) needsQuoting(text string) bool {
|
||||||
|
if len(text) == 0 {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
for _, ch := range text {
|
||||||
|
if !((ch >= 'a' && ch <= 'z') ||
|
||||||
|
(ch >= 'A' && ch <= 'Z') ||
|
||||||
|
(ch >= '0' && ch <= '9') ||
|
||||||
|
ch == '-' || ch == '.' || ch == '_' || ch == '/' || ch == '@' || ch == '^' || ch == '+') {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *textFormatter) appendKeyValue(b *bytes.Buffer, key string, value interface{}) {
|
||||||
|
if b.Len() > 0 {
|
||||||
|
b.WriteByte(' ')
|
||||||
|
}
|
||||||
|
b.WriteString(key)
|
||||||
|
b.WriteByte('=')
|
||||||
|
f.appendValue(b, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *textFormatter) appendValue(b *bytes.Buffer, value interface{}) {
|
||||||
|
stringVal, ok := value.(string)
|
||||||
|
if !ok {
|
||||||
|
stringVal = fmt.Sprint(value)
|
||||||
|
}
|
||||||
|
|
||||||
|
if !f.needsQuoting(stringVal) {
|
||||||
|
b.WriteString(stringVal)
|
||||||
|
} else {
|
||||||
|
b.WriteString(fmt.Sprintf("%q", stringVal))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func prefixFieldClashes(data logrus.Fields) {
|
||||||
|
if t, ok := data["time"]; ok {
|
||||||
|
data["fields.time"] = t
|
||||||
|
}
|
||||||
|
|
||||||
|
if m, ok := data["msg"]; ok {
|
||||||
|
data["fields.msg"] = m
|
||||||
|
}
|
||||||
|
|
||||||
|
if l, ok := data["level"]; ok {
|
||||||
|
data["fields.level"] = l
|
||||||
|
}
|
||||||
|
}
|
25
vendor/github.com/gobuffalo/logger/level.go
generated
vendored
Normal file
25
vendor/github.com/gobuffalo/logger/level.go
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
import "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
// Level of the logger
|
||||||
|
type Level = logrus.Level
|
||||||
|
|
||||||
|
const (
|
||||||
|
// PanicLevel level, highest level of severity. Logs and then calls panic with the
|
||||||
|
// message passed to Debug, Info, ...
|
||||||
|
PanicLevel = logrus.PanicLevel
|
||||||
|
// FatalLevel level. Logs and then calls `logger.Exit(1)`. It will exit even if the
|
||||||
|
// logging level is set to Panic.
|
||||||
|
FatalLevel = logrus.FatalLevel
|
||||||
|
// ErrorLevel level. Logs. Used for errors that should definitely be noted.
|
||||||
|
// Commonly used for hooks to send errors to an error tracking service.
|
||||||
|
ErrorLevel = logrus.ErrorLevel
|
||||||
|
// WarnLevel level. Non-critical entries that deserve eyes.
|
||||||
|
WarnLevel = logrus.WarnLevel
|
||||||
|
// InfoLevel level. General operational entries about what's going on inside the
|
||||||
|
// application.
|
||||||
|
InfoLevel = logrus.InfoLevel
|
||||||
|
// DebugLevel level. Usually only enabled when debugging. Very verbose logging.
|
||||||
|
DebugLevel = logrus.DebugLevel
|
||||||
|
)
|
67
vendor/github.com/gobuffalo/logger/logger.go
generated
vendored
Normal file
67
vendor/github.com/gobuffalo/logger/logger.go
generated
vendored
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FieldLogger interface
|
||||||
|
type FieldLogger interface {
|
||||||
|
Logger
|
||||||
|
WithField(string, interface{}) FieldLogger
|
||||||
|
WithFields(map[string]interface{}) FieldLogger
|
||||||
|
}
|
||||||
|
|
||||||
|
// Logger interface is used throughout Buffalo
|
||||||
|
// apps to log a whole manner of things.
|
||||||
|
type Logger interface {
|
||||||
|
Debugf(string, ...interface{})
|
||||||
|
Infof(string, ...interface{})
|
||||||
|
Printf(string, ...interface{})
|
||||||
|
Warnf(string, ...interface{})
|
||||||
|
Errorf(string, ...interface{})
|
||||||
|
Fatalf(string, ...interface{})
|
||||||
|
Debug(...interface{})
|
||||||
|
Info(...interface{})
|
||||||
|
Warn(...interface{})
|
||||||
|
Error(...interface{})
|
||||||
|
Fatal(...interface{})
|
||||||
|
Panic(...interface{})
|
||||||
|
}
|
||||||
|
|
||||||
|
func ParseLevel(level string) (Level, error) {
|
||||||
|
l, err := logrus.ParseLevel(level)
|
||||||
|
return Level(l), err
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewLogger based on the specified log level, defaults to "debug".
|
||||||
|
// See `New` for more details.
|
||||||
|
func NewLogger(level string) FieldLogger {
|
||||||
|
lvl, err := logrus.ParseLevel(level)
|
||||||
|
if err != nil {
|
||||||
|
lvl = logrus.DebugLevel
|
||||||
|
}
|
||||||
|
return New(lvl)
|
||||||
|
}
|
||||||
|
|
||||||
|
// New based on the specified log level, defaults to "debug".
|
||||||
|
// This logger will log to the STDOUT in a human readable,
|
||||||
|
// but parseable form.
|
||||||
|
/*
|
||||||
|
Example: time="2016-12-01T21:02:07-05:00" level=info duration=225.283µs human_size="106 B" method=GET path="/" render=199.79µs request_id=2265736089 size=106 status=200
|
||||||
|
*/
|
||||||
|
func New(lvl Level) FieldLogger {
|
||||||
|
e := os.Getenv("GO_ENV")
|
||||||
|
if len(e) == 0 {
|
||||||
|
e = "development"
|
||||||
|
}
|
||||||
|
dev := e == "development"
|
||||||
|
l := logrus.New()
|
||||||
|
l.SetOutput(os.Stdout)
|
||||||
|
l.Level = lvl
|
||||||
|
l.Formatter = &textFormatter{
|
||||||
|
ForceColors: dev,
|
||||||
|
}
|
||||||
|
return Logrus{l}
|
||||||
|
}
|
34
vendor/github.com/gobuffalo/logger/logrus.go
generated
vendored
Normal file
34
vendor/github.com/gobuffalo/logger/logrus.go
generated
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ Logger = Logrus{}
|
||||||
|
var _ FieldLogger = Logrus{}
|
||||||
|
var _ Outable = Logrus{}
|
||||||
|
|
||||||
|
// Logrus is a Logger implementation backed by sirupsen/logrus
|
||||||
|
type Logrus struct {
|
||||||
|
logrus.FieldLogger
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetOutput will try and set the output of the underlying
|
||||||
|
// logrus.FieldLogger if it can
|
||||||
|
func (l Logrus) SetOutput(w io.Writer) {
|
||||||
|
if lg, ok := l.FieldLogger.(Outable); ok {
|
||||||
|
lg.SetOutput(w)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithField returns a new Logger with the field added
|
||||||
|
func (l Logrus) WithField(s string, i interface{}) FieldLogger {
|
||||||
|
return Logrus{l.FieldLogger.WithField(s, i)}
|
||||||
|
}
|
||||||
|
|
||||||
|
// WithFields returns a new Logger with the fields added
|
||||||
|
func (l Logrus) WithFields(m map[string]interface{}) FieldLogger {
|
||||||
|
return Logrus{l.FieldLogger.WithFields(m)}
|
||||||
|
}
|
8
vendor/github.com/gobuffalo/logger/outable.go
generated
vendored
Normal file
8
vendor/github.com/gobuffalo/logger/outable.go
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
import "io"
|
||||||
|
|
||||||
|
// Outable interface for loggers that allow setting the output writer
|
||||||
|
type Outable interface {
|
||||||
|
SetOutput(out io.Writer)
|
||||||
|
}
|
19
vendor/github.com/gobuffalo/logger/terminal_check.go
generated
vendored
Normal file
19
vendor/github.com/gobuffalo/logger/terminal_check.go
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// +build !appengine
|
||||||
|
|
||||||
|
package logger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"golang.org/x/term"
|
||||||
|
)
|
||||||
|
|
||||||
|
func checkIfTerminal(w io.Writer) bool {
|
||||||
|
switch v := w.(type) {
|
||||||
|
case *os.File:
|
||||||
|
return term.IsTerminal(int(v.Fd()))
|
||||||
|
default:
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
11
vendor/github.com/gobuffalo/logger/terminal_check_appengine.go
generated
vendored
Normal file
11
vendor/github.com/gobuffalo/logger/terminal_check_appengine.go
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
// +build appengine
|
||||||
|
|
||||||
|
package logger
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
func checkIfTerminal(w io.Writer) bool {
|
||||||
|
return true
|
||||||
|
}
|
4
vendor/github.com/gobuffalo/logger/version.go
generated
vendored
Normal file
4
vendor/github.com/gobuffalo/logger/version.go
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package logger
|
||||||
|
|
||||||
|
// Version of the logger
|
||||||
|
const Version = "v1.0.6"
|
29
vendor/github.com/gobuffalo/packd/.gitignore
generated
vendored
Normal file
29
vendor/github.com/gobuffalo/packd/.gitignore
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
doc
|
||||||
|
tmp
|
||||||
|
pkg
|
||||||
|
*.gem
|
||||||
|
*.pid
|
||||||
|
coverage
|
||||||
|
coverage.data
|
||||||
|
build/*
|
||||||
|
*.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
.svn
|
||||||
|
profile
|
||||||
|
.console_history
|
||||||
|
.sass-cache/*
|
||||||
|
.rake_tasks~
|
||||||
|
*.log.lck
|
||||||
|
solr/
|
||||||
|
.jhw-cache/
|
||||||
|
jhw.*
|
||||||
|
*.sublime*
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
generated/
|
||||||
|
.vendor/
|
||||||
|
bin/*
|
||||||
|
gin-bin
|
||||||
|
.idea/
|
21
vendor/github.com/gobuffalo/packd/LICENSE
generated
vendored
Normal file
21
vendor/github.com/gobuffalo/packd/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2019 Mark Bates
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
61
vendor/github.com/gobuffalo/packd/Makefile
generated
vendored
Normal file
61
vendor/github.com/gobuffalo/packd/Makefile
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
TAGS ?= ""
|
||||||
|
GO_BIN ?= "go"
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(GO_BIN) install -tags ${TAGS} -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
echo skipping go mod tidy
|
||||||
|
endif
|
||||||
|
|
||||||
|
deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(GO_BIN) build -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
test:
|
||||||
|
$(GO_BIN) test -cover -tags ${TAGS} ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
ci-deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
|
||||||
|
ci-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
|
golangci-lint run --enable-all
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
update:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
rm go.*
|
||||||
|
$(GO_BIN) mod init
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
$(GO_BIN) get -u -tags ${TAGS}
|
||||||
|
endif
|
||||||
|
make test
|
||||||
|
make install
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release:
|
||||||
|
$(GO_BIN) get github.com/gobuffalo/release
|
||||||
|
make tidy
|
||||||
|
release -y -f version.go --skip-packr
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
|
||||||
|
|
24
vendor/github.com/gobuffalo/packd/README.md
generated
vendored
Normal file
24
vendor/github.com/gobuffalo/packd/README.md
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<p align="center"><img src="https://github.com/gobuffalo/buffalo/blob/master/logo.svg" width="360"></p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://godoc.org/github.com/gobuffalo/packd"><img src="https://godoc.org/github.com/gobuffalo/packd?status.svg" alt="GoDoc" /></a>
|
||||||
|
<a href="https://travis-ci.org/gobuffalo/packd"><img src="https://travis-ci.org/gobuffalo/packd.svg?branch=master" alt="Build Status" /></a>
|
||||||
|
<a href="https://goreportcard.com/report/github.com/gobuffalo/packd"><img src="https://goreportcard.com/badge/github.com/gobuffalo/packd" alt="Go Report Card" /></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
# github.com/gobuffalo/packd
|
||||||
|
|
||||||
|
This is a collection of interfaces designed to make using [github.com/gobuffalo/packr](https://github.com/gobuffalo/packr) easier, and to make the transition between v1 and v2 as seamless as possible.
|
||||||
|
|
||||||
|
They can, and should, be used for testing, alternate Box implementations, etc...
|
||||||
|
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ go get -u -v github.com/gobuffalo/packd
|
||||||
|
```
|
||||||
|
|
||||||
|
## Memory Box
|
||||||
|
|
||||||
|
The [`packd#MemoryBox`](https://godoc.org/github.com/gobuffalo/packd#MemoryBox) is a complete, thread-safe, implementation of [`packd#Box`](https://godoc.org/github.com/gobuffalo/packd#Box)
|
10
vendor/github.com/gobuffalo/packd/SHOULDERS.md
generated
vendored
Normal file
10
vendor/github.com/gobuffalo/packd/SHOULDERS.md
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# github.com/gobuffalo/packd Stands on the Shoulders of Giants
|
||||||
|
|
||||||
|
github.com/gobuffalo/packd does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
|
||||||
|
|
||||||
|
Thank you to the following **GIANTS**:
|
||||||
|
|
||||||
|
|
||||||
|
* [github.com/davecgh/go-spew](https://godoc.org/github.com/davecgh/go-spew)
|
||||||
|
|
||||||
|
* [github.com/stretchr/testify](https://godoc.org/github.com/stretchr/testify)
|
126
vendor/github.com/gobuffalo/packd/file.go
generated
vendored
Normal file
126
vendor/github.com/gobuffalo/packd/file.go
generated
vendored
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ File = &virtualFile{}
|
||||||
|
var _ io.Reader = &virtualFile{}
|
||||||
|
var _ io.Writer = &virtualFile{}
|
||||||
|
var _ fmt.Stringer = &virtualFile{}
|
||||||
|
|
||||||
|
type virtualFile struct {
|
||||||
|
io.Reader
|
||||||
|
name string
|
||||||
|
info fileInfo
|
||||||
|
original []byte
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f virtualFile) Name() string {
|
||||||
|
return f.name
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *virtualFile) Seek(offset int64, whence int) (int64, error) {
|
||||||
|
return f.Reader.(*bytes.Reader).Seek(offset, whence)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f virtualFile) FileInfo() (os.FileInfo, error) {
|
||||||
|
return f.info, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *virtualFile) Close() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f virtualFile) Readdir(count int) ([]os.FileInfo, error) {
|
||||||
|
return []os.FileInfo{f.info}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f virtualFile) Stat() (os.FileInfo, error) {
|
||||||
|
return f.info, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f virtualFile) String() string {
|
||||||
|
return string(f.original)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read reads the next len(p) bytes from the virtualFile and
|
||||||
|
// rewind read offset to 0 when it met EOF.
|
||||||
|
func (f *virtualFile) Read(p []byte) (int, error) {
|
||||||
|
i, err := f.Reader.Read(p)
|
||||||
|
|
||||||
|
if i == 0 || err == io.EOF {
|
||||||
|
f.Seek(0, io.SeekStart)
|
||||||
|
}
|
||||||
|
return i, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Write copies byte slice p to content of virtualFile.
|
||||||
|
func (f *virtualFile) Write(p []byte) (int, error) {
|
||||||
|
return f.write(p)
|
||||||
|
}
|
||||||
|
|
||||||
|
// write copies byte slice or data from io.Reader to content of the
|
||||||
|
// virtualFile and update related information of the virtualFile.
|
||||||
|
func (f *virtualFile) write(d interface{}) (c int, err error) {
|
||||||
|
bb := &bytes.Buffer{}
|
||||||
|
switch d.(type) {
|
||||||
|
case []byte:
|
||||||
|
c, err = bb.Write(d.([]byte))
|
||||||
|
case io.Reader:
|
||||||
|
if d != nil {
|
||||||
|
i64, e := io.Copy(bb, d.(io.Reader))
|
||||||
|
c = int(i64)
|
||||||
|
err = e
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
err = fmt.Errorf("unknown type of argument")
|
||||||
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return c, err
|
||||||
|
}
|
||||||
|
|
||||||
|
f.info.size = int64(c)
|
||||||
|
f.info.modTime = time.Now()
|
||||||
|
f.original = bb.Bytes()
|
||||||
|
f.Reader = bytes.NewReader(f.original)
|
||||||
|
return c, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFile returns a new "virtual" file
|
||||||
|
func NewFile(name string, r io.Reader) (File, error) {
|
||||||
|
return buildFile(name, r)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewDir returns a new "virtual" directory
|
||||||
|
func NewDir(name string) (File, error) {
|
||||||
|
v, err := buildFile(name, nil)
|
||||||
|
if err != nil {
|
||||||
|
return v, err
|
||||||
|
}
|
||||||
|
v.info.isDir = true
|
||||||
|
return v, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func buildFile(name string, r io.Reader) (*virtualFile, error) {
|
||||||
|
vf := &virtualFile{
|
||||||
|
name: name,
|
||||||
|
info: fileInfo{
|
||||||
|
Path: name,
|
||||||
|
modTime: time.Now(),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
var err error
|
||||||
|
if r != nil {
|
||||||
|
_, err = vf.write(r)
|
||||||
|
} else {
|
||||||
|
_, err = vf.write([]byte{}) // for safety
|
||||||
|
}
|
||||||
|
return vf, err
|
||||||
|
}
|
39
vendor/github.com/gobuffalo/packd/file_info.go
generated
vendored
Normal file
39
vendor/github.com/gobuffalo/packd/file_info.go
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ os.FileInfo = fileInfo{}
|
||||||
|
|
||||||
|
type fileInfo struct {
|
||||||
|
Path string
|
||||||
|
size int64
|
||||||
|
modTime time.Time
|
||||||
|
isDir bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) Name() string {
|
||||||
|
return f.Path
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) Size() int64 {
|
||||||
|
return f.size
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) Mode() os.FileMode {
|
||||||
|
return 0444
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) ModTime() time.Time {
|
||||||
|
return f.modTime
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) IsDir() bool {
|
||||||
|
return f.isDir
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f fileInfo) Sys() interface{} {
|
||||||
|
return nil
|
||||||
|
}
|
83
vendor/github.com/gobuffalo/packd/interfaces.go
generated
vendored
Normal file
83
vendor/github.com/gobuffalo/packd/interfaces.go
generated
vendored
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
)
|
||||||
|
|
||||||
|
type WalkFunc func(string, File) error
|
||||||
|
|
||||||
|
// Box represents the entirety of the necessary
|
||||||
|
// interfaces to form a "full" box.
|
||||||
|
// github.com/gobuffalo/packr#Box is an example of this interface.
|
||||||
|
type Box interface {
|
||||||
|
HTTPBox
|
||||||
|
Lister
|
||||||
|
Addable
|
||||||
|
Finder
|
||||||
|
Walkable
|
||||||
|
Haser
|
||||||
|
}
|
||||||
|
|
||||||
|
type Haser interface {
|
||||||
|
Has(string) bool
|
||||||
|
}
|
||||||
|
|
||||||
|
type Walker interface {
|
||||||
|
Walk(wf WalkFunc) error
|
||||||
|
}
|
||||||
|
|
||||||
|
type Walkable interface {
|
||||||
|
Walker
|
||||||
|
WalkPrefix(prefix string, wf WalkFunc) error
|
||||||
|
}
|
||||||
|
|
||||||
|
type Finder interface {
|
||||||
|
Find(string) ([]byte, error)
|
||||||
|
FindString(name string) (string, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type HTTPBox interface {
|
||||||
|
Open(name string) (http.File, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type Lister interface {
|
||||||
|
List() []string
|
||||||
|
}
|
||||||
|
|
||||||
|
type Addable interface {
|
||||||
|
AddString(path string, t string) error
|
||||||
|
AddBytes(path string, t []byte) error
|
||||||
|
}
|
||||||
|
|
||||||
|
type SimpleFile interface {
|
||||||
|
fmt.Stringer
|
||||||
|
io.Reader
|
||||||
|
io.Writer
|
||||||
|
Name() string
|
||||||
|
}
|
||||||
|
|
||||||
|
type HTTPFile interface {
|
||||||
|
SimpleFile
|
||||||
|
io.Closer
|
||||||
|
io.Seeker
|
||||||
|
Readdir(count int) ([]os.FileInfo, error)
|
||||||
|
Stat() (os.FileInfo, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
type File interface {
|
||||||
|
HTTPFile
|
||||||
|
FileInfo() (os.FileInfo, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
// LegacyBox represents deprecated methods
|
||||||
|
// that older Box implementations might have had.
|
||||||
|
// github.com/gobuffalo/packr v1 is an example of a LegacyBox.
|
||||||
|
type LegacyBox interface {
|
||||||
|
String(name string) string
|
||||||
|
MustString(name string) (string, error)
|
||||||
|
Bytes(name string) []byte
|
||||||
|
MustBytes(name string) ([]byte, error)
|
||||||
|
}
|
29
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/.gitignore
generated
vendored
Normal file
29
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/.gitignore
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
*.log
|
||||||
|
.DS_Store
|
||||||
|
doc
|
||||||
|
tmp
|
||||||
|
pkg
|
||||||
|
*.gem
|
||||||
|
*.pid
|
||||||
|
coverage
|
||||||
|
coverage.data
|
||||||
|
build/*
|
||||||
|
*.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
.svn
|
||||||
|
profile
|
||||||
|
.console_history
|
||||||
|
.sass-cache/*
|
||||||
|
.rake_tasks~
|
||||||
|
*.log.lck
|
||||||
|
solr/
|
||||||
|
.jhw-cache/
|
||||||
|
jhw.*
|
||||||
|
*.sublime*
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
generated/
|
||||||
|
.vendor/
|
||||||
|
bin/*
|
||||||
|
gin-bin
|
||||||
|
.idea/
|
21
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/LICENSE
generated
vendored
Normal file
21
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2019 Mark Bates
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
61
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/Makefile
generated
vendored
Normal file
61
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/Makefile
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
TAGS ?= ""
|
||||||
|
GO_BIN ?= "go"
|
||||||
|
|
||||||
|
install:
|
||||||
|
$(GO_BIN) install -tags ${TAGS} -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
echo skipping go mod tidy
|
||||||
|
endif
|
||||||
|
|
||||||
|
deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(GO_BIN) build -v .
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
test:
|
||||||
|
$(GO_BIN) test -cover -tags ${TAGS} ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
ci-deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
|
||||||
|
ci-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
|
||||||
|
lint:
|
||||||
|
go get github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||||
|
golangci-lint run --enable-all
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
update:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
rm go.*
|
||||||
|
$(GO_BIN) mod init
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
$(GO_BIN) get -u -tags ${TAGS}
|
||||||
|
endif
|
||||||
|
make test
|
||||||
|
make install
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release:
|
||||||
|
$(GO_BIN) get github.com/gobuffalo/release
|
||||||
|
make tidy
|
||||||
|
release -y -f version.go --skip-packr
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
|
||||||
|
|
6
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/SHOULDERS.md
generated
vendored
Normal file
6
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/SHOULDERS.md
generated
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# github.com/markbates/errx Stands on the Shoulders of Giants
|
||||||
|
|
||||||
|
github.com/markbates/errx does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
|
||||||
|
|
||||||
|
Thank you to the following **GIANTS**:
|
||||||
|
|
71
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/azure-pipelines.yml
generated
vendored
Normal file
71
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/azure-pipelines.yml
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
variables:
|
||||||
|
GOBIN: "$(GOPATH)/bin" # Go binaries path
|
||||||
|
GOPATH: "$(system.defaultWorkingDirectory)/gopath" # Go workspace path
|
||||||
|
modulePath: "$(GOPATH)/src/github.com/$(build.repository.name)" # Path to the module"s code
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- job: Windows
|
||||||
|
pool:
|
||||||
|
vmImage: "vs2017-win2016"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go 1.10:
|
||||||
|
go_version: "1.10"
|
||||||
|
go 1.11 (on):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.11 (off):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
go 1.12 (on):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.12 (off):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
steps:
|
||||||
|
- template: azure-tests.yml
|
||||||
|
|
||||||
|
- job: macOS
|
||||||
|
pool:
|
||||||
|
vmImage: "macOS-10.13"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go 1.10:
|
||||||
|
go_version: "1.10"
|
||||||
|
go 1.11 (on):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.11 (off):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
go 1.12 (on):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.12 (off):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
steps:
|
||||||
|
- template: azure-tests.yml
|
||||||
|
|
||||||
|
- job: Linux
|
||||||
|
pool:
|
||||||
|
vmImage: "ubuntu-16.04"
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
go 1.10:
|
||||||
|
go_version: "1.10"
|
||||||
|
go 1.11 (on):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.11 (off):
|
||||||
|
go_version: "1.11.5"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
go 1.12 (on):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "on"
|
||||||
|
go 1.12 (off):
|
||||||
|
go_version: "1.12"
|
||||||
|
GO111MODULE: "off"
|
||||||
|
steps:
|
||||||
|
- template: azure-tests.yml
|
19
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/azure-tests.yml
generated
vendored
Normal file
19
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/azure-tests.yml
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
steps:
|
||||||
|
- task: GoTool@0
|
||||||
|
inputs:
|
||||||
|
version: $(go_version)
|
||||||
|
- task: Bash@3
|
||||||
|
inputs:
|
||||||
|
targetType: inline
|
||||||
|
script: |
|
||||||
|
mkdir -p "$(GOBIN)"
|
||||||
|
mkdir -p "$(GOPATH)/pkg"
|
||||||
|
mkdir -p "$(modulePath)"
|
||||||
|
shopt -s extglob
|
||||||
|
mv !(gopath) "$(modulePath)"
|
||||||
|
displayName: "Setup Go Workspace"
|
||||||
|
- script: |
|
||||||
|
go get -t -v ./...
|
||||||
|
go test -race ./...
|
||||||
|
workingDirectory: "$(modulePath)"
|
||||||
|
displayName: "Tests"
|
23
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/errx.go
generated
vendored
Normal file
23
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/errx.go
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package errx
|
||||||
|
|
||||||
|
// go2 errors
|
||||||
|
type Wrapper interface {
|
||||||
|
Unwrap() error
|
||||||
|
}
|
||||||
|
|
||||||
|
// pkg/errors
|
||||||
|
type Causer interface {
|
||||||
|
Cause() error
|
||||||
|
}
|
||||||
|
|
||||||
|
func Unwrap(err error) error {
|
||||||
|
switch e := err.(type) {
|
||||||
|
case Wrapper:
|
||||||
|
return e.Unwrap()
|
||||||
|
case Causer:
|
||||||
|
return e.Cause()
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
var Cause = Unwrap
|
4
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/version.go
generated
vendored
Normal file
4
vendor/github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx/version.go
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package errx
|
||||||
|
|
||||||
|
// Version of errx
|
||||||
|
const Version = "v1.0.0"
|
70
vendor/github.com/gobuffalo/packd/map.go
generated
vendored
Normal file
70
vendor/github.com/gobuffalo/packd/map.go
generated
vendored
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sort"
|
||||||
|
"sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ByteMap wraps sync.Map and uses the following types:
|
||||||
|
// key: string
|
||||||
|
// value: []byte
|
||||||
|
type ByteMap struct {
|
||||||
|
data sync.Map
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete the key from the map
|
||||||
|
func (m *ByteMap) Delete(key string) {
|
||||||
|
m.data.Delete(key)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load the key from the map.
|
||||||
|
// Returns []byte or bool.
|
||||||
|
// A false return indicates either the key was not found
|
||||||
|
// or the value is not of type []byte
|
||||||
|
func (m *ByteMap) Load(key string) ([]byte, bool) {
|
||||||
|
i, ok := m.data.Load(key)
|
||||||
|
if !ok {
|
||||||
|
return []byte(``), false
|
||||||
|
}
|
||||||
|
s, ok := i.([]byte)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// LoadOrStore will return an existing key or
|
||||||
|
// store the value if not already in the map
|
||||||
|
func (m *ByteMap) LoadOrStore(key string, value []byte) ([]byte, bool) {
|
||||||
|
i, _ := m.data.LoadOrStore(key, value)
|
||||||
|
s, ok := i.([]byte)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// Range over the []byte values in the map
|
||||||
|
func (m *ByteMap) Range(f func(key string, value []byte) bool) {
|
||||||
|
m.data.Range(func(k, v interface{}) bool {
|
||||||
|
key, ok := k.(string)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
value, ok := v.([]byte)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return f(key, value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store a []byte in the map
|
||||||
|
func (m *ByteMap) Store(key string, value []byte) {
|
||||||
|
m.data.Store(key, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keys returns a list of keys in the map
|
||||||
|
func (m *ByteMap) Keys() []string {
|
||||||
|
var keys []string
|
||||||
|
m.Range(func(key string, value []byte) bool {
|
||||||
|
keys = append(keys, key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
sort.Strings(keys)
|
||||||
|
return keys
|
||||||
|
}
|
156
vendor/github.com/gobuffalo/packd/memory_box.go
generated
vendored
Normal file
156
vendor/github.com/gobuffalo/packd/memory_box.go
generated
vendored
Normal file
@ -0,0 +1,156 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packd/internal/takeon/github.com/markbates/errx"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ Addable = NewMemoryBox()
|
||||||
|
var _ Finder = NewMemoryBox()
|
||||||
|
var _ Lister = NewMemoryBox()
|
||||||
|
var _ HTTPBox = NewMemoryBox()
|
||||||
|
var _ Haser = NewMemoryBox()
|
||||||
|
var _ Walkable = NewMemoryBox()
|
||||||
|
var _ Box = NewMemoryBox()
|
||||||
|
|
||||||
|
// MemoryBox is a thread-safe, in-memory, implementation of the Box interface.
|
||||||
|
type MemoryBox struct {
|
||||||
|
files *ByteMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) Has(path string) bool {
|
||||||
|
_, ok := m.files.Load(path)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) List() []string {
|
||||||
|
var names []string
|
||||||
|
m.files.Range(func(key string, value []byte) bool {
|
||||||
|
names = append(names, key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
|
||||||
|
sort.Strings(names)
|
||||||
|
return names
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) Open(path string) (http.File, error) {
|
||||||
|
cpath := strings.TrimPrefix(path, "/")
|
||||||
|
|
||||||
|
if filepath.Ext(cpath) == "" {
|
||||||
|
// it's a directory
|
||||||
|
return NewDir(path)
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(cpath) == 0 {
|
||||||
|
cpath = "index.html"
|
||||||
|
}
|
||||||
|
|
||||||
|
b, err := m.Find(cpath)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
cpath = filepath.FromSlash(cpath)
|
||||||
|
|
||||||
|
f, err := NewFile(cpath, bytes.NewReader(b))
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return f, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) FindString(path string) (string, error) {
|
||||||
|
bb, err := m.Find(path)
|
||||||
|
return string(bb), err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) Find(path string) (ret []byte, e error) {
|
||||||
|
res, ok := m.files.Load(path)
|
||||||
|
if !ok {
|
||||||
|
|
||||||
|
var b []byte
|
||||||
|
lpath := strings.ToLower(path)
|
||||||
|
err := m.Walk(func(p string, file File) error {
|
||||||
|
lp := strings.ToLower(p)
|
||||||
|
if lp != lpath {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
res := file.String()
|
||||||
|
b = []byte(res)
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return b, os.ErrNotExist
|
||||||
|
}
|
||||||
|
if len(b) == 0 {
|
||||||
|
return b, os.ErrNotExist
|
||||||
|
}
|
||||||
|
return b, nil
|
||||||
|
}
|
||||||
|
return res, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) AddString(path string, t string) error {
|
||||||
|
return m.AddBytes(path, []byte(t))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) AddBytes(path string, t []byte) error {
|
||||||
|
m.files.Store(path, t)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) Walk(wf WalkFunc) error {
|
||||||
|
var err error
|
||||||
|
m.files.Range(func(path string, b []byte) bool {
|
||||||
|
var f File
|
||||||
|
f, err = NewFile(path, bytes.NewReader(b))
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
err = wf(path, f)
|
||||||
|
if err != nil {
|
||||||
|
if errx.Unwrap(err) == filepath.SkipDir {
|
||||||
|
err = nil
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
|
||||||
|
if errx.Unwrap(err) == filepath.SkipDir {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) WalkPrefix(pre string, wf WalkFunc) error {
|
||||||
|
return m.Walk(func(path string, file File) error {
|
||||||
|
if strings.HasPrefix(path, pre) {
|
||||||
|
return wf(path, file)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *MemoryBox) Remove(path string) {
|
||||||
|
m.files.Delete(path)
|
||||||
|
m.files.Delete(strings.ToLower(path))
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewMemoryBox returns a configured *MemoryBox
|
||||||
|
func NewMemoryBox() *MemoryBox {
|
||||||
|
return &MemoryBox{
|
||||||
|
files: &ByteMap{},
|
||||||
|
}
|
||||||
|
}
|
43
vendor/github.com/gobuffalo/packd/skip_walker.go
generated
vendored
Normal file
43
vendor/github.com/gobuffalo/packd/skip_walker.go
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
var CommonSkipPrefixes = []string{".", "_", "node_modules", "vendor"}
|
||||||
|
|
||||||
|
// SkipWalker will walk the Walker and call the WalkFunc for files who's directories
|
||||||
|
// do no match any of the skipPrefixes. If no skipPrefixes are passed, then
|
||||||
|
// CommonSkipPrefixes is used
|
||||||
|
func SkipWalker(walker Walker, skipPrefixes []string, wf WalkFunc) error {
|
||||||
|
if len(skipPrefixes) == 0 {
|
||||||
|
skipPrefixes = append(skipPrefixes, CommonSkipPrefixes...)
|
||||||
|
}
|
||||||
|
return walker.Walk(func(path string, file File) error {
|
||||||
|
fi, err := file.FileInfo()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
path = strings.Replace(path, "\\", "/", -1)
|
||||||
|
|
||||||
|
parts := strings.Split(path, "/")
|
||||||
|
if !fi.IsDir() {
|
||||||
|
parts = parts[:len(parts)-1]
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, base := range parts {
|
||||||
|
if base != "." {
|
||||||
|
for _, skip := range skipPrefixes {
|
||||||
|
skip = strings.ToLower(skip)
|
||||||
|
lbase := strings.ToLower(base)
|
||||||
|
if strings.HasPrefix(lbase, skip) {
|
||||||
|
return filepath.SkipDir
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return wf(path, file)
|
||||||
|
})
|
||||||
|
}
|
4
vendor/github.com/gobuffalo/packd/version.go
generated
vendored
Normal file
4
vendor/github.com/gobuffalo/packd/version.go
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
package packd
|
||||||
|
|
||||||
|
// Version of packd
|
||||||
|
const Version = "v0.3.0"
|
20
vendor/github.com/gobuffalo/packr/v2/.codeclimate.yml
generated
vendored
Normal file
20
vendor/github.com/gobuffalo/packr/v2/.codeclimate.yml
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
engines:
|
||||||
|
golint:
|
||||||
|
enabled: true
|
||||||
|
checks:
|
||||||
|
GoLint/Naming/MixedCaps:
|
||||||
|
enabled: false
|
||||||
|
govet:
|
||||||
|
enabled: true
|
||||||
|
gofmt:
|
||||||
|
enabled: true
|
||||||
|
fixme:
|
||||||
|
enabled: true
|
||||||
|
ratings:
|
||||||
|
paths:
|
||||||
|
- "**.go"
|
||||||
|
exclude_paths:
|
||||||
|
- "**/*_test.go"
|
||||||
|
- "*_test.go"
|
||||||
|
- "fixtures/"
|
37
vendor/github.com/gobuffalo/packr/v2/.gitignore
generated
vendored
Normal file
37
vendor/github.com/gobuffalo/packr/v2/.gitignore
generated
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
*.log
|
||||||
|
./packr2
|
||||||
|
.DS_Store
|
||||||
|
doc
|
||||||
|
tmp
|
||||||
|
pkg
|
||||||
|
*.gem
|
||||||
|
*.pid
|
||||||
|
coverage
|
||||||
|
coverage.data
|
||||||
|
build/*
|
||||||
|
*.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
.svn
|
||||||
|
profile
|
||||||
|
.console_history
|
||||||
|
.sass-cache/*
|
||||||
|
.rake_tasks~
|
||||||
|
*.log.lck
|
||||||
|
solr/
|
||||||
|
.jhw-cache/
|
||||||
|
jhw.*
|
||||||
|
*.sublime*
|
||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
generated/
|
||||||
|
.vendor/
|
||||||
|
bin/*
|
||||||
|
gin-bin
|
||||||
|
/packr_darwin_amd64
|
||||||
|
/packr_linux_amd64
|
||||||
|
.vscode/
|
||||||
|
debug.test
|
||||||
|
.grifter/
|
||||||
|
*-packr.go
|
||||||
|
.idea/
|
||||||
|
|
3
vendor/github.com/gobuffalo/packr/v2/.gometalinter.json
generated
vendored
Normal file
3
vendor/github.com/gobuffalo/packr/v2/.gometalinter.json
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"Enable": ["vet", "golint", "goimports", "deadcode", "gotype", "ineffassign", "misspell", "nakedret", "unconvert", "megacheck", "varcheck"]
|
||||||
|
}
|
42
vendor/github.com/gobuffalo/packr/v2/.goreleaser.yml
generated
vendored
Normal file
42
vendor/github.com/gobuffalo/packr/v2/.goreleaser.yml
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Code generated by github.com/gobuffalo/release. DO NOT EDIT.
|
||||||
|
# Edit .goreleaser.yml.plush instead
|
||||||
|
|
||||||
|
builds:
|
||||||
|
-
|
||||||
|
goos:
|
||||||
|
- darwin
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- ppc64le
|
||||||
|
- 386
|
||||||
|
- amd64
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
ignore:
|
||||||
|
- goos: darwin
|
||||||
|
goarch: ppc64le
|
||||||
|
- goos: windows
|
||||||
|
goarch: ppc64le
|
||||||
|
main: ./packr2/main.go
|
||||||
|
binary: packr2
|
||||||
|
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ .Tag }}-next"
|
||||||
|
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
|
|
||||||
|
brews:
|
||||||
|
-
|
||||||
|
github:
|
||||||
|
owner: gobuffalo
|
||||||
|
name: homebrew-tap
|
||||||
|
|
39
vendor/github.com/gobuffalo/packr/v2/.goreleaser.yml.plush
generated
vendored
Normal file
39
vendor/github.com/gobuffalo/packr/v2/.goreleaser.yml.plush
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
builds:
|
||||||
|
-
|
||||||
|
goos:
|
||||||
|
- darwin
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
goarch:
|
||||||
|
- ppc64le
|
||||||
|
- 386
|
||||||
|
- amd64
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
ignore:
|
||||||
|
- goos: darwin
|
||||||
|
goarch: ppc64le
|
||||||
|
- goos: windows
|
||||||
|
goarch: ppc64le
|
||||||
|
main: ./packr2/main.go
|
||||||
|
binary: packr2
|
||||||
|
|
||||||
|
checksum:
|
||||||
|
name_template: 'checksums.txt'
|
||||||
|
|
||||||
|
snapshot:
|
||||||
|
name_template: "{{ .Tag }}-next"
|
||||||
|
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- '^docs:'
|
||||||
|
- '^test:'
|
||||||
|
<%= if (brew) { %>
|
||||||
|
brews:
|
||||||
|
-
|
||||||
|
github:
|
||||||
|
owner: gobuffalo
|
||||||
|
name: homebrew-tap
|
||||||
|
<% } %>
|
8
vendor/github.com/gobuffalo/packr/v2/LICENSE.txt
generated
vendored
Normal file
8
vendor/github.com/gobuffalo/packr/v2/LICENSE.txt
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
Copyright (c) 2016 Mark Bates
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
46
vendor/github.com/gobuffalo/packr/v2/Makefile
generated
vendored
Normal file
46
vendor/github.com/gobuffalo/packr/v2/Makefile
generated
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
TAGS ?= "sqlite"
|
||||||
|
GO_BIN ?= go
|
||||||
|
|
||||||
|
install: deps
|
||||||
|
echo "installing packr v2"
|
||||||
|
packr2
|
||||||
|
$(GO_BIN) install -v ./packr2
|
||||||
|
|
||||||
|
tidy:
|
||||||
|
ifeq ($(GO111MODULE),on)
|
||||||
|
$(GO_BIN) mod tidy
|
||||||
|
else
|
||||||
|
echo skipping go mod tidy
|
||||||
|
endif
|
||||||
|
|
||||||
|
deps:
|
||||||
|
$(GO_BIN) get -tags ${TAGS} -t ./...
|
||||||
|
$(GO_BIN) install -v ./packr2
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
build: deps
|
||||||
|
packr2
|
||||||
|
$(GO_BIN) build -v ./packr2
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
test:
|
||||||
|
packr2
|
||||||
|
$(GO_BIN) test -tags ${TAGS} ./...
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
lint:
|
||||||
|
gometalinter --vendor ./... --deadline=1m --skip=internal
|
||||||
|
|
||||||
|
update:
|
||||||
|
$(GO_BIN) get -u -tags ${TAGS} ./...
|
||||||
|
make tidy
|
||||||
|
make install
|
||||||
|
make test
|
||||||
|
make tidy
|
||||||
|
|
||||||
|
release-test:
|
||||||
|
$(GO_BIN) test -tags ${TAGS} -race ./...
|
||||||
|
|
||||||
|
release:
|
||||||
|
release -y -f version.go
|
||||||
|
make tidy
|
277
vendor/github.com/gobuffalo/packr/v2/README.md
generated
vendored
Normal file
277
vendor/github.com/gobuffalo/packr/v2/README.md
generated
vendored
Normal file
@ -0,0 +1,277 @@
|
|||||||
|
**NOTICE: Please consider migrating your projects to
|
||||||
|
[embed](https://pkg.go.dev/embed) which is native file embedding feature of Go,
|
||||||
|
or github.com/markbates/pkger. It has an idiomatic API, minimal dependencies, a stronger test suite (tested directly against the std lib counterparts), transparent tooling, and more.**
|
||||||
|
|
||||||
|
https://blog.gobuffalo.io/introducing-pkger-static-file-embedding-in-go-1ce76dc79c65
|
||||||
|
|
||||||
|
# Packr (v2)
|
||||||
|
|
||||||
|
[![GoDoc](https://godoc.org/github.com/gobuffalo/packr/v2?status.svg)](https://godoc.org/github.com/gobuffalo/packr/v2)
|
||||||
|
[![Actions Status](https://github.com/gobuffalo/packr/workflows/Tests/badge.svg)](https://github.com/gobuffalo/packr/actions)
|
||||||
|
|
||||||
|
Packr is a simple solution for bundling static assets inside of Go binaries. Most importantly it does it in a way that is friendly to developers while they are developing.
|
||||||
|
|
||||||
|
At this moment, supported go versions are:
|
||||||
|
|
||||||
|
* 1.16.x
|
||||||
|
* 1.17.x
|
||||||
|
|
||||||
|
even though it may (or may not) working well with older versions.
|
||||||
|
|
||||||
|
## Intro Video
|
||||||
|
|
||||||
|
To get an idea of the what and why of Packr, please enjoy this short video: [https://vimeo.com/219863271](https://vimeo.com/219863271).
|
||||||
|
|
||||||
|
## Library Installation
|
||||||
|
|
||||||
|
### Go 1.16 and above
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go install github.com/gobuffalo/packr/v2@v2.8.3
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go install github.com/gobuffalo/packr/v2@latest
|
||||||
|
```
|
||||||
|
|
||||||
|
### Go 1.15 and below
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go get -u github.com/gobuffalo/packr/...
|
||||||
|
```
|
||||||
|
|
||||||
|
## Binary Installation
|
||||||
|
|
||||||
|
### Go 1.16 and above
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go install github.com/gobuffalo/packr/v2/packr2@v2.8.3
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go install github.com/gobuffalo/packr/v2/packr2@latest
|
||||||
|
```
|
||||||
|
|
||||||
|
### Go 1.15 and below
|
||||||
|
|
||||||
|
```console
|
||||||
|
$ go get -u github.com/gobuffalo/packr/packr2
|
||||||
|
```
|
||||||
|
|
||||||
|
## New File Format FAQs
|
||||||
|
|
||||||
|
In version `v2.0.0` the file format changed and is not backward compatible with the `packr-v1.x` library.
|
||||||
|
|
||||||
|
#### Can `packr-v1.x` read the new format?
|
||||||
|
|
||||||
|
No, it can not. Because of the way the new file format works porting it to `packr-v1.x` would be difficult. PRs are welcome though. :)
|
||||||
|
|
||||||
|
#### Can `packr-v2.x` read `packr-v1.x` files?
|
||||||
|
|
||||||
|
Yes it can, but that ability will eventually be phased out. Because of that we recommend moving to the new format.
|
||||||
|
|
||||||
|
#### Can `packr-v2.x` generate `packr-v1.x` files?
|
||||||
|
|
||||||
|
Yes it can, but that ability will eventually be phased out. Because of that we recommend moving to the new format.
|
||||||
|
|
||||||
|
The `--legacy` command is available on all commands that generate `-packr.go` files.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ packr2 --legacy
|
||||||
|
```
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
### In Code
|
||||||
|
|
||||||
|
The first step in using Packr is to create a new box. A box represents a folder on disk. Once you have a box you can get `string` or `[]byte` representations of the file.
|
||||||
|
|
||||||
|
```go
|
||||||
|
// set up a new box by giving it a name and an optional (relative) path to a folder on disk:
|
||||||
|
box := packr.New("My Box", "./templates")
|
||||||
|
|
||||||
|
// Get the string representation of a file, or an error if it doesn't exist:
|
||||||
|
html, err := box.FindString("index.html")
|
||||||
|
|
||||||
|
// Get the []byte representation of a file, or an error if it doesn't exist:
|
||||||
|
html, err := box.Find("index.html")
|
||||||
|
```
|
||||||
|
|
||||||
|
### What is a Box?
|
||||||
|
|
||||||
|
A box represents a folder, and any sub-folders, on disk that you want to have access to in your binary. When compiling a binary using the `packr2` CLI the contents of the folder will be converted into Go files that can be compiled inside of a "standard" go binary. Inside of the compiled binary the files will be read from memory. When working locally the files will be read directly off of disk. This is a seamless switch that doesn't require any special attention on your part.
|
||||||
|
|
||||||
|
#### Example
|
||||||
|
|
||||||
|
Assume the follow directory structure:
|
||||||
|
|
||||||
|
```
|
||||||
|
├── main.go
|
||||||
|
└── templates
|
||||||
|
├── admin
|
||||||
|
│ └── index.html
|
||||||
|
└── index.html
|
||||||
|
```
|
||||||
|
|
||||||
|
The following program will read the `./templates/admin/index.html` file and print it out.
|
||||||
|
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
box := packr.New("myBox", "./templates")
|
||||||
|
|
||||||
|
s, err := box.FindString("admin/index.html")
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
fmt.Println(s)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Development Made Easy
|
||||||
|
|
||||||
|
In order to get static files into a Go binary, those files must first be converted to Go code. To do that, Packr, ships with a few tools to help build binaries. See below.
|
||||||
|
|
||||||
|
During development, however, it is painful to have to keep running a tool to compile those files.
|
||||||
|
|
||||||
|
Packr uses the following resolution rules when looking for a file:
|
||||||
|
|
||||||
|
1. Look for the file in-memory (inside a Go binary)
|
||||||
|
1. Look for the file on disk (during development)
|
||||||
|
|
||||||
|
Because Packr knows how to fall through to the file system, developers don't need to worry about constantly compiling their static files into a binary. They can work unimpeded.
|
||||||
|
|
||||||
|
Packr takes file resolution a step further. When declaring a new box you use a relative path, `./templates`. When Packr receives this call it calculates out the absolute path to that directory. By doing this it means you can be guaranteed that Packr can find your files correctly, even if you're not running in the directory that the box was created in. This helps with the problem of testing, where Go changes the `pwd` for each package, making relative paths difficult to work with. This is not a problem when using Packr.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Usage with HTTP
|
||||||
|
|
||||||
|
A box implements the [`http.FileSystem`](https://golang.org/pkg/net/http/#FileSystem) interface, meaning it can be used to serve static files.
|
||||||
|
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
box := packr.New("someBoxName", "./templates")
|
||||||
|
|
||||||
|
http.Handle("/", http.FileServer(box))
|
||||||
|
http.ListenAndServe(":3000", nil)
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Building a Binary
|
||||||
|
|
||||||
|
Before you build your Go binary, run the `packr2` command first. It will look for all the boxes in your code and then generate `.go` files that pack the static files into bytes that can be bundled into the Go binary.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ packr2
|
||||||
|
```
|
||||||
|
|
||||||
|
Then run your `go build command` like normal.
|
||||||
|
|
||||||
|
*NOTE*: It is not recommended to check-in these generated `-packr.go` files. They can be large, and can easily become out of date if not careful. It is recommended that you always run `packr2 clean` after running the `packr2` tool.
|
||||||
|
|
||||||
|
#### Cleaning Up
|
||||||
|
|
||||||
|
When you're done it is recommended that you run the `packr2 clean` command. This will remove all of the generated files that Packr created for you.
|
||||||
|
|
||||||
|
```
|
||||||
|
$ packr2 clean
|
||||||
|
```
|
||||||
|
|
||||||
|
Why do you want to do this? Packr first looks to the information stored in these generated files, if the information isn't there it looks to disk. This makes it easy to work with in development.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Debugging
|
||||||
|
|
||||||
|
The `packr2` command passes all arguments down to the underlying `go` command, this includes the `-v` flag to print out `go build` information. Packr looks for the `-v` flag, and will turn on its own verbose logging. This is very useful for trying to understand what the `packr` command is doing when it is run.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Compilation Errors with Go Templates
|
||||||
|
|
||||||
|
Q: I have a program with Go template files, those files are named `foo.go` and look like the following:
|
||||||
|
|
||||||
|
```
|
||||||
|
// Copyright {{.Year}} {{.Author}}. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package {{.Project}}
|
||||||
|
```
|
||||||
|
|
||||||
|
When I run `packr2` I get errors like:
|
||||||
|
|
||||||
|
```
|
||||||
|
expected 'IDENT', found '{'
|
||||||
|
```
|
||||||
|
|
||||||
|
A: Packr works by searching your `.go` files for [`github.com/gobuffalo/packr/v2#New`](https://godoc.org/github.com/gobuffalo/packr/v2#New) or [`github.com/gobuffalo/packr/v2#NewBox`](https://godoc.org/github.com/gobuffalo/packr/v2#NewBox) calls. Because those files aren't "proper" Go files, Packr can't parse them to find the box declarations. To fix this you need to tell Packr to ignore those files when searching for boxes. A couple solutions to this problem are:
|
||||||
|
|
||||||
|
* Name the files something else. The `.tmpl` extension is the idiomatic way of naming these types of files.
|
||||||
|
* Rename the folder containing these files to start with an `_`, for example `_templates`. Packr, like Go, will ignore folders starting with the `_` character when searching for boxes.
|
||||||
|
|
||||||
|
### Dynamic Box Paths
|
||||||
|
|
||||||
|
Q: I need to set the path of a box using a variable, but `packr.New("foo", myVar)` doesn't work correctly.
|
||||||
|
|
||||||
|
A: Packr attempts to "automagically" set it's resolution directory when using [`github.com/gobuffalo/packr/v2#New`](https://godoc.org/github.com/gobuffalo/packr/v2#New), however, for dynamic paths you need to set it manually:
|
||||||
|
|
||||||
|
```go
|
||||||
|
box := packr.New("foo", "|")
|
||||||
|
box.ResolutionDir = myVar
|
||||||
|
```
|
||||||
|
|
||||||
|
### I don't want to pack files, but still use the Packr interface.
|
||||||
|
|
||||||
|
Q: I want to write code that using the Packr tools, but doesn't actually pack the files into my binary. How can I do that?
|
||||||
|
|
||||||
|
A: Using [`github.com/gobuffalo/packr/v2#Folder`](https://godoc.org/github.com/gobuffalo/packr/v2#Folder) gives you back a `*packr.Box` that can be used as normal, but is excluded by the Packr tool when compiling.
|
||||||
|
|
||||||
|
### Packr Finds No Boxes
|
||||||
|
|
||||||
|
Q: I run `packr2 -v` but it doesn't find my boxes:
|
||||||
|
|
||||||
|
```
|
||||||
|
DEBU[2019-03-18T18:48:52+01:00] *parser.Parser#NewFromRoots found prospects=0
|
||||||
|
DEBU[2019-03-18T18:48:52+01:00] found 0 boxes
|
||||||
|
```
|
||||||
|
|
||||||
|
A: Packr works by parsing `.go` files to find [`github.com/gobuffalo/packr/v2#Box`](https://godoc.org/github.com/gobuffalo/packr/v2#Box) and [`github.com/gobuffalo/packr/v2#NewBox`](https://godoc.org/github.com/gobuffalo/packr/v2#NewBox) declarations. If there aren't any `.go` in the folder that `packr2` is run in it can not find those declarations. To fix this problem run the `packr2` command in the directory containing your `.go` files.
|
||||||
|
|
||||||
|
### Box Interfaces
|
||||||
|
|
||||||
|
Q: I want to be able to easily test my applications by passing in mock boxes. How do I do that?
|
||||||
|
|
||||||
|
A: Packr boxes and files conform to the interfaces found at [`github.com/gobuffalo/packd`](https://godoc.org/github.com/gobuffalo/packd). Change your application to use those interfaces instead of the concrete Packr types.
|
||||||
|
|
||||||
|
```go
|
||||||
|
// using concrete type
|
||||||
|
func myFunc(box *packr.Box) {}
|
||||||
|
|
||||||
|
// using interfaces
|
||||||
|
func myFunc(box packd.Box) {}
|
||||||
|
```
|
32
vendor/github.com/gobuffalo/packr/v2/SHOULDERS.md
generated
vendored
Normal file
32
vendor/github.com/gobuffalo/packr/v2/SHOULDERS.md
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
# github.com/gobuffalo/packr/v2 Stands on the Shoulders of Giants
|
||||||
|
|
||||||
|
github.com/gobuffalo/packr/v2 does not try to reinvent the wheel! Instead, it uses the already great wheels developed by the Go community and puts them all together in the best way possible. Without these giants, this project would not be possible. Please make sure to check them out and thank them for all of their hard work.
|
||||||
|
|
||||||
|
Thank you to the following **GIANTS**:
|
||||||
|
|
||||||
|
|
||||||
|
* [github.com/gobuffalo/logger](https://godoc.org/github.com/gobuffalo/logger)
|
||||||
|
|
||||||
|
* [github.com/gobuffalo/packd](https://godoc.org/github.com/gobuffalo/packd)
|
||||||
|
|
||||||
|
* [github.com/karrick/godirwalk](https://godoc.org/github.com/karrick/godirwalk)
|
||||||
|
|
||||||
|
* [github.com/konsorten/go-windows-terminal-sequences](https://godoc.org/github.com/konsorten/go-windows-terminal-sequences)
|
||||||
|
|
||||||
|
* [github.com/markbates/errx](https://godoc.org/github.com/markbates/errx)
|
||||||
|
|
||||||
|
* [github.com/markbates/oncer](https://godoc.org/github.com/markbates/oncer)
|
||||||
|
|
||||||
|
* [github.com/markbates/safe](https://godoc.org/github.com/markbates/safe)
|
||||||
|
|
||||||
|
* [github.com/rogpeppe/go-internal](https://godoc.org/github.com/rogpeppe/go-internal)
|
||||||
|
|
||||||
|
* [github.com/sirupsen/logrus](https://godoc.org/github.com/sirupsen/logrus)
|
||||||
|
|
||||||
|
* [github.com/spf13/cobra](https://godoc.org/github.com/spf13/cobra)
|
||||||
|
|
||||||
|
* [github.com/stretchr/testify](https://godoc.org/github.com/stretchr/testify)
|
||||||
|
|
||||||
|
* [golang.org/x/sync](https://godoc.org/golang.org/x/sync)
|
||||||
|
|
||||||
|
* [golang.org/x/tools](https://godoc.org/golang.org/x/tools)
|
240
vendor/github.com/gobuffalo/packr/v2/box.go
generated
vendored
Normal file
240
vendor/github.com/gobuffalo/packr/v2/box.go
generated
vendored
Normal file
@ -0,0 +1,240 @@
|
|||||||
|
package packr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"net/http"
|
||||||
|
"os"
|
||||||
|
"path"
|
||||||
|
"path/filepath"
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packd"
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
"github.com/gobuffalo/packr/v2/file/resolver"
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
"github.com/markbates/oncer"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ packd.Box = &Box{}
|
||||||
|
var _ packd.HTTPBox = &Box{}
|
||||||
|
var _ packd.Addable = &Box{}
|
||||||
|
var _ packd.Walkable = &Box{}
|
||||||
|
var _ packd.Finder = &Box{}
|
||||||
|
|
||||||
|
// Box represent a folder on a disk you want to
|
||||||
|
// have access to in the built Go binary.
|
||||||
|
type Box struct {
|
||||||
|
Path string `json:"path"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
ResolutionDir string `json:"resolution_dir"`
|
||||||
|
DefaultResolver resolver.Resolver `json:"default_resolver"`
|
||||||
|
resolvers resolversMap
|
||||||
|
dirs dirsMap
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewBox returns a Box that can be used to
|
||||||
|
// retrieve files from either disk or the embedded
|
||||||
|
// binary.
|
||||||
|
// Deprecated: Use New instead.
|
||||||
|
func NewBox(path string) *Box {
|
||||||
|
oncer.Deprecate(0, "packr.NewBox", "Use packr.New instead.")
|
||||||
|
return New(path, path)
|
||||||
|
}
|
||||||
|
|
||||||
|
// New returns a new Box with the name of the box
|
||||||
|
// and the path of the box.
|
||||||
|
func New(name string, path string) *Box {
|
||||||
|
plog.Debug("packr", "New", "name", name, "path", path)
|
||||||
|
b, _ := findBox(name)
|
||||||
|
if b != nil {
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
b = construct(name, path)
|
||||||
|
plog.Debug(b, "New", "Box", b, "ResolutionDir", b.ResolutionDir)
|
||||||
|
b, err := placeBox(b)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
// Folder returns a Box that will NOT be packed.
|
||||||
|
// This is useful for writing tests or tools that
|
||||||
|
// need to work with a folder at runtime.
|
||||||
|
func Folder(path string) *Box {
|
||||||
|
return New(path, path)
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetResolver allows for the use of a custom resolver for
|
||||||
|
// the specified file
|
||||||
|
func (b *Box) SetResolver(file string, res resolver.Resolver) {
|
||||||
|
d := filepath.Dir(file)
|
||||||
|
b.dirs.Store(d, true)
|
||||||
|
plog.Debug(b, "SetResolver", "file", file, "resolver", fmt.Sprintf("%T", res))
|
||||||
|
b.resolvers.Store(resolver.Key(file), res)
|
||||||
|
}
|
||||||
|
|
||||||
|
// AddString converts t to a byteslice and delegates to AddBytes to add to b.data
|
||||||
|
func (b *Box) AddString(path string, t string) error {
|
||||||
|
return b.AddBytes(path, []byte(t))
|
||||||
|
}
|
||||||
|
|
||||||
|
// AddBytes sets t in b.data by the given path
|
||||||
|
func (b *Box) AddBytes(path string, t []byte) error {
|
||||||
|
m := map[string]file.File{}
|
||||||
|
f, err := file.NewFile(path, t)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
m[resolver.Key(path)] = f
|
||||||
|
res := resolver.NewInMemory(m)
|
||||||
|
b.SetResolver(path, res)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// FindString returns either the string of the requested
|
||||||
|
// file or an error if it can not be found.
|
||||||
|
func (b *Box) FindString(name string) (string, error) {
|
||||||
|
bb, err := b.Find(name)
|
||||||
|
return string(bb), err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Find returns either the byte slice of the requested
|
||||||
|
// file or an error if it can not be found.
|
||||||
|
func (b *Box) Find(name string) ([]byte, error) {
|
||||||
|
f, err := b.Resolve(name)
|
||||||
|
if err != nil {
|
||||||
|
return []byte(""), err
|
||||||
|
}
|
||||||
|
bb := &bytes.Buffer{}
|
||||||
|
io.Copy(bb, f)
|
||||||
|
return bb.Bytes(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Has returns true if the resource exists in the box
|
||||||
|
func (b *Box) Has(name string) bool {
|
||||||
|
_, err := b.Find(name)
|
||||||
|
return err == nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasDir returns true if the directory exists in the box
|
||||||
|
func (b *Box) HasDir(name string) bool {
|
||||||
|
oncer.Do("packr2/box/HasDir"+b.Name, func() {
|
||||||
|
for _, f := range b.List() {
|
||||||
|
for d := filepath.Dir(f); d != "."; d = filepath.Dir(d) {
|
||||||
|
b.dirs.Store(d, true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if name == "/" {
|
||||||
|
return b.Has("index.html")
|
||||||
|
}
|
||||||
|
_, ok := b.dirs.Load(name)
|
||||||
|
return ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// Open returns a File using the http.File interface
|
||||||
|
func (b *Box) Open(name string) (http.File, error) {
|
||||||
|
plog.Debug(b, "Open", "name", name)
|
||||||
|
f, err := b.Resolve(name)
|
||||||
|
if err != nil {
|
||||||
|
if len(filepath.Ext(name)) == 0 {
|
||||||
|
return b.openWoExt(name)
|
||||||
|
}
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
f, err = file.NewFileR(name, f)
|
||||||
|
plog.Debug(b, "Open", "name", f.Name(), "file", f.Name())
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (b *Box) openWoExt(name string) (http.File, error) {
|
||||||
|
if !b.HasDir(name) {
|
||||||
|
id := path.Join(name, "index.html")
|
||||||
|
if b.Has(id) {
|
||||||
|
return b.Open(id)
|
||||||
|
}
|
||||||
|
return nil, os.ErrNotExist
|
||||||
|
}
|
||||||
|
d, err := file.NewDir(name)
|
||||||
|
plog.Debug(b, "Open", "name", name, "dir", d)
|
||||||
|
return d, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// List shows "What's in the box?"
|
||||||
|
func (b *Box) List() []string {
|
||||||
|
var keys []string
|
||||||
|
|
||||||
|
b.Walk(func(path string, info File) error {
|
||||||
|
if info == nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
finfo, _ := info.FileInfo()
|
||||||
|
if !finfo.IsDir() {
|
||||||
|
keys = append(keys, path)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
sort.Strings(keys)
|
||||||
|
return keys
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resolve will attempt to find the file in the box,
|
||||||
|
// returning an error if the find can not be found.
|
||||||
|
func (b *Box) Resolve(key string) (file.File, error) {
|
||||||
|
key = strings.TrimPrefix(key, "/")
|
||||||
|
|
||||||
|
var r resolver.Resolver
|
||||||
|
|
||||||
|
b.resolvers.Range(func(k string, vr resolver.Resolver) bool {
|
||||||
|
lk := strings.ToLower(resolver.Key(k))
|
||||||
|
lkey := strings.ToLower(resolver.Key(key))
|
||||||
|
if lk == lkey {
|
||||||
|
r = vr
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
|
||||||
|
if r == nil {
|
||||||
|
r = b.DefaultResolver
|
||||||
|
if r == nil {
|
||||||
|
r = resolver.DefaultResolver
|
||||||
|
if r == nil {
|
||||||
|
return nil, fmt.Errorf("resolver.DefaultResolver is nil")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
plog.Debug(r, "Resolve", "box", b.Name, "key", key)
|
||||||
|
|
||||||
|
f, err := r.Resolve(b.Name, key)
|
||||||
|
if err != nil {
|
||||||
|
z, err := resolver.ResolvePathInBase(resolver.OsPath(b.ResolutionDir), filepath.FromSlash(path.Clean("/"+resolver.OsPath(key))))
|
||||||
|
if err != nil {
|
||||||
|
plog.Debug(r, "Resolve", "box", b.Name, "key", key, "err", err)
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
|
||||||
|
f, err = r.Resolve(b.Name, z)
|
||||||
|
if err != nil {
|
||||||
|
plog.Debug(r, "Resolve", "box", b.Name, "key", z, "err", err)
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
b, err := ioutil.ReadAll(f)
|
||||||
|
if err != nil {
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
f, err = file.NewFile(key, b)
|
||||||
|
if err != nil {
|
||||||
|
return f, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
plog.Debug(r, "Resolve", "box", b.Name, "key", key, "file", f.Name())
|
||||||
|
return f, nil
|
||||||
|
}
|
73
vendor/github.com/gobuffalo/packr/v2/box_map.go
generated
vendored
Normal file
73
vendor/github.com/gobuffalo/packr/v2/box_map.go
generated
vendored
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
//go:generate mapgen -name "box" -zero "nil" -go-type "*Box" -pkg "" -a "New(`test-a`, ``)" -b "New(`test-b`, ``)" -c "New(`test-c`, ``)" -bb "New(`test-bb`, ``)" -destination "packr"
|
||||||
|
// Code generated by github.com/gobuffalo/mapgen. DO NOT EDIT.
|
||||||
|
|
||||||
|
package packr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sort"
|
||||||
|
"sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
// boxMap wraps sync.Map and uses the following types:
|
||||||
|
// key: string
|
||||||
|
// value: *Box
|
||||||
|
type boxMap struct {
|
||||||
|
data sync.Map
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete the key from the map
|
||||||
|
func (m *boxMap) Delete(key string) {
|
||||||
|
m.data.Delete(key)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load the key from the map.
|
||||||
|
// Returns *Box or bool.
|
||||||
|
// A false return indicates either the key was not found
|
||||||
|
// or the value is not of type *Box
|
||||||
|
func (m *boxMap) Load(key string) (*Box, bool) {
|
||||||
|
i, ok := m.data.Load(key)
|
||||||
|
if !ok {
|
||||||
|
return nil, false
|
||||||
|
}
|
||||||
|
s, ok := i.(*Box)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// LoadOrStore will return an existing key or
|
||||||
|
// store the value if not already in the map
|
||||||
|
func (m *boxMap) LoadOrStore(key string, value *Box) (*Box, bool) {
|
||||||
|
i, _ := m.data.LoadOrStore(key, value)
|
||||||
|
s, ok := i.(*Box)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// Range over the *Box values in the map
|
||||||
|
func (m *boxMap) Range(f func(key string, value *Box) bool) {
|
||||||
|
m.data.Range(func(k, v interface{}) bool {
|
||||||
|
key, ok := k.(string)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
value, ok := v.(*Box)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return f(key, value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store a *Box in the map
|
||||||
|
func (m *boxMap) Store(key string, value *Box) {
|
||||||
|
m.data.Store(key, value)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keys returns a list of keys in the map
|
||||||
|
func (m *boxMap) Keys() []string {
|
||||||
|
var keys []string
|
||||||
|
m.Range(func(key string, value *Box) bool {
|
||||||
|
keys = append(keys, key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
sort.Strings(keys)
|
||||||
|
return keys
|
||||||
|
}
|
79
vendor/github.com/gobuffalo/packr/v2/deprecated.go
generated
vendored
Normal file
79
vendor/github.com/gobuffalo/packr/v2/deprecated.go
generated
vendored
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
package packr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
"github.com/gobuffalo/packr/v2/file/resolver"
|
||||||
|
"github.com/markbates/oncer"
|
||||||
|
)
|
||||||
|
|
||||||
|
// File has been deprecated and file.File should be used instead
|
||||||
|
type File = file.File
|
||||||
|
|
||||||
|
var (
|
||||||
|
// ErrResOutsideBox gets returned in case of the requested resources being outside the box
|
||||||
|
// Deprecated
|
||||||
|
ErrResOutsideBox = fmt.Errorf("can't find a resource outside the box")
|
||||||
|
)
|
||||||
|
|
||||||
|
// PackBytes packs bytes for a file into a box.
|
||||||
|
// Deprecated
|
||||||
|
func PackBytes(box string, name string, bb []byte) {
|
||||||
|
b := NewBox(box)
|
||||||
|
d := resolver.NewInMemory(map[string]file.File{})
|
||||||
|
f, err := file.NewFile(name, bb)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
if err := d.Pack(name, f); err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
b.SetResolver(name, d)
|
||||||
|
}
|
||||||
|
|
||||||
|
// PackBytesGzip packets the gzipped compressed bytes into a box.
|
||||||
|
// Deprecated
|
||||||
|
func PackBytesGzip(box string, name string, bb []byte) error {
|
||||||
|
// TODO: this function never did what it was supposed to do!
|
||||||
|
PackBytes(box, name, bb)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// PackJSONBytes packs JSON encoded bytes for a file into a box.
|
||||||
|
// Deprecated
|
||||||
|
func PackJSONBytes(box string, name string, jbb string) error {
|
||||||
|
var bb []byte
|
||||||
|
err := json.Unmarshal([]byte(jbb), &bb)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
PackBytes(box, name, bb)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Bytes is deprecated. Use Find instead
|
||||||
|
func (b *Box) Bytes(name string) []byte {
|
||||||
|
bb, _ := b.Find(name)
|
||||||
|
oncer.Deprecate(0, "github.com/gobuffalo/packr/v2#Box.Bytes", "Use github.com/gobuffalo/packr/v2#Box.Find instead.")
|
||||||
|
return bb
|
||||||
|
}
|
||||||
|
|
||||||
|
// MustBytes is deprecated. Use Find instead.
|
||||||
|
func (b *Box) MustBytes(name string) ([]byte, error) {
|
||||||
|
oncer.Deprecate(0, "github.com/gobuffalo/packr/v2#Box.MustBytes", "Use github.com/gobuffalo/packr/v2#Box.Find instead.")
|
||||||
|
return b.Find(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// String is deprecated. Use FindString instead
|
||||||
|
func (b *Box) String(name string) string {
|
||||||
|
oncer.Deprecate(0, "github.com/gobuffalo/packr/v2#Box.String", "Use github.com/gobuffalo/packr/v2#Box.FindString instead.")
|
||||||
|
return string(b.Bytes(name))
|
||||||
|
}
|
||||||
|
|
||||||
|
// MustString is deprecated. Use FindString instead
|
||||||
|
func (b *Box) MustString(name string) (string, error) {
|
||||||
|
oncer.Deprecate(0, "github.com/gobuffalo/packr/v2#Box.MustString", "Use github.com/gobuffalo/packr/v2#Box.FindString instead.")
|
||||||
|
return b.FindString(name)
|
||||||
|
}
|
82
vendor/github.com/gobuffalo/packr/v2/dirs_map.go
generated
vendored
Normal file
82
vendor/github.com/gobuffalo/packr/v2/dirs_map.go
generated
vendored
Normal file
@ -0,0 +1,82 @@
|
|||||||
|
//go:generate mapgen -name "dirs" -zero "false" -go-type "bool" -pkg "" -a "nil" -b "nil" -c "nil" -bb "nil" -destination "packr"
|
||||||
|
// Code generated by github.com/gobuffalo/mapgen. DO NOT EDIT.
|
||||||
|
|
||||||
|
package packr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"sort"
|
||||||
|
"strings"
|
||||||
|
"sync"
|
||||||
|
)
|
||||||
|
|
||||||
|
// dirsMap wraps sync.Map and uses the following types:
|
||||||
|
// key: string
|
||||||
|
// value: bool
|
||||||
|
type dirsMap struct {
|
||||||
|
data sync.Map
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete the key from the map
|
||||||
|
func (m *dirsMap) Delete(key string) {
|
||||||
|
m.data.Delete(m.normalizeKey(key))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Load the key from the map.
|
||||||
|
// Returns bool or bool.
|
||||||
|
// A false return indicates either the key was not found
|
||||||
|
// or the value is not of type bool
|
||||||
|
func (m *dirsMap) Load(key string) (bool, bool) {
|
||||||
|
i, ok := m.data.Load(m.normalizeKey(key))
|
||||||
|
if !ok {
|
||||||
|
return false, false
|
||||||
|
}
|
||||||
|
s, ok := i.(bool)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// LoadOrStore will return an existing key or
|
||||||
|
// store the value if not already in the map
|
||||||
|
func (m *dirsMap) LoadOrStore(key string, value bool) (bool, bool) {
|
||||||
|
i, _ := m.data.LoadOrStore(m.normalizeKey(key), value)
|
||||||
|
s, ok := i.(bool)
|
||||||
|
return s, ok
|
||||||
|
}
|
||||||
|
|
||||||
|
// Range over the bool values in the map
|
||||||
|
func (m *dirsMap) Range(f func(key string, value bool) bool) {
|
||||||
|
m.data.Range(func(k, v interface{}) bool {
|
||||||
|
key, ok := k.(string)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
value, ok := v.(bool)
|
||||||
|
if !ok {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
return f(key, value)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store a bool in the map
|
||||||
|
func (m *dirsMap) Store(key string, value bool) {
|
||||||
|
d := m.normalizeKey(key)
|
||||||
|
m.data.Store(d, value)
|
||||||
|
m.data.Store(strings.TrimPrefix(d, "/"), value)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Keys returns a list of keys in the map
|
||||||
|
func (m *dirsMap) Keys() []string {
|
||||||
|
var keys []string
|
||||||
|
m.Range(func(key string, value bool) bool {
|
||||||
|
keys = append(keys, key)
|
||||||
|
return true
|
||||||
|
})
|
||||||
|
sort.Strings(keys)
|
||||||
|
return keys
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *dirsMap) normalizeKey(key string) string {
|
||||||
|
key = strings.Replace(key, "\\", "/", -1)
|
||||||
|
|
||||||
|
return key
|
||||||
|
}
|
32
vendor/github.com/gobuffalo/packr/v2/file/file.go
generated
vendored
Normal file
32
vendor/github.com/gobuffalo/packr/v2/file/file.go
generated
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
package file
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"io"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packd"
|
||||||
|
)
|
||||||
|
|
||||||
|
// File represents a virtual, or physical, backing of
|
||||||
|
// a file object in a Box
|
||||||
|
type File = packd.File
|
||||||
|
|
||||||
|
// FileMappable types are capable of returning a map of
|
||||||
|
// path => File
|
||||||
|
type FileMappable interface {
|
||||||
|
FileMap() map[string]File
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFile returns a virtual File implementation
|
||||||
|
func NewFile(name string, b []byte) (File, error) {
|
||||||
|
return packd.NewFile(name, bytes.NewReader(b))
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewDir returns a virtual dir implementation
|
||||||
|
func NewDir(name string) (File, error) {
|
||||||
|
return packd.NewDir(name)
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewFileR(name string, r io.Reader) (File, error) {
|
||||||
|
return packd.NewFile(name, r)
|
||||||
|
}
|
38
vendor/github.com/gobuffalo/packr/v2/file/info.go
generated
vendored
Normal file
38
vendor/github.com/gobuffalo/packr/v2/file/info.go
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
package file
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
type info struct {
|
||||||
|
Path string
|
||||||
|
Contents []byte
|
||||||
|
size int64
|
||||||
|
modTime time.Time
|
||||||
|
isDir bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) Name() string {
|
||||||
|
return f.Path
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) Size() int64 {
|
||||||
|
return f.size
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) Mode() os.FileMode {
|
||||||
|
return 0444
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) ModTime() time.Time {
|
||||||
|
return f.modTime
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) IsDir() bool {
|
||||||
|
return f.isDir
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f info) Sys() interface{} {
|
||||||
|
return nil
|
||||||
|
}
|
111
vendor/github.com/gobuffalo/packr/v2/file/resolver/disk.go
generated
vendored
Normal file
111
vendor/github.com/gobuffalo/packr/v2/file/resolver/disk.go
generated
vendored
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
"sync"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
"github.com/karrick/godirwalk"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ Resolver = &Disk{}
|
||||||
|
|
||||||
|
type Disk struct {
|
||||||
|
Root string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d Disk) String() string {
|
||||||
|
return String(&d)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *Disk) Resolve(box string, name string) (file.File, error) {
|
||||||
|
var err error
|
||||||
|
path := OsPath(name)
|
||||||
|
if !filepath.IsAbs(path) {
|
||||||
|
path, err = ResolvePathInBase(OsPath(d.Root), path)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fi, err := os.Stat(path)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
if fi.IsDir() {
|
||||||
|
return nil, os.ErrNotExist
|
||||||
|
}
|
||||||
|
if bb, err := ioutil.ReadFile(path); err == nil {
|
||||||
|
return file.NewFile(OsPath(name), bb)
|
||||||
|
}
|
||||||
|
return nil, os.ErrNotExist
|
||||||
|
}
|
||||||
|
|
||||||
|
// ResolvePathInBase returns a path that is guaranteed to be inside of the base directory or an error
|
||||||
|
func ResolvePathInBase(base, path string) (string, error) {
|
||||||
|
// Determine the absolute file path of the base directory
|
||||||
|
d, err := filepath.Abs(base)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the base directory if no file was requested
|
||||||
|
if path == "/" || path == "\\" {
|
||||||
|
return d, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Resolve the absolute file path after combining the key with base
|
||||||
|
p, err := filepath.Abs(filepath.Join(d, path))
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Verify that the resolved path is inside of the base directory
|
||||||
|
if !strings.HasPrefix(p, d+string(filepath.Separator)) {
|
||||||
|
return "", os.ErrNotExist
|
||||||
|
}
|
||||||
|
return p, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ file.FileMappable = &Disk{}
|
||||||
|
|
||||||
|
func (d *Disk) FileMap() map[string]file.File {
|
||||||
|
moot := &sync.Mutex{}
|
||||||
|
m := map[string]file.File{}
|
||||||
|
root := OsPath(d.Root)
|
||||||
|
if _, err := os.Stat(root); err != nil {
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
callback := func(path string, de *godirwalk.Dirent) error {
|
||||||
|
if _, err := os.Stat(root); err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
if !de.IsRegular() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
moot.Lock()
|
||||||
|
name := strings.TrimPrefix(path, root+string(filepath.Separator))
|
||||||
|
b, err := ioutil.ReadFile(path)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
m[name], err = file.NewFile(name, b)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
moot.Unlock()
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
err := godirwalk.Walk(root, &godirwalk.Options{
|
||||||
|
FollowSymbolicLinks: true,
|
||||||
|
Callback: callback,
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
plog.Logger.Errorf("[%s] error walking %v", root, err)
|
||||||
|
}
|
||||||
|
return m
|
||||||
|
}
|
314
vendor/github.com/gobuffalo/packr/v2/file/resolver/encoding/hex/hex.go
generated
vendored
Normal file
314
vendor/github.com/gobuffalo/packr/v2/file/resolver/encoding/hex/hex.go
generated
vendored
Normal file
@ -0,0 +1,314 @@
|
|||||||
|
// Copyright 2009 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package hex implements hexadecimal encoding and decoding.
|
||||||
|
package hex
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
)
|
||||||
|
|
||||||
|
const hextable = "0123456789abcdef"
|
||||||
|
|
||||||
|
// EncodedLen returns the length of an encoding of n source bytes.
|
||||||
|
// Specifically, it returns n * 2.
|
||||||
|
func EncodedLen(n int) int { return n * 2 }
|
||||||
|
|
||||||
|
// Encode encodes src into EncodedLen(len(src))
|
||||||
|
// bytes of dst. As a convenience, it returns the number
|
||||||
|
// of bytes written to dst, but this value is always EncodedLen(len(src)).
|
||||||
|
// Encode implements hexadecimal encoding.
|
||||||
|
func Encode(dst, src []byte) int {
|
||||||
|
for i, v := range src {
|
||||||
|
dst[i*2] = hextable[v>>4]
|
||||||
|
dst[i*2+1] = hextable[v&0x0f]
|
||||||
|
}
|
||||||
|
|
||||||
|
return len(src) * 2
|
||||||
|
}
|
||||||
|
|
||||||
|
// ErrLength reports an attempt to decode an odd-length input
|
||||||
|
// using Decode or DecodeString.
|
||||||
|
// The stream-based Decoder returns io.ErrUnexpectedEOF instead of ErrLength.
|
||||||
|
var ErrLength = fmt.Errorf("encoding/hex: odd length hex string")
|
||||||
|
|
||||||
|
// InvalidByteError values describe errors resulting from an invalid byte in a hex string.
|
||||||
|
type InvalidByteError byte
|
||||||
|
|
||||||
|
func (e InvalidByteError) Error() string {
|
||||||
|
return fmt.Sprintf("encoding/hex: invalid byte: %#U", rune(e))
|
||||||
|
}
|
||||||
|
|
||||||
|
// DecodedLen returns the length of a decoding of x source bytes.
|
||||||
|
// Specifically, it returns x / 2.
|
||||||
|
func DecodedLen(x int) int { return x / 2 }
|
||||||
|
|
||||||
|
// Decode decodes src into DecodedLen(len(src)) bytes,
|
||||||
|
// returning the actual number of bytes written to dst.
|
||||||
|
//
|
||||||
|
// Decode expects that src contains only hexadecimal
|
||||||
|
// characters and that src has even length.
|
||||||
|
// If the input is malformed, Decode returns the number
|
||||||
|
// of bytes decoded before the error.
|
||||||
|
func Decode(dst, src []byte) (int, error) {
|
||||||
|
var i int
|
||||||
|
for i = 0; i < len(src)/2; i++ {
|
||||||
|
a, ok := fromHexChar(src[i*2])
|
||||||
|
if !ok {
|
||||||
|
return i, InvalidByteError(src[i*2])
|
||||||
|
}
|
||||||
|
b, ok := fromHexChar(src[i*2+1])
|
||||||
|
if !ok {
|
||||||
|
return i, InvalidByteError(src[i*2+1])
|
||||||
|
}
|
||||||
|
dst[i] = (a << 4) | b
|
||||||
|
}
|
||||||
|
if len(src)%2 == 1 {
|
||||||
|
// Check for invalid char before reporting bad length,
|
||||||
|
// since the invalid char (if present) is an earlier problem.
|
||||||
|
if _, ok := fromHexChar(src[i*2]); !ok {
|
||||||
|
return i, InvalidByteError(src[i*2])
|
||||||
|
}
|
||||||
|
return i, ErrLength
|
||||||
|
}
|
||||||
|
return i, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// fromHexChar converts a hex character into its value and a success flag.
|
||||||
|
func fromHexChar(c byte) (byte, bool) {
|
||||||
|
switch {
|
||||||
|
case '0' <= c && c <= '9':
|
||||||
|
return c - '0', true
|
||||||
|
case 'a' <= c && c <= 'f':
|
||||||
|
return c - 'a' + 10, true
|
||||||
|
case 'A' <= c && c <= 'F':
|
||||||
|
return c - 'A' + 10, true
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0, false
|
||||||
|
}
|
||||||
|
|
||||||
|
// EncodeToString returns the hexadecimal encoding of src.
|
||||||
|
func EncodeToString(src []byte) string {
|
||||||
|
dst := make([]byte, EncodedLen(len(src)))
|
||||||
|
Encode(dst, src)
|
||||||
|
return string(dst)
|
||||||
|
}
|
||||||
|
|
||||||
|
// DecodeString returns the bytes represented by the hexadecimal string s.
|
||||||
|
//
|
||||||
|
// DecodeString expects that src contains only hexadecimal
|
||||||
|
// characters and that src has even length.
|
||||||
|
// If the input is malformed, DecodeString returns
|
||||||
|
// the bytes decoded before the error.
|
||||||
|
func DecodeString(s string) ([]byte, error) {
|
||||||
|
src := []byte(s)
|
||||||
|
// We can use the source slice itself as the destination
|
||||||
|
// because the decode loop increments by one and then the 'seen' byte is not used anymore.
|
||||||
|
n, err := Decode(src, src)
|
||||||
|
return src[:n], err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dump returns a string that contains a hex dump of the given data. The format
|
||||||
|
// of the hex dump matches the output of `hexdump -C` on the command line.
|
||||||
|
func Dump(data []byte) string {
|
||||||
|
var buf bytes.Buffer
|
||||||
|
dumper := Dumper(&buf)
|
||||||
|
dumper.Write(data)
|
||||||
|
dumper.Close()
|
||||||
|
return buf.String()
|
||||||
|
}
|
||||||
|
|
||||||
|
// bufferSize is the number of hexadecimal characters to buffer in encoder and decoder.
|
||||||
|
const bufferSize = 1024
|
||||||
|
|
||||||
|
type encoder struct {
|
||||||
|
w io.Writer
|
||||||
|
err error
|
||||||
|
out [bufferSize]byte // output buffer
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewEncoder returns an io.Writer that writes lowercase hexadecimal characters to w.
|
||||||
|
func NewEncoder(w io.Writer) io.Writer {
|
||||||
|
return &encoder{w: w}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (e *encoder) Write(p []byte) (n int, err error) {
|
||||||
|
for len(p) > 0 && e.err == nil {
|
||||||
|
chunkSize := bufferSize / 2
|
||||||
|
if len(p) < chunkSize {
|
||||||
|
chunkSize = len(p)
|
||||||
|
}
|
||||||
|
|
||||||
|
var written int
|
||||||
|
encoded := Encode(e.out[:], p[:chunkSize])
|
||||||
|
written, e.err = e.w.Write(e.out[:encoded])
|
||||||
|
n += written / 2
|
||||||
|
p = p[chunkSize:]
|
||||||
|
}
|
||||||
|
return n, e.err
|
||||||
|
}
|
||||||
|
|
||||||
|
type decoder struct {
|
||||||
|
r io.Reader
|
||||||
|
err error
|
||||||
|
in []byte // input buffer (encoded form)
|
||||||
|
arr [bufferSize]byte // backing array for in
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewDecoder returns an io.Reader that decodes hexadecimal characters from r.
|
||||||
|
// NewDecoder expects that r contain only an even number of hexadecimal characters.
|
||||||
|
func NewDecoder(r io.Reader) io.Reader {
|
||||||
|
return &decoder{r: r}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *decoder) Read(p []byte) (n int, err error) {
|
||||||
|
// Fill internal buffer with sufficient bytes to decode
|
||||||
|
if len(d.in) < 2 && d.err == nil {
|
||||||
|
var numCopy, numRead int
|
||||||
|
numCopy = copy(d.arr[:], d.in) // Copies either 0 or 1 bytes
|
||||||
|
numRead, d.err = d.r.Read(d.arr[numCopy:])
|
||||||
|
d.in = d.arr[:numCopy+numRead]
|
||||||
|
if d.err == io.EOF && len(d.in)%2 != 0 {
|
||||||
|
if _, ok := fromHexChar(d.in[len(d.in)-1]); !ok {
|
||||||
|
d.err = InvalidByteError(d.in[len(d.in)-1])
|
||||||
|
} else {
|
||||||
|
d.err = io.ErrUnexpectedEOF
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Decode internal buffer into output buffer
|
||||||
|
if numAvail := len(d.in) / 2; len(p) > numAvail {
|
||||||
|
p = p[:numAvail]
|
||||||
|
}
|
||||||
|
numDec, err := Decode(p, d.in[:len(p)*2])
|
||||||
|
d.in = d.in[2*numDec:]
|
||||||
|
if err != nil {
|
||||||
|
d.in, d.err = nil, err // Decode error; discard input remainder
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(d.in) < 2 {
|
||||||
|
return numDec, d.err // Only expose errors when buffer fully consumed
|
||||||
|
}
|
||||||
|
return numDec, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Dumper returns a WriteCloser that writes a hex dump of all written data to
|
||||||
|
// w. The format of the dump matches the output of `hexdump -C` on the command
|
||||||
|
// line.
|
||||||
|
func Dumper(w io.Writer) io.WriteCloser {
|
||||||
|
return &dumper{w: w}
|
||||||
|
}
|
||||||
|
|
||||||
|
type dumper struct {
|
||||||
|
w io.Writer
|
||||||
|
rightChars [18]byte
|
||||||
|
buf [14]byte
|
||||||
|
used int // number of bytes in the current line
|
||||||
|
n uint // number of bytes, total
|
||||||
|
closed bool
|
||||||
|
}
|
||||||
|
|
||||||
|
func toChar(b byte) byte {
|
||||||
|
if b < 32 || b > 126 {
|
||||||
|
return '.'
|
||||||
|
}
|
||||||
|
return b
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *dumper) Write(data []byte) (n int, err error) {
|
||||||
|
if h.closed {
|
||||||
|
return 0, fmt.Errorf("encoding/hex: dumper closed")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Output lines look like:
|
||||||
|
// 00000010 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d |./0123456789:;<=|
|
||||||
|
// ^ offset ^ extra space ^ ASCII of line.
|
||||||
|
for i := range data {
|
||||||
|
if h.used == 0 {
|
||||||
|
// At the beginning of a line we print the current
|
||||||
|
// offset in hex.
|
||||||
|
h.buf[0] = byte(h.n >> 24)
|
||||||
|
h.buf[1] = byte(h.n >> 16)
|
||||||
|
h.buf[2] = byte(h.n >> 8)
|
||||||
|
h.buf[3] = byte(h.n)
|
||||||
|
Encode(h.buf[4:], h.buf[:4])
|
||||||
|
h.buf[12] = ' '
|
||||||
|
h.buf[13] = ' '
|
||||||
|
_, err = h.w.Write(h.buf[4:])
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Encode(h.buf[:], data[i:i+1])
|
||||||
|
h.buf[2] = ' '
|
||||||
|
l := 3
|
||||||
|
if h.used == 7 {
|
||||||
|
// There's an additional space after the 8th byte.
|
||||||
|
h.buf[3] = ' '
|
||||||
|
l = 4
|
||||||
|
} else if h.used == 15 {
|
||||||
|
// At the end of the line there's an extra space and
|
||||||
|
// the bar for the right column.
|
||||||
|
h.buf[3] = ' '
|
||||||
|
h.buf[4] = '|'
|
||||||
|
l = 5
|
||||||
|
}
|
||||||
|
_, err = h.w.Write(h.buf[:l])
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
n++
|
||||||
|
h.rightChars[h.used] = toChar(data[i])
|
||||||
|
h.used++
|
||||||
|
h.n++
|
||||||
|
if h.used == 16 {
|
||||||
|
h.rightChars[16] = '|'
|
||||||
|
h.rightChars[17] = '\n'
|
||||||
|
_, err = h.w.Write(h.rightChars[:])
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
h.used = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (h *dumper) Close() (err error) {
|
||||||
|
// See the comments in Write() for the details of this format.
|
||||||
|
if h.closed {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
h.closed = true
|
||||||
|
if h.used == 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
h.buf[0] = ' '
|
||||||
|
h.buf[1] = ' '
|
||||||
|
h.buf[2] = ' '
|
||||||
|
h.buf[3] = ' '
|
||||||
|
h.buf[4] = '|'
|
||||||
|
nBytes := h.used
|
||||||
|
for h.used < 16 {
|
||||||
|
l := 3
|
||||||
|
if h.used == 7 {
|
||||||
|
l = 4
|
||||||
|
} else if h.used == 15 {
|
||||||
|
l = 5
|
||||||
|
}
|
||||||
|
_, err = h.w.Write(h.buf[:l])
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
h.used++
|
||||||
|
}
|
||||||
|
h.rightChars[nBytes] = '|'
|
||||||
|
h.rightChars[nBytes+1] = '\n'
|
||||||
|
_, err = h.w.Write(h.rightChars[:nBytes+2])
|
||||||
|
return
|
||||||
|
}
|
112
vendor/github.com/gobuffalo/packr/v2/file/resolver/hex_gzip.go
generated
vendored
Normal file
112
vendor/github.com/gobuffalo/packr/v2/file/resolver/hex_gzip.go
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"compress/gzip"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
"sync"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/file/resolver/encoding/hex"
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ Resolver = &HexGzip{}
|
||||||
|
|
||||||
|
type HexGzip struct {
|
||||||
|
packed map[string]string
|
||||||
|
unpacked map[string]string
|
||||||
|
moot *sync.RWMutex
|
||||||
|
}
|
||||||
|
|
||||||
|
func (hg HexGzip) String() string {
|
||||||
|
return String(&hg)
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ file.FileMappable = &HexGzip{}
|
||||||
|
|
||||||
|
func (hg *HexGzip) FileMap() map[string]file.File {
|
||||||
|
hg.moot.RLock()
|
||||||
|
var names []string
|
||||||
|
for k := range hg.packed {
|
||||||
|
names = append(names, k)
|
||||||
|
}
|
||||||
|
hg.moot.RUnlock()
|
||||||
|
m := map[string]file.File{}
|
||||||
|
for _, n := range names {
|
||||||
|
if f, err := hg.Resolve("", n); err == nil {
|
||||||
|
m[n] = f
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func (hg *HexGzip) Resolve(box string, name string) (file.File, error) {
|
||||||
|
plog.Debug(hg, "Resolve", "box", box, "name", name)
|
||||||
|
hg.moot.Lock()
|
||||||
|
defer hg.moot.Unlock()
|
||||||
|
|
||||||
|
if s, ok := hg.unpacked[name]; ok {
|
||||||
|
return file.NewFile(name, []byte(s))
|
||||||
|
}
|
||||||
|
packed, ok := hg.packed[name]
|
||||||
|
if !ok {
|
||||||
|
return nil, os.ErrNotExist
|
||||||
|
}
|
||||||
|
|
||||||
|
unpacked, err := UnHexGzipString(packed)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
f, err := file.NewFile(OsPath(name), []byte(unpacked))
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
hg.unpacked[name] = f.String()
|
||||||
|
return f, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewHexGzip(files map[string]string) (*HexGzip, error) {
|
||||||
|
if files == nil {
|
||||||
|
files = map[string]string{}
|
||||||
|
}
|
||||||
|
|
||||||
|
hg := &HexGzip{
|
||||||
|
packed: files,
|
||||||
|
unpacked: map[string]string{},
|
||||||
|
moot: &sync.RWMutex{},
|
||||||
|
}
|
||||||
|
|
||||||
|
return hg, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func HexGzipString(s string) (string, error) {
|
||||||
|
bb := &bytes.Buffer{}
|
||||||
|
enc := hex.NewEncoder(bb)
|
||||||
|
zw := gzip.NewWriter(enc)
|
||||||
|
io.Copy(zw, strings.NewReader(s))
|
||||||
|
zw.Close()
|
||||||
|
|
||||||
|
return bb.String(), nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func UnHexGzipString(packed string) (string, error) {
|
||||||
|
br := bytes.NewBufferString(packed)
|
||||||
|
dec := hex.NewDecoder(br)
|
||||||
|
zr, err := gzip.NewReader(dec)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
defer zr.Close()
|
||||||
|
|
||||||
|
b, err := ioutil.ReadAll(zr)
|
||||||
|
if err != nil {
|
||||||
|
return "", err
|
||||||
|
}
|
||||||
|
return string(b), nil
|
||||||
|
}
|
21
vendor/github.com/gobuffalo/packr/v2/file/resolver/ident.go
generated
vendored
Normal file
21
vendor/github.com/gobuffalo/packr/v2/file/resolver/ident.go
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func Key(s string) string {
|
||||||
|
s = strings.Replace(s, "\\", "/", -1)
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func OsPath(s string) string {
|
||||||
|
if runtime.GOOS == "windows" {
|
||||||
|
s = strings.Replace(s, "/", string(filepath.Separator), -1)
|
||||||
|
} else {
|
||||||
|
s = strings.Replace(s, "\\", string(filepath.Separator), -1)
|
||||||
|
}
|
||||||
|
return s
|
||||||
|
}
|
63
vendor/github.com/gobuffalo/packr/v2/file/resolver/in_memory.go
generated
vendored
Normal file
63
vendor/github.com/gobuffalo/packr/v2/file/resolver/in_memory.go
generated
vendored
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"io/ioutil"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packd"
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
)
|
||||||
|
|
||||||
|
var _ Resolver = &InMemory{}
|
||||||
|
|
||||||
|
type InMemory struct {
|
||||||
|
*packd.MemoryBox
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d InMemory) String() string {
|
||||||
|
return String(&d)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *InMemory) Resolve(box string, name string) (file.File, error) {
|
||||||
|
b, err := d.MemoryBox.Find(name)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return file.NewFile(name, b)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *InMemory) Pack(name string, f file.File) error {
|
||||||
|
plog.Debug(d, "Pack", "name", name)
|
||||||
|
b, err := ioutil.ReadAll(f)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
d.AddBytes(name, b)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (d *InMemory) FileMap() map[string]file.File {
|
||||||
|
m := map[string]file.File{}
|
||||||
|
d.Walk(func(path string, file file.File) error {
|
||||||
|
m[path] = file
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewInMemory(files map[string]file.File) *InMemory {
|
||||||
|
if files == nil {
|
||||||
|
files = map[string]file.File{}
|
||||||
|
}
|
||||||
|
box := packd.NewMemoryBox()
|
||||||
|
|
||||||
|
for p, f := range files {
|
||||||
|
if b, err := ioutil.ReadAll(f); err == nil {
|
||||||
|
box.AddBytes(p, b)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return &InMemory{
|
||||||
|
MemoryBox: box,
|
||||||
|
}
|
||||||
|
}
|
7
vendor/github.com/gobuffalo/packr/v2/file/resolver/packable.go
generated
vendored
Normal file
7
vendor/github.com/gobuffalo/packr/v2/file/resolver/packable.go
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import "github.com/gobuffalo/packr/v2/file"
|
||||||
|
|
||||||
|
type Packable interface {
|
||||||
|
Pack(name string, f file.File) error
|
||||||
|
}
|
33
vendor/github.com/gobuffalo/packr/v2/file/resolver/resolver.go
generated
vendored
Normal file
33
vendor/github.com/gobuffalo/packr/v2/file/resolver/resolver.go
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
package resolver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/file"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Resolver interface {
|
||||||
|
Resolve(string, string) (file.File, error)
|
||||||
|
}
|
||||||
|
|
||||||
|
func defaultResolver() Resolver {
|
||||||
|
pwd, _ := os.Getwd()
|
||||||
|
return &Disk{
|
||||||
|
Root: pwd,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var DefaultResolver = defaultResolver()
|
||||||
|
|
||||||
|
func String(r Resolver) string {
|
||||||
|
m := map[string]interface{}{
|
||||||
|
"name": fmt.Sprintf("%T", r),
|
||||||
|
}
|
||||||
|
if fm, ok := r.(file.FileMappable); ok {
|
||||||
|
m["files"] = fm
|
||||||
|
}
|
||||||
|
b, _ := json.Marshal(m)
|
||||||
|
return string(b)
|
||||||
|
}
|
72
vendor/github.com/gobuffalo/packr/v2/helpers.go
generated
vendored
Normal file
72
vendor/github.com/gobuffalo/packr/v2/helpers.go
generated
vendored
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
package packr
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
)
|
||||||
|
|
||||||
|
func construct(name string, path string) *Box {
|
||||||
|
return &Box{
|
||||||
|
Path: path,
|
||||||
|
Name: name,
|
||||||
|
ResolutionDir: resolutionDir(path),
|
||||||
|
resolvers: resolversMap{},
|
||||||
|
dirs: dirsMap{},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func resolutionDirTestFilename(filename, og string) (string, bool) {
|
||||||
|
ng := filepath.Join(filepath.Dir(filename), og)
|
||||||
|
|
||||||
|
// // this little hack courtesy of the `-cover` flag!!
|
||||||
|
cov := filepath.Join("_test", "_obj_test")
|
||||||
|
ng = strings.Replace(ng, string(filepath.Separator)+cov, "", 1)
|
||||||
|
|
||||||
|
if resolutionDirExists(ng, og) {
|
||||||
|
return ng, true
|
||||||
|
}
|
||||||
|
|
||||||
|
ng = filepath.Join(os.Getenv("GOPATH"), "src", ng)
|
||||||
|
if resolutionDirExists(ng, og) {
|
||||||
|
return ng, true
|
||||||
|
}
|
||||||
|
|
||||||
|
return og, false
|
||||||
|
}
|
||||||
|
|
||||||
|
func resolutionDirExists(s, og string) bool {
|
||||||
|
_, err := os.Stat(s)
|
||||||
|
if err != nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
plog.Debug("packr", "resolutionDir", "original", og, "resolved", s)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
func resolutionDir(og string) string {
|
||||||
|
ng, _ := filepath.Abs(og)
|
||||||
|
|
||||||
|
if resolutionDirExists(ng, og) {
|
||||||
|
return ng
|
||||||
|
}
|
||||||
|
|
||||||
|
// packr.New
|
||||||
|
_, filename, _, _ := runtime.Caller(3)
|
||||||
|
ng, ok := resolutionDirTestFilename(filename, og)
|
||||||
|
if ok {
|
||||||
|
return ng
|
||||||
|
}
|
||||||
|
|
||||||
|
// packr.NewBox (deprecated)
|
||||||
|
_, filename, _, _ = runtime.Caller(4)
|
||||||
|
ng, ok = resolutionDirTestFilename(filename, og)
|
||||||
|
if ok {
|
||||||
|
return ng
|
||||||
|
}
|
||||||
|
|
||||||
|
return og
|
||||||
|
}
|
52
vendor/github.com/gobuffalo/packr/v2/jam/parser/args.go
generated
vendored
Normal file
52
vendor/github.com/gobuffalo/packr/v2/jam/parser/args.go
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
package parser
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
|
)
|
||||||
|
|
||||||
|
// FromArgs is useful when writing packr store-cmd binaries.
|
||||||
|
/*
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/jam/parser"
|
||||||
|
"github.com/markbates/s3packr/s3packr"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
err := parser.FromArgs(os.Args[1:], func(boxes parser.Boxes) error {
|
||||||
|
for _, box := range boxes {
|
||||||
|
s3 := s3packr.New(box)
|
||||||
|
if err := s3.Pack(box); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
})
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
func FromArgs(args []string, fn func(Boxes) error) error {
|
||||||
|
if len(args) == 0 {
|
||||||
|
return fmt.Errorf("you must supply a payload")
|
||||||
|
}
|
||||||
|
payload := args[0]
|
||||||
|
if len(payload) == 0 {
|
||||||
|
return fmt.Errorf("you must supply a payload")
|
||||||
|
}
|
||||||
|
|
||||||
|
var boxes Boxes
|
||||||
|
err := json.Unmarshal([]byte(payload), &boxes)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return fn(boxes)
|
||||||
|
}
|
40
vendor/github.com/gobuffalo/packr/v2/jam/parser/box.go
generated
vendored
Normal file
40
vendor/github.com/gobuffalo/packr/v2/jam/parser/box.go
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
package parser
|
||||||
|
|
||||||
|
import (
|
||||||
|
"encoding/json"
|
||||||
|
"os"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
// Box found while parsing a file
|
||||||
|
type Box struct {
|
||||||
|
Name string // name of the box
|
||||||
|
Path string // relative path of folder NewBox("./templates")
|
||||||
|
AbsPath string // absolute path of Path
|
||||||
|
Package string // the package name the box was found in
|
||||||
|
PWD string // the PWD when the parser was run
|
||||||
|
PackageDir string // the absolute path of the package where the box was found
|
||||||
|
}
|
||||||
|
|
||||||
|
type Boxes []*Box
|
||||||
|
|
||||||
|
// String - json returned
|
||||||
|
func (b Box) String() string {
|
||||||
|
x, _ := json.Marshal(b)
|
||||||
|
return string(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewBox stub from the name and the path provided
|
||||||
|
func NewBox(name string, path string) *Box {
|
||||||
|
if len(name) == 0 {
|
||||||
|
name = path
|
||||||
|
}
|
||||||
|
name = strings.Replace(name, "\"", "", -1)
|
||||||
|
pwd, _ := os.Getwd()
|
||||||
|
box := &Box{
|
||||||
|
Name: name,
|
||||||
|
Path: path,
|
||||||
|
PWD: pwd,
|
||||||
|
}
|
||||||
|
return box
|
||||||
|
}
|
54
vendor/github.com/gobuffalo/packr/v2/jam/parser/file.go
generated
vendored
Normal file
54
vendor/github.com/gobuffalo/packr/v2/jam/parser/file.go
generated
vendored
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
package parser
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"io"
|
||||||
|
"io/ioutil"
|
||||||
|
"path/filepath"
|
||||||
|
)
|
||||||
|
|
||||||
|
// File that is to be parsed
|
||||||
|
type File struct {
|
||||||
|
io.Reader
|
||||||
|
Path string
|
||||||
|
AbsPath string
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name of the file "app.go"
|
||||||
|
func (f File) Name() string {
|
||||||
|
return f.Path
|
||||||
|
}
|
||||||
|
|
||||||
|
// String returns the contents of the reader
|
||||||
|
func (f *File) String() string {
|
||||||
|
src, _ := ioutil.ReadAll(f)
|
||||||
|
f.Reader = bytes.NewReader(src)
|
||||||
|
return string(src)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *File) Write(p []byte) (int, error) {
|
||||||
|
bb := &bytes.Buffer{}
|
||||||
|
i, err := bb.Write(p)
|
||||||
|
s.Reader = bb
|
||||||
|
return i, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewFile takes the name of the file you want to
|
||||||
|
// write to and a reader to reader from
|
||||||
|
func NewFile(path string, r io.Reader) *File {
|
||||||
|
if r == nil {
|
||||||
|
r = &bytes.Buffer{}
|
||||||
|
}
|
||||||
|
if seek, ok := r.(io.Seeker); ok {
|
||||||
|
seek.Seek(0, 0)
|
||||||
|
}
|
||||||
|
abs := path
|
||||||
|
if !filepath.IsAbs(path) {
|
||||||
|
abs, _ = filepath.Abs(path)
|
||||||
|
}
|
||||||
|
return &File{
|
||||||
|
Reader: r,
|
||||||
|
Path: path,
|
||||||
|
AbsPath: abs,
|
||||||
|
}
|
||||||
|
}
|
112
vendor/github.com/gobuffalo/packr/v2/jam/parser/finder.go
generated
vendored
Normal file
112
vendor/github.com/gobuffalo/packr/v2/jam/parser/finder.go
generated
vendored
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
package parser
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"go/build"
|
||||||
|
"os"
|
||||||
|
"path/filepath"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
|
"github.com/gobuffalo/packr/v2/plog"
|
||||||
|
"github.com/karrick/godirwalk"
|
||||||
|
"github.com/markbates/errx"
|
||||||
|
"github.com/markbates/oncer"
|
||||||
|
)
|
||||||
|
|
||||||
|
type finder struct {
|
||||||
|
id time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fd *finder) key(m, dir string) string {
|
||||||
|
return fmt.Sprintf("%s-*parser.finder#%s-%s", fd.id, m, dir)
|
||||||
|
}
|
||||||
|
|
||||||
|
// findAllGoFiles *.go files for a given diretory
|
||||||
|
func (fd *finder) findAllGoFiles(dir string) ([]string, error) {
|
||||||
|
var err error
|
||||||
|
var names []string
|
||||||
|
oncer.Do(fd.key("findAllGoFiles", dir), func() {
|
||||||
|
plog.Debug(fd, "findAllGoFiles", "dir", dir)
|
||||||
|
|
||||||
|
callback := func(path string, do *godirwalk.Dirent) error {
|
||||||
|
ext := filepath.Ext(path)
|
||||||
|
if ext != ".go" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
//check if path is a dir
|
||||||
|
fi, err := os.Stat(path)
|
||||||
|
if err != nil {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
if fi.IsDir() {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
names = append(names, path)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
err = godirwalk.Walk(dir, &godirwalk.Options{
|
||||||
|
FollowSymbolicLinks: true,
|
||||||
|
Callback: callback,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
return names, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (fd *finder) findAllGoFilesImports(dir string) ([]string, error) {
|
||||||
|
var err error
|
||||||
|
var names []string
|
||||||
|
oncer.Do(fd.key("findAllGoFilesImports", dir), func() {
|
||||||
|
ctx := build.Default
|
||||||
|
|
||||||
|
if len(ctx.SrcDirs()) == 0 {
|
||||||
|
err = fmt.Errorf("no src directories found")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg, err := ctx.ImportDir(dir, 0)
|
||||||
|
if strings.HasPrefix(pkg.ImportPath, "github.com/gobuffalo/packr") {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
if !strings.Contains(err.Error(), "cannot find package") {
|
||||||
|
if _, ok := errx.Unwrap(err).(*build.NoGoError); !ok {
|
||||||
|
err = err
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if pkg.Goroot {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if len(pkg.GoFiles) <= 0 {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
plog.Debug(fd, "findAllGoFilesImports", "dir", dir)
|
||||||
|
|
||||||
|
names, _ = fd.findAllGoFiles(dir)
|
||||||
|
for _, n := range pkg.GoFiles {
|
||||||
|
names = append(names, filepath.Join(pkg.Dir, n))
|
||||||
|
}
|
||||||
|
for _, imp := range pkg.Imports {
|
||||||
|
if len(ctx.SrcDirs()) == 0 {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
d := ctx.SrcDirs()[len(ctx.SrcDirs())-1]
|
||||||
|
ip := filepath.Join(d, imp)
|
||||||
|
n, err := fd.findAllGoFilesImports(ip)
|
||||||
|
if err != nil && len(n) != 0 {
|
||||||
|
names = n
|
||||||
|
return
|
||||||
|
}
|
||||||
|
names = append(names, n...)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return names, err
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user