├── .idea
├── .gitignore
├── Laravel.iml
├── modules.xml
└── vcs.xml
├── LICENSE
├── README.md
└── myapp
├── .DS_Store
├── .env
├── Makefile.mac
├── Makefile.windows
├── convenience.go
├── coverage.out
├── data
├── coverage.out
├── integration_test.go
├── models.go
├── models_test.go
├── remember_token.go
├── setup_test.go
├── test.go
├── token.go
└── user.go
├── docker-compose.yml
├── go.mod
├── go.sum
├── handlers
├── auth-handlers.go
├── cache-handlers.go
├── convenience.go
├── form-val-handlers.go
├── handlers.go
└── testhandler.go
├── init-celeritas.go
├── mail
├── password-reset.html.tmpl
├── password-reset.plain.tmpl
├── test.html.tmpl
├── test.plain.tmpl
├── yellow.html.tmpl
└── yellow.plain.tmpl
├── main.go
├── middleware
├── auth-token.go
├── auth.go
├── middleware.go
└── remember.go
├── migrations
├── 1631888445899233_create_auth_tables.down.sql
├── 1631888445899233_create_auth_tables.up.sql
├── 1631901936536722_create_sessions_table.postgres.down.sql
└── 1631901936536722_create_sessions_table.postgres.up.sql
├── public
├── ico
│ ├── android-chrome-192x192.png
│ ├── android-chrome-512x512.png
│ ├── apple-touch-icon.png
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon.ico
│ └── site.webmanifest
└── images
│ └── celeritas.jpg
├── routes.go
├── tmp
└── .DS_Store
└── views
├── .DS_Store
├── cache.jet
├── forgot.jet
├── form.jet
├── home.jet
├── home.page.tmpl
├── jet-template.jet
├── layouts
└── base.jet
├── login.jet
├── reset-password.jet
└── sessions.jet
/.idea/.gitignore:
--------------------------------------------------------------------------------
1 | # Default ignored files
2 | /shelf/
3 | /workspace.xml
4 | # Editor-based HTTP Client requests
5 | /httpRequests/
6 | # Datasource local storage ignored files
7 | /dataSources/
8 | /dataSources.local.xml
9 |
--------------------------------------------------------------------------------
/.idea/Laravel.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/.idea/vcs.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2024 Alston Yu
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Golaris
2 |
3 | Laravel recreated in Golang
4 |
--------------------------------------------------------------------------------
/myapp/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/.DS_Store
--------------------------------------------------------------------------------
/myapp/.env:
--------------------------------------------------------------------------------
1 | # Give your application a unique name (no spaces)
2 | APP_NAME=myapp
3 | APP_URL=http://localhost:4000
4 |
5 | # false for production, true for development
6 | DEBUG=true
7 |
8 | # the port should we listen on
9 | PORT=4000
10 |
11 | # the server name, e.g, www.mysite.com
12 | SERVER_NAME=localhost
13 |
14 | # should we use https?
15 | SECURE=false
16 |
17 | # database config - postgres or mysql
18 | DATABASE_TYPE=postgres
19 | DATABASE_HOST=localhost
20 | DATABASE_PORT=5432
21 | DATABASE_USER=postgres
22 | DATABASE_PASS=password
23 | DATABASE_NAME=celeritas
24 | DATABASE_SSL_MODE=disable
25 |
26 | # redis config
27 | REDIS_HOST="localhost:6379"
28 | REDIS_PASSWORD=
29 | REDIS_PREFIX=celeritas
30 |
31 | # cache (currently only redis or badger)
32 | CACHE=redis
33 |
34 | # cooking seetings
35 | COOKIE_NAME=celeritas
36 | COOKIE_LIFETIME=1440
37 | COOKIE_PERSIST=true
38 | COOKIE_SECURE=false
39 | COOKIE_DOMAIN=localhost
40 |
41 | # session store: cookie, redis, mysql, or postgres
42 | SESSION_TYPE=redis
43 |
44 | # mail settings
45 | SMTP_HOST=localhost
46 | SMTP_USERNAME=
47 | SMTP_PASSWORD=
48 | SMTP_PORT=1025
49 | SMTP_ENCRYPTION=none
50 | MAIL_DOMAIN=mg.verilion.com
51 | FROM_NAME="Trevor Sawler"
52 | FROM_ADDRESS="trevor.sawler@verilion.com"
53 |
54 | # mail settings for api services
55 | MAILER_API=mailgun
56 | MAILER_KEY=
57 | MAILER_URL=https://api.mailgun.net
58 |
59 | # template engine: go or jet
60 | RENDERER=jet
61 |
62 | # the encryption key; must be exactly 32 characters long
63 | KEY=DdtZj9XnxZZ+1lbJHbDHRLrbPRLLpNrp
--------------------------------------------------------------------------------
/myapp/Makefile.mac:
--------------------------------------------------------------------------------
1 | BINARY_NAME=celeritasApp
2 |
3 | build:
4 | @go mod vendor
5 | @echo "Building Celeritas..."
6 | @go build -o tmp/${BINARY_NAME} .
7 | @echo "Celeritas built!"
8 |
9 | run: build
10 | @echo "Starting Celeritas..."
11 | @./tmp/${BINARY_NAME} &
12 | @echo "Celeritas started!"
13 |
14 | clean:
15 | @echo "Cleaning..."
16 | @go clean
17 | @rm tmp/${BINARY_NAME}
18 | @echo "Cleaned!"
19 |
20 | test:
21 | @echo "Testing..."
22 | @go test ./...
23 | @echo "Done!"
24 |
25 | start: run
26 |
27 | stop:
28 | @echo "Stopping Celeritas..."
29 | @-pkill -SIGTERM -f "./tmp/${BINARY_NAME}"
30 | @echo "Stopped Celeritas!"
31 |
32 | restart: stop start
--------------------------------------------------------------------------------
/myapp/Makefile.windows:
--------------------------------------------------------------------------------
1 | BINARY_NAME=celeritasApp.exe
2 |
3 | ## build: builds all binaries
4 | build:
5 | @go mod vendor
6 | @go build -o tmp/${BINARY_NAME} .
7 | @echo Celeritas built!
8 |
9 | run:
10 | @echo Staring Celeritas...
11 | @start /min cmd /c tmp\${BINARY_NAME} &
12 | @echo Celeritas started!
13 |
14 | clean:
15 | @echo Cleaning...
16 | @DEL ${BINARY_NAME}
17 | @go clean
18 | @echo Cleaned!
19 |
20 | test:
21 | @echo Testing...
22 | @go test ./...
23 | @echo Done!
24 |
25 | start: run
26 |
27 | stop:
28 | @echo "Starting the front end..."
29 | @taskkill /IM ${BINARY_NAME} /F
30 | @echo Stopped Celeritas
31 |
32 | restart: stop start
--------------------------------------------------------------------------------
/myapp/convenience.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import "net/http"
4 |
5 | func (a *application) get(s string, h http.HandlerFunc) {
6 | a.App.Routes.Get(s, h)
7 | }
8 |
9 | func (a *application) post(s string, h http.HandlerFunc) {
10 | a.App.Routes.Post(s, h)
11 | }
12 |
13 | func (a *application) use(m ...func(http.Handler) http.Handler) {
14 | a.App.Routes.Use(m...)
15 | }
--------------------------------------------------------------------------------
/myapp/coverage.out:
--------------------------------------------------------------------------------
1 | mode: set
2 |
--------------------------------------------------------------------------------
/myapp/data/coverage.out:
--------------------------------------------------------------------------------
1 | mode: set
2 | myapp/data/models.go:25.39,28.86 2 1
3 | myapp/data/models.go:34.2,37.3 1 1
4 | myapp/data/models.go:28.86,30.3 1 1
5 | myapp/data/models.go:30.8,32.3 1 1
6 | myapp/data/models.go:41.32,43.23 2 1
7 | myapp/data/models.go:47.2,47.16 1 1
8 | myapp/data/models.go:43.23,45.3 1 1
9 | myapp/data/token.go:27.32,29.2 1 1
10 | myapp/data/token.go:31.62,38.16 6 1
11 | myapp/data/token.go:42.2,45.16 4 1
12 | myapp/data/token.go:49.2,51.16 2 1
13 | myapp/data/token.go:38.16,40.3 1 1
14 | myapp/data/token.go:45.16,47.3 1 0
15 | myapp/data/token.go:54.60,59.16 5 1
16 | myapp/data/token.go:63.2,63.20 1 1
17 | myapp/data/token.go:59.16,61.3 1 0
18 | myapp/data/token.go:66.45,71.16 5 1
19 | myapp/data/token.go:75.2,75.20 1 1
20 | myapp/data/token.go:71.16,73.3 1 0
21 | myapp/data/token.go:78.62,83.16 5 1
22 | myapp/data/token.go:87.2,87.20 1 1
23 | myapp/data/token.go:83.16,85.3 1 1
24 | myapp/data/token.go:90.38,94.16 4 1
25 | myapp/data/token.go:98.2,98.12 1 1
26 | myapp/data/token.go:94.16,96.3 1 0
27 | myapp/data/token.go:101.55,105.16 4 1
28 | myapp/data/token.go:109.2,109.12 1 1
29 | myapp/data/token.go:105.16,107.3 1 0
30 | myapp/data/token.go:112.51,118.16 4 1
31 | myapp/data/token.go:122.2,128.16 6 1
32 | myapp/data/token.go:132.2,132.12 1 1
33 | myapp/data/token.go:118.16,120.3 1 0
34 | myapp/data/token.go:128.16,130.3 1 0
35 | myapp/data/token.go:135.78,143.16 4 1
36 | myapp/data/token.go:147.2,151.19 4 1
37 | myapp/data/token.go:143.16,145.3 1 0
38 | myapp/data/token.go:154.67,156.31 2 1
39 | myapp/data/token.go:160.2,161.57 2 1
40 | myapp/data/token.go:165.2,167.22 2 1
41 | myapp/data/token.go:171.2,172.16 2 1
42 | myapp/data/token.go:176.2,176.36 1 1
43 | myapp/data/token.go:180.2,181.16 2 1
44 | myapp/data/token.go:185.2,185.18 1 1
45 | myapp/data/token.go:156.31,158.3 1 1
46 | myapp/data/token.go:161.57,163.3 1 1
47 | myapp/data/token.go:167.22,169.3 1 1
48 | myapp/data/token.go:172.16,174.3 1 1
49 | myapp/data/token.go:176.36,178.3 1 1
50 | myapp/data/token.go:181.16,183.3 1 0
51 | myapp/data/token.go:188.56,190.16 2 1
52 | myapp/data/token.go:194.2,194.32 1 1
53 | myapp/data/token.go:198.2,198.43 1 1
54 | myapp/data/token.go:202.2,202.18 1 1
55 | myapp/data/token.go:190.16,192.3 1 1
56 | myapp/data/token.go:194.32,196.3 1 0
57 | myapp/data/token.go:198.43,200.3 1 0
58 | myapp/data/user.go:25.31,27.2 1 1
59 | myapp/data/user.go:30.42,37.16 5 1
60 | myapp/data/user.go:41.2,41.17 1 1
61 | myapp/data/user.go:37.16,39.3 1 0
62 | myapp/data/user.go:45.56,50.16 5 1
63 | myapp/data/user.go:54.2,58.16 5 1
64 | myapp/data/user.go:64.2,66.22 2 1
65 | myapp/data/user.go:50.16,52.3 1 0
66 | myapp/data/user.go:58.16,59.56 1 1
67 | myapp/data/user.go:59.56,61.4 1 0
68 | myapp/data/user.go:70.43,76.16 5 1
69 | myapp/data/user.go:80.2,84.16 5 1
70 | myapp/data/user.go:90.2,92.22 2 1
71 | myapp/data/user.go:76.16,78.3 1 1
72 | myapp/data/user.go:84.16,85.56 1 1
73 | myapp/data/user.go:85.56,87.4 1 0
74 | myapp/data/user.go:96.43,101.16 5 1
75 | myapp/data/user.go:104.2,104.12 1 1
76 | myapp/data/user.go:101.16,103.3 1 0
77 | myapp/data/user.go:108.37,112.16 4 1
78 | myapp/data/user.go:115.2,115.12 1 1
79 | myapp/data/user.go:112.16,114.3 1 0
80 | myapp/data/user.go:120.50,122.16 2 1
81 | myapp/data/user.go:126.2,132.16 6 1
82 | myapp/data/user.go:136.2,138.16 2 1
83 | myapp/data/user.go:122.16,124.3 1 0
84 | myapp/data/user.go:132.16,134.3 1 0
85 | myapp/data/user.go:142.61,144.16 2 1
86 | myapp/data/user.go:148.2,149.16 2 1
87 | myapp/data/user.go:153.2,156.16 3 1
88 | myapp/data/user.go:160.2,160.12 1 1
89 | myapp/data/user.go:144.16,146.3 1 0
90 | myapp/data/user.go:149.16,151.3 1 1
91 | myapp/data/user.go:156.16,158.3 1 0
92 | myapp/data/user.go:167.64,169.16 2 1
93 | myapp/data/user.go:180.2,180.18 1 1
94 | myapp/data/user.go:169.16,170.10 1 1
95 | myapp/data/user.go:171.60,173.21 1 1
96 | myapp/data/user.go:174.11,176.21 1 0
97 |
--------------------------------------------------------------------------------
/myapp/data/integration_test.go:
--------------------------------------------------------------------------------
1 | // go:build integration
2 |
3 | // run tests with this command: go test . --tags integration --count=1
4 |
5 | package data
6 |
7 | import (
8 | "database/sql"
9 | "fmt"
10 | "log"
11 | "net/http"
12 | "os"
13 | "testing"
14 | "time"
15 |
16 | "github.com/ory/dockertest/v3"
17 | "github.com/ory/dockertest/v3/docker"
18 | _ "github.com/jackc/pgconn"
19 | _ "github.com/jackc/pgx/v4"
20 | _ "github.com/jackc/pgx/v4/stdlib"
21 | )
22 |
23 |
24 | var (
25 | host = "localhost"
26 | user = "postgres"
27 | password = "secret"
28 | dbName = "celeritas_test"
29 | port = "5435"
30 | dsn = "host=%s port=%s user=%s password=%s dbname=%s sslmode=disable timezone=UTC connect_timeout=5"
31 | )
32 |
33 | var dummyUser = User{
34 | FirstName: "Some",
35 | LastName: "Guy",
36 | Email: "me@here.com",
37 | Active: 1,
38 | Password: "password",
39 | }
40 |
41 | var models Models
42 | var testDB *sql.DB
43 | var resource *dockertest.Resource
44 | var pool *dockertest.Pool
45 |
46 |
47 | func TestMain(m *testing.M){
48 | os.Setenv("DATABASE_TYPE", "postgres")
49 | os.Setenv("UPPER_DB_LOG", "ERROR")
50 |
51 | p, err := dockertest.NewPool("")
52 | if err != nil {
53 | log.Fatalf("could not connect to docker: %s", err)
54 | }
55 |
56 | pool = p
57 |
58 | opts := dockertest.RunOptions{
59 | Repository: "postgres",
60 | Tag: "13.4",
61 | Env: []string{
62 | "POSTGRES_USER=" + user,
63 | "POSTGRES_PASSWORD=" + password,
64 | "POSTGRES_DB=" + dbName,
65 | },
66 | ExposedPorts: []string{"5432"},
67 | PortBindings: map[docker.Port][]docker.PortBinding{
68 | "5432": {
69 | {HostIP: "0.0.0.0", HostPort: port},
70 | },
71 | },
72 | }
73 |
74 | resource, err = pool.RunWithOptions(&opts)
75 | if err != nil {
76 | _ = pool.Purge(resource)
77 | log.Fatalf("could not start resource: %s", err)
78 | }
79 |
80 | if err := pool.Retry(func() error {
81 | var err error
82 | testDB, err = sql.Open("pgx", fmt.Sprintf(dsn, host, port, user, password, dbName))
83 | if err != nil {
84 | log.Println("Error:", err)
85 | return err
86 | }
87 | return testDB.Ping()
88 | }); err != nil {
89 | _ = pool.Purge(resource)
90 | log.Fatalf("could not connect to docker: %s", err)
91 | }
92 |
93 | err = createTables(testDB)
94 | if err != nil {
95 | log.Fatalf("error creating tables: %s", err)
96 | }
97 |
98 | models = New(testDB)
99 |
100 | code := m.Run()
101 |
102 | if err := pool.Purge(resource); err != nil {
103 | log.Fatalf("could not purge resource: %s", err)
104 | }
105 |
106 | os.Exit(code)
107 | }
108 |
109 | func createTables(db *sql.DB) error {
110 | stmt := `
111 | CREATE OR REPLACE FUNCTION trigger_set_timestamp()
112 | RETURNS TRIGGER AS $$
113 | BEGIN
114 | NEW.updated_at = NOW();
115 | RETURN NEW;
116 | END;
117 | $$ LANGUAGE plpgsql;
118 |
119 | drop table if exists users cascade;
120 |
121 | CREATE TABLE users (
122 | id SERIAL PRIMARY KEY,
123 | first_name character varying(255) NOT NULL,
124 | last_name character varying(255) NOT NULL,
125 | user_active integer NOT NULL DEFAULT 0,
126 | email character varying(255) NOT NULL UNIQUE,
127 | password character varying(60) NOT NULL,
128 | created_at timestamp without time zone NOT NULL DEFAULT now(),
129 | updated_at timestamp without time zone NOT NULL DEFAULT now()
130 | );
131 |
132 | CREATE TRIGGER set_timestamp
133 | BEFORE UPDATE ON users
134 | FOR EACH ROW
135 | EXECUTE PROCEDURE trigger_set_timestamp();
136 |
137 | drop table if exists remember_tokens;
138 |
139 | CREATE TABLE remember_tokens (
140 | id SERIAL PRIMARY KEY,
141 | user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,
142 | remember_token character varying(100) NOT NULL,
143 | created_at timestamp without time zone NOT NULL DEFAULT now(),
144 | updated_at timestamp without time zone NOT NULL DEFAULT now()
145 | );
146 |
147 | CREATE TRIGGER set_timestamp
148 | BEFORE UPDATE ON remember_tokens
149 | FOR EACH ROW
150 | EXECUTE PROCEDURE trigger_set_timestamp();
151 |
152 | drop table if exists tokens;
153 |
154 | CREATE TABLE tokens (
155 | id SERIAL PRIMARY KEY,
156 | user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,
157 | first_name character varying(255) NOT NULL,
158 | email character varying(255) NOT NULL,
159 | token character varying(255) NOT NULL,
160 | token_hash bytea NOT NULL,
161 | created_at timestamp without time zone NOT NULL DEFAULT now(),
162 | updated_at timestamp without time zone NOT NULL DEFAULT now(),
163 | expiry timestamp without time zone NOT NULL
164 | );
165 |
166 | CREATE TRIGGER set_timestamp
167 | BEFORE UPDATE ON tokens
168 | FOR EACH ROW
169 | EXECUTE PROCEDURE trigger_set_timestamp();
170 | `
171 |
172 | _, err := db.Exec(stmt)
173 | if err != nil {
174 | return err
175 | }
176 | return nil
177 | }
178 |
179 | func TestUser_Table(t *testing.T) {
180 | s := models.Users.Table()
181 | if s != "users" {
182 | t.Error("wrong table name returned: ", s)
183 | }
184 | }
185 |
186 | func TestUser_Insert(t *testing.T) {
187 | id, err := models.Users.Insert(dummyUser)
188 | if err != nil {
189 | t.Error("failed to insert user: ", err)
190 | }
191 |
192 | if id == 0 {
193 | t.Error("0 returned as id after insert")
194 | }
195 | }
196 |
197 | func TestUser_Get(t *testing.T) {
198 | u, err := models.Users.Get(1)
199 | if err != nil {
200 | t.Error("failed to get user: ", err)
201 | }
202 |
203 | if u.ID == 0 {
204 | t.Error("id of returned user is 0: ", err)
205 | }
206 | }
207 |
208 | func TestUser_GetAll(t *testing.T) {
209 | _, err := models.Users.GetAll()
210 | if err != nil {
211 | t.Error("failed to get user: ", err)
212 | }
213 | }
214 |
215 | func TestUser_GetByEmail(t *testing.T) {
216 | u, err := models.Users.GetByEmail("me@here.com")
217 | if err != nil {
218 | t.Error("failed to get user: ", err)
219 | }
220 |
221 | if u.ID == 0 {
222 | t.Error("id of returned user is 0: ", err)
223 | }
224 | }
225 |
226 | func TestUser_Update(t *testing.T) {
227 | u, err := models.Users.Get(1)
228 | if err != nil {
229 | t.Error("failed to get user: ", err)
230 | }
231 |
232 | u.LastName = "Smith"
233 | err = u.Update(*u)
234 | if err != nil {
235 | t.Error("failed to update user: ", err)
236 | }
237 |
238 | u, err = models.Users.Get(1)
239 | if err != nil {
240 | t.Error("failed to get user: ", err)
241 | }
242 |
243 | if u.LastName != "Smith" {
244 | t.Error("last name not updated in database")
245 | }
246 | }
247 |
248 | func TestUser_PasswordMatches(t *testing.T) {
249 | u, err := models.Users.Get(1)
250 | if err != nil {
251 | t.Error("failed to get user: ", err)
252 | }
253 |
254 | matches, err := u.PasswordMatches("password")
255 | if err != nil {
256 | t.Error("error checking match: ", err)
257 | }
258 |
259 | if !matches {
260 | t.Error("password does match when it should")
261 | }
262 |
263 | matches, err = u.PasswordMatches("123")
264 | if err != nil {
265 | t.Error("error checking match: ", err)
266 | }
267 |
268 | if matches {
269 | t.Error("password matches when it should not")
270 | }
271 | }
272 |
273 | func TestUser_ResetPassword(t *testing.T) {
274 | err := models.Users.ResetPassword(1, "new_password")
275 | if err != nil {
276 | t.Error("error resetting password: ", err)
277 | }
278 |
279 | err = models.Users.ResetPassword(2, "new_password")
280 | if err == nil {
281 | t.Error("did not get an error when trying to reset password for non-existent user")
282 | }
283 | }
284 |
285 | func TestUser_Delete(t *testing.T) {
286 | err := models.Users.Delete(1)
287 | if err != nil {
288 | t.Error("failed to delete user: " , err)
289 | }
290 |
291 | _, err = models.Users.Get(1)
292 | if err == nil {
293 | t.Error("retrieved user who was supposed to be deleted")
294 | }
295 | }
296 |
297 | func TestToken_Table(t *testing.T) {
298 | s := models.Tokens.Table()
299 | if s != "tokens" {
300 | t.Error("wrong table name returned for tokens")
301 | }
302 | }
303 |
304 | func TestToken_GenerateToken(t *testing.T) {
305 | id, err := models.Users.Insert(dummyUser)
306 | if err != nil {
307 | t.Error("error inserting user: ", err)
308 | }
309 |
310 | _, err = models.Tokens.GenerateToken(id, time.Hour*24*365)
311 | if err != nil {
312 | t.Error("error generating token: ", err)
313 | }
314 | }
315 |
316 | func TestToken_Insert(t *testing.T) {
317 | u, err := models.Users.GetByEmail(dummyUser.Email)
318 | if err != nil {
319 | t.Error("failed to get user")
320 | }
321 |
322 | token, err := models.Tokens.GenerateToken(u.ID, time.Hour*24*365)
323 | if err != nil {
324 | t.Error("error generating token: ", err)
325 | }
326 |
327 | err = models.Tokens.Insert(*token, *u)
328 | if err != nil {
329 | t.Error("error insering token: ", err)
330 | }
331 | }
332 |
333 | func TestToken_GetUserForToken(t *testing.T) {
334 | token := "abc"
335 | _, err := models.Tokens.GetUserForToken(token)
336 | if err == nil {
337 | t.Error("error expected but not recieved when getting user with a bad token")
338 | }
339 |
340 | u, err := models.Users.GetByEmail(dummyUser.Email)
341 | if err != nil {
342 | t.Error("failed to get user")
343 | }
344 |
345 | _, err = models.Tokens.GetUserForToken(u.Token.PlainText)
346 | if err != nil {
347 | t.Error("failed to get user with valid token: ", err)
348 | }
349 | }
350 |
351 | func TestToken_GetTokensForUser(t *testing.T) {
352 | tokens, err := models.Tokens.GetTokensForUser(1)
353 | if err != nil {
354 | t.Error(err)
355 | }
356 |
357 | if len(tokens) > 0 {
358 | t.Error("tokens returned for non-existent user")
359 | }
360 | }
361 |
362 | func TestToken_Get(t *testing.T) {
363 | u, err := models.Users.GetByEmail(dummyUser.Email)
364 | if err != nil {
365 | t.Error("failed to get user")
366 | }
367 |
368 | _, err = models.Tokens.Get(u.Token.ID)
369 | if err != nil {
370 | t.Error("error getting token by id: ", err)
371 | }
372 | }
373 |
374 | func TestToken_GetByToken(t *testing.T) {
375 | u, err := models.Users.GetByEmail(dummyUser.Email)
376 | if err != nil {
377 | t.Error("failed to get user")
378 | }
379 |
380 | _, err = models.Tokens.GetByToken(u.Token.PlainText)
381 | if err != nil {
382 | t.Error("error getting token by token: ", err)
383 | }
384 |
385 | _, err = models.Tokens.GetByToken("123")
386 | if err == nil {
387 | t.Error("no error getting non-existing token by token: ", err)
388 | }
389 | }
390 |
391 | var authData = []struct {
392 | name string
393 | token string
394 | email string
395 | errorExpected bool
396 | message string
397 | }{
398 | {"invalid", "abcdefghijklmnopqrstuvwxyz", "a@here.com", true, "invalid token accepted as valid"},
399 | {"invalid_length", "abcdefghijklmnopqrstuvwxy", "a@here.com", true, "token of wrong length token accepted as valid"},
400 | {"no_user", "abcdefghijklmnopqrstuvwxyz", "a@here.com", true, "no user, but token accepted as valid"},
401 | {"valid", "", "me@here.com", false, "valid token reported as invalid"},
402 | }
403 |
404 | func TestToken_AuthenticateToken(t *testing.T) {
405 | for _, tt := range authData {
406 | token := ""
407 | if tt.email == dummyUser.Email {
408 | user, err := models.Users.GetByEmail(tt.email)
409 | if err != nil {
410 | t.Error("failed to get user: ", err)
411 | }
412 | token = user.Token.PlainText
413 | } else {
414 | token = tt.token
415 | }
416 |
417 | req, _ := http.NewRequest("GET", "/", nil)
418 | req.Header.Add("Authorization", "Bearer " + token)
419 |
420 | _, err := models.Tokens.AuthenticateToken(req)
421 | if tt.errorExpected && err == nil {
422 | t.Errorf("%s: %s", tt.name, tt.message)
423 | } else if !tt.errorExpected && err != nil {
424 | t.Errorf("%s: %s - %s", tt.name, tt.message, err)
425 | } else {
426 | t.Logf("passed %s", tt.name)
427 | }
428 | }
429 | }
430 |
431 | func TestToken_Delete(t *testing.T) {
432 | u, err := models.Users.GetByEmail(dummyUser.Email)
433 | if err != nil {
434 | t.Error(err)
435 | }
436 |
437 |
438 | err = models.Tokens.DeleteByToken(u.Token.PlainText)
439 | if err != nil {
440 | t.Error("error deleting token: ", err)
441 | }
442 | }
443 |
444 | func TestToken_ExpiredToken(t *testing.T) {
445 | // insert a token
446 | u, err := models.Users.GetByEmail(dummyUser.Email)
447 | if err != nil {
448 | t.Error(err)
449 | }
450 |
451 | token, err := models.Tokens.GenerateToken(u.ID, -time.Hour)
452 | if err != nil {
453 | t.Error(err)
454 | }
455 |
456 | err = models.Tokens.Insert(*token, *u)
457 | if err != nil {
458 | t.Error(err)
459 | }
460 |
461 | req, _ := http.NewRequest("GET", "/", nil)
462 | req.Header.Add("Authorization", "Bearer " + token.PlainText)
463 |
464 | _, err = models.Tokens.AuthenticateToken(req)
465 | if err == nil {
466 | t.Error("failed to catch expired token")
467 | }
468 |
469 | }
470 |
471 | func TestToken_BadHeader(t *testing.T) {
472 | req, _ := http.NewRequest("GET", "/", nil)
473 | _, err := models.Tokens.AuthenticateToken(req)
474 | if err == nil {
475 | t.Error("failed to catch missing auth header")
476 | }
477 |
478 | req, _ = http.NewRequest("GET", "/", nil)
479 | req.Header.Add("Authorization", "abc")
480 | _, err = models.Tokens.AuthenticateToken(req)
481 | if err == nil {
482 | t.Error("failed to catch bad auth header")
483 | }
484 |
485 | newUser := User {
486 | FirstName: "temp",
487 | LastName: "temp_last",
488 | Email: "you@there.com",
489 | Active: 1,
490 | Password: "abc",
491 | }
492 |
493 | id, err := models.Users.Insert(newUser)
494 | if err != nil {
495 | t.Error(err)
496 | }
497 |
498 | token, err := models.Tokens.GenerateToken(id, 1*time.Hour)
499 | if err != nil {
500 | t.Error(err)
501 | }
502 |
503 | err = models.Tokens.Insert(*token, newUser)
504 | if err != nil {
505 | t.Error(err)
506 | }
507 |
508 | err = models.Users.Delete(id)
509 | if err != nil {
510 | t.Error(err)
511 | }
512 |
513 | req, _ = http.NewRequest("GET", "/", nil)
514 | req.Header.Add("Authorization", "Bearer " + token.PlainText)
515 | _, err = models.Tokens.AuthenticateToken(req)
516 | if err == nil {
517 | t.Error("failed to catch token for deleted user")
518 | }
519 |
520 | }
521 |
522 | func TestToken_DeleteNonExistentToken(t *testing.T) {
523 | err := models.Tokens.DeleteByToken("abc")
524 | if err != nil {
525 | t.Error("error deleting token")
526 | }
527 | }
528 |
529 | func TestToken_ValidToken(t *testing.T) {
530 | u, err := models.Users.GetByEmail(dummyUser.Email)
531 | if err != nil {
532 | t.Error(err)
533 | }
534 |
535 | newToken, err := models.Tokens.GenerateToken(u.ID, 24*time.Hour)
536 | if err != nil {
537 | t.Error(err)
538 | }
539 |
540 | err = models.Tokens.Insert(*newToken, *u)
541 | if err != nil {
542 | t.Error(err)
543 | }
544 |
545 | okay, err := models.Tokens.ValidToken(newToken.PlainText)
546 | if err != nil {
547 | t.Error("error calling ValidToken: ", err)
548 | }
549 | if !okay {
550 | t.Error("valid token reported as invalid")
551 | }
552 |
553 | okay, _ = models.Tokens.ValidToken("abc")
554 | if okay {
555 | t.Error("invalid token reported as valid")
556 | }
557 |
558 | u, err = models.Users.GetByEmail(dummyUser.Email)
559 | if err != nil {
560 | t.Error(err)
561 | }
562 |
563 | err = models.Tokens.Delete(u.Token.ID)
564 | if err != nil {
565 | t.Error(err)
566 | }
567 |
568 | okay, err = models.Tokens.ValidToken(u.Token.PlainText)
569 | if err == nil {
570 | t.Error(err)
571 | }
572 | if okay {
573 | t.Error("no error reported when validating non-existent token")
574 | }
575 | }
--------------------------------------------------------------------------------
/myapp/data/models.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | "database/sql"
5 | "fmt"
6 | "os"
7 |
8 | db2 "github.com/upper/db/v4"
9 | "github.com/upper/db/v4/adapter/mysql"
10 | "github.com/upper/db/v4/adapter/postgresql"
11 | )
12 |
13 | var db *sql.DB
14 | var upper db2.Session
15 |
16 | // Models is the wrapper for all database models
17 | type Models struct {
18 | // any models inserted here (and in the New function)
19 | // are easily accessible throughout the entire application
20 | Users User
21 | Tokens Token
22 | }
23 |
24 | // New initializes the models package for use
25 | func New(databasePool *sql.DB) Models {
26 | db = databasePool
27 |
28 | switch os.Getenv("DATABASE_TYPE") {
29 | case "mysql", "mariadb":
30 | upper, _ = mysql.New(databasePool)
31 | case "postgres", "postgresql":
32 | upper, _ = postgresql.New(databasePool)
33 | default:
34 | // do nothing
35 | }
36 |
37 | return Models{
38 | Users: User{},
39 | Tokens: Token{},
40 | }
41 | }
42 |
43 | // getInsertID returns the integer value of a newly inserted id (using upper)
44 | func getInsertID(i db2.ID) int {
45 | idType := fmt.Sprintf("%T", i)
46 | if idType == "int64" {
47 | return int(i.(int64))
48 | }
49 |
50 | return i.(int)
51 | }
52 |
--------------------------------------------------------------------------------
/myapp/data/models_test.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | "fmt"
5 | "os"
6 | "testing"
7 | db2 "github.com/upper/db/v4"
8 |
9 | "github.com/DATA-DOG/go-sqlmock"
10 | )
11 |
12 | func TestNew(t *testing.T) {
13 | fakeDB, _, _ := sqlmock.New()
14 | defer fakeDB.Close()
15 |
16 | _ = os.Setenv("DATABASE_TYPE", "postgres")
17 | m := New(fakeDB)
18 | if fmt.Sprintf("%T", m) != "data.Models" {
19 | t.Error("Wrong type", fmt.Sprintf("%T", m))
20 | }
21 |
22 | _ = os.Setenv("DATABASE_TYPE", "mysql")
23 | m = New(fakeDB)
24 | if fmt.Sprintf("%T", m) != "data.Models" {
25 | t.Error("Wrong type", fmt.Sprintf("%T", m))
26 | }
27 | }
28 |
29 | func TestGetInsertID(t *testing.T) {
30 | var id db2.ID
31 | id = int64(1)
32 |
33 | returnedID := getInsertID(id)
34 | if fmt.Sprintf("%T", returnedID) != "int" {
35 | t.Error("wrong type returned")
36 | }
37 |
38 | id = 1
39 | returnedID = getInsertID(id)
40 | if fmt.Sprintf("%T", returnedID) != "int" {
41 | t.Error("wrong type returned")
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/myapp/data/remember_token.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | "time"
5 |
6 | up "github.com/upper/db/v4"
7 | )
8 |
9 | type RememberToken struct {
10 | ID int `db:"id,omitempty"`
11 | UserID int `db:"user_id"`
12 | RememberToken string `db:"remember_token"`
13 | CreatedAt time.Time `db:"created_at"`
14 | UpdatedAt time.Time `db:"updated_at"`
15 | }
16 |
17 |
18 | func (t *RememberToken) Table() string {
19 | return "remember_tokens"
20 | }
21 |
22 | func (t *RememberToken) InsertToken(userID int, token string) error {
23 | collection := upper.Collection(t.Table())
24 | rememberToken := RememberToken{
25 | UserID: userID,
26 | RememberToken: token,
27 | CreatedAt: time.Now(),
28 | UpdatedAt: time.Now(),
29 | }
30 | _, err := collection.Insert(rememberToken)
31 | if err != nil {
32 | return err
33 | }
34 | return nil
35 | }
36 |
37 | func (t *RememberToken) Delete(rememberToken string) error {
38 | collection := upper.Collection(t.Table())
39 | res := collection.Find(up.Cond{"remember_token": rememberToken})
40 | err := res.Delete()
41 | if err != nil {
42 | return err
43 | }
44 | return nil
45 | }
46 |
--------------------------------------------------------------------------------
/myapp/data/setup_test.go:
--------------------------------------------------------------------------------
1 | //go:build unit
2 |
3 | package data
4 |
5 | import (
6 | "os"
7 | "testing"
8 | )
9 |
10 | func TestMain(m *testing.M) {
11 |
12 | os.Exit(m.Run())
13 | }
14 |
--------------------------------------------------------------------------------
/myapp/data/test.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | up "github.com/upper/db/v4"
5 | "time"
6 | )
7 | // Test struct
8 | type Test struct {
9 | ID int `db:"id,omitempty"`
10 | CreatedAt time.Time `db:"created_at"`
11 | UpdatedAt time.Time `db:"updated_at"`
12 | }
13 |
14 | // Table returns the table name
15 | func (t *Test) Table() string {
16 | return "tests"
17 | }
18 |
19 | // GetAll gets all records from the database, using upper
20 | func (t *Test) GetAll(condition up.Cond) ([]*Test, error) {
21 | collection := upper.Collection(t.Table())
22 | var all []*Test
23 |
24 | res := collection.Find(condition)
25 | err := res.All(&all)
26 | if err != nil {
27 | return nil, err
28 | }
29 |
30 | return all, err
31 | }
32 |
33 | // Get gets one record from the database, by id, using upper
34 | func (t *Test) Get(id int) (*Test, error) {
35 | var one Test
36 | collection := upper.Collection(t.Table())
37 |
38 | res := collection.Find(up.Cond{"id": id})
39 | err := res.One(&one)
40 | if err != nil {
41 | return nil, err
42 | }
43 | return &one, nil
44 | }
45 |
46 | // Update updates a record in the database, using upper
47 | func (t *Test) Update(m Test) error {
48 | m.UpdatedAt = time.Now()
49 | collection := upper.Collection(t.Table())
50 | res := collection.Find(m.ID)
51 | err := res.Update(&m)
52 | if err != nil {
53 | return err
54 | }
55 | return nil
56 | }
57 |
58 | // Delete deletes a record from the database by id, using upper
59 | func (t *Test) Delete(id int) error {
60 | collection := upper.Collection(t.Table())
61 | res := collection.Find(id)
62 | err := res.Delete()
63 | if err != nil {
64 | return err
65 | }
66 | return nil
67 | }
68 |
69 | // Insert inserts a model into the database, using upper
70 | func (t *Test) Insert(m Test) (int, error) {
71 | m.CreatedAt = time.Now()
72 | m.UpdatedAt = time.Now()
73 | collection := upper.Collection(t.Table())
74 | res, err := collection.Insert(m)
75 | if err != nil {
76 | return 0, err
77 | }
78 |
79 | id := getInsertID(res.ID())
80 |
81 | return id, nil
82 | }
83 |
84 | // Builder is an example of using upper's sql builder
85 | func (t *Test) Builder(id int) ([]*Test, error) {
86 | collection := upper.Collection(t.Table())
87 |
88 | var result []*Test
89 |
90 | err := collection.Session().
91 | SQL().
92 | SelectFrom(t.Table()).
93 | Where("id > ?", id).
94 | OrderBy("id").
95 | All(&result)
96 | if err != nil {
97 | return nil, err
98 | }
99 | return result, nil
100 | }
101 |
102 |
--------------------------------------------------------------------------------
/myapp/data/token.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | "crypto/sha256"
5 | "encoding/base32"
6 | "errors"
7 | "math/rand"
8 | "net/http"
9 | "strings"
10 | "time"
11 |
12 | up "github.com/upper/db/v4"
13 | )
14 |
15 | type Token struct {
16 | ID int `db:"id,omitempty" json:"id"`
17 | UserID int `db:"user_id" json:"user_id"`
18 | FirstName string `db:"first_name" json:"first_name"`
19 | Email string `db:"email" json:"email"`
20 | PlainText string `db:"token" json:"token"`
21 | Hash []byte `db:"token_hash" json:"-"`
22 | CreatedAt time.Time `db:"created_at" json:"created_at"`
23 | UpdatedAt time.Time `db:"updated_at" json:"updated_at"`
24 | Expires time.Time `db:"expiry" json:"expiry"`
25 | }
26 |
27 | func (t *Token) Table() string {
28 | return "tokens"
29 | }
30 |
31 | func (t *Token) GetUserForToken(token string) (*User, error) {
32 | var u User
33 | var theToken Token
34 |
35 | collection := upper.Collection(t.Table())
36 | res := collection.Find(up.Cond{"token": token})
37 | err := res.One(&theToken)
38 | if err != nil {
39 | return nil, err
40 | }
41 |
42 | collection = upper.Collection("users")
43 | res = collection.Find(up.Cond{"id": theToken.UserID})
44 | err = res.One(&u)
45 | if err != nil {
46 | return nil, err
47 | }
48 |
49 | u.Token = theToken
50 |
51 | return &u, nil
52 | }
53 |
54 | func (t *Token) GetTokensForUser(id int) ([]*Token, error) {
55 | var tokens []*Token
56 | collection := upper.Collection(t.Table())
57 | res := collection.Find(up.Cond{"user_id": id})
58 | err := res.All(&tokens)
59 | if err != nil {
60 | return nil, err
61 | }
62 |
63 | return tokens, nil
64 | }
65 |
66 | func (t *Token) Get(id int) (*Token, error) {
67 | var token Token
68 | collection := upper.Collection(t.Table())
69 | res := collection.Find(up.Cond{"id": id})
70 | err := res.One(&token)
71 | if err != nil {
72 | return nil, err
73 | }
74 |
75 | return &token, nil
76 | }
77 |
78 | func (t *Token) GetByToken(plainText string) (*Token, error) {
79 | var token Token
80 | collection := upper.Collection(t.Table())
81 | res := collection.Find(up.Cond{"token": plainText})
82 | err := res.One(&token)
83 | if err != nil {
84 | return nil, err
85 | }
86 |
87 | return &token, nil
88 | }
89 |
90 | func (t *Token) Delete(id int) error {
91 | collection := upper.Collection(t.Table())
92 | res := collection.Find(id)
93 | err := res.Delete()
94 | if err != nil {
95 | return err
96 | }
97 |
98 | return nil
99 | }
100 |
101 | func (t *Token) DeleteByToken(plainText string) error {
102 | collection := upper.Collection(t.Table())
103 | res := collection.Find(up.Cond{"token": plainText})
104 | err := res.Delete()
105 | if err != nil {
106 | return err
107 | }
108 |
109 | return nil
110 | }
111 |
112 | func (t *Token) Insert(token Token, u User) error {
113 | collection := upper.Collection(t.Table())
114 |
115 | // delete existing tokens
116 | res := collection.Find(up.Cond{"user_id": u.ID})
117 | err := res.Delete()
118 | if err != nil {
119 | return err
120 | }
121 |
122 | token.CreatedAt = time.Now()
123 | token.UpdatedAt = time.Now()
124 | token.FirstName = u.FirstName
125 | token.Email = u.Email
126 |
127 | _, err = collection.Insert(token)
128 | if err != nil {
129 | return err
130 | }
131 |
132 | return nil
133 | }
134 |
135 | func (t *Token) GenerateToken(userID int, ttl time.Duration) (*Token, error) {
136 | token := &Token{
137 | UserID: userID,
138 | Expires: time.Now().Add(ttl),
139 | }
140 |
141 | randomBytes := make([]byte, 16)
142 | _, err := rand.Read(randomBytes)
143 | if err != nil {
144 | return nil, err
145 | }
146 |
147 | token.PlainText = base32.StdEncoding.WithPadding(base32.NoPadding).EncodeToString(randomBytes)
148 | hash := sha256.Sum256([]byte(token.PlainText))
149 | token.Hash = hash[:]
150 |
151 | return token, nil
152 | }
153 |
154 | func (t *Token) AuthenticateToken(r *http.Request) (*User, error) {
155 | authorizationHeader := r.Header.Get("Authorization")
156 | if authorizationHeader == "" {
157 | return nil, errors.New("no authorization header received")
158 | }
159 |
160 | headerParts := strings.Split(authorizationHeader, " ")
161 | if len(headerParts) != 2 || headerParts[0] != "Bearer" {
162 | return nil, errors.New("no authorization header received")
163 | }
164 |
165 | token := headerParts[1]
166 |
167 | if len(token) != 26 {
168 | return nil, errors.New("token wrong size")
169 | }
170 |
171 | tkn, err := t.GetByToken(token)
172 | if err != nil {
173 | return nil, errors.New("no matching token found")
174 | }
175 |
176 | if tkn.Expires.Before(time.Now()) {
177 | return nil, errors.New("expired token")
178 | }
179 |
180 | user, err := t.GetUserForToken(token)
181 | if err != nil {
182 | return nil, errors.New("no matching user found")
183 | }
184 |
185 | return user, nil
186 | }
187 |
188 | func (t *Token) ValidToken(token string) (bool, error) {
189 | user, err := t.GetUserForToken(token)
190 | if err != nil {
191 | return false, errors.New("no matching user found")
192 | }
193 |
194 | if user.Token.PlainText == "" {
195 | return false, errors.New("no matching token found")
196 | }
197 |
198 | if user.Token.Expires.Before(time.Now()) {
199 | return false, errors.New("expired token")
200 | }
201 |
202 | return true, nil
203 | }
204 |
--------------------------------------------------------------------------------
/myapp/data/user.go:
--------------------------------------------------------------------------------
1 | package data
2 |
3 | import (
4 | "errors"
5 | "time"
6 |
7 | "github.com/tsawler/celeritas"
8 | up "github.com/upper/db/v4"
9 | "golang.org/x/crypto/bcrypt"
10 | )
11 |
12 | // User is the type for a user
13 | type User struct {
14 | ID int `db:"id,omitempty"`
15 | FirstName string `db:"first_name"`
16 | LastName string `db:"last_name"`
17 | Email string `db:"email"`
18 | Active int `db:"user_active"`
19 | Password string `db:"password"`
20 | CreatedAt time.Time `db:"created_at"`
21 | UpdatedAt time.Time `db:"updated_at"`
22 | Token Token `db:"-"`
23 | }
24 |
25 | // Table returns the table name associated with this model in the database
26 | func (u *User) Table() string {
27 | return "users"
28 | }
29 |
30 | func (u *User) Validate(validator *celeritas.Validation) {
31 | validator.Check(u.LastName != "", "last_name", "Last name must be provided")
32 | validator.Check(u.FirstName != "", "first_name", "First name must be provided")
33 | validator.Check(u.Email != "", "email", "Email must be provided")
34 | validator.IsEmail("email", u.Email)
35 | }
36 |
37 | // GetAll returns a slice of all users
38 | func (u *User) GetAll() ([]*User, error) {
39 | collection := upper.Collection(u.Table())
40 |
41 | var all []*User
42 |
43 | res := collection.Find().OrderBy("last_name")
44 | err := res.All(&all)
45 | if err != nil {
46 | return nil, err
47 | }
48 |
49 | return all, nil
50 | }
51 |
52 | // GetByEmail gets one user, by email
53 | func (u *User) GetByEmail(email string) (*User, error) {
54 | var theUser User
55 | collection := upper.Collection(u.Table())
56 | res := collection.Find(up.Cond{"email =": email})
57 | err := res.One(&theUser)
58 | if err != nil {
59 | return nil, err
60 | }
61 |
62 | var token Token
63 | collection = upper.Collection(token.Table())
64 | res = collection.Find(up.Cond{"user_id =": theUser.ID, "expiry >": time.Now()}).OrderBy("created_at desc")
65 | err = res.One(&token)
66 | if err != nil {
67 | if err != up.ErrNilRecord && err != up.ErrNoMoreRows {
68 | return nil, err
69 | }
70 | }
71 |
72 | theUser.Token = token
73 |
74 | return &theUser, nil
75 | }
76 |
77 | // Get gets one user by id
78 | func (u *User) Get(id int) (*User, error) {
79 | var theUser User
80 | collection := upper.Collection(u.Table())
81 | res := collection.Find(up.Cond{"id =": id})
82 |
83 | err := res.One(&theUser)
84 | if err != nil {
85 | return nil, err
86 | }
87 |
88 | var token Token
89 | collection = upper.Collection(token.Table())
90 | res = collection.Find(up.Cond{"user_id =": theUser.ID, "expiry >": time.Now()}).OrderBy("created_at desc")
91 | err = res.One(&token)
92 | if err != nil {
93 | if err != up.ErrNilRecord && err != up.ErrNoMoreRows {
94 | return nil, err
95 | }
96 | }
97 |
98 | theUser.Token = token
99 |
100 | return &theUser, nil
101 | }
102 |
103 | // Update updates a user record in the database
104 | func (u *User) Update(theUser User) error {
105 | theUser.UpdatedAt = time.Now()
106 | collection := upper.Collection(u.Table())
107 | res := collection.Find(theUser.ID)
108 | err := res.Update(&theUser)
109 | if err != nil {
110 | return err
111 | }
112 | return nil
113 | }
114 |
115 | // Delete deletes a user by id
116 | func (u *User) Delete(id int) error {
117 | collection := upper.Collection(u.Table())
118 | res := collection.Find(id)
119 | err := res.Delete()
120 | if err != nil {
121 | return err
122 | }
123 | return nil
124 |
125 | }
126 |
127 | // Insert inserts a new user, and returns the newly inserted id
128 | func (u *User) Insert(theUser User) (int, error) {
129 | newHash, err := bcrypt.GenerateFromPassword([]byte(theUser.Password), 12)
130 | if err != nil {
131 | return 0, err
132 | }
133 |
134 | theUser.CreatedAt = time.Now()
135 | theUser.UpdatedAt = time.Now()
136 | theUser.Password = string(newHash)
137 |
138 | collection := upper.Collection(u.Table())
139 | res, err := collection.Insert(theUser)
140 | if err != nil {
141 | return 0, err
142 | }
143 |
144 | id := getInsertID(res.ID())
145 |
146 | return id, nil
147 | }
148 |
149 | // ResetPassword resets a users's password, by id, using supplied password
150 | func (u *User) ResetPassword(id int, password string) error {
151 | newHash, err := bcrypt.GenerateFromPassword([]byte(password), 12)
152 | if err != nil {
153 | return err
154 | }
155 |
156 | theUser, err := u.Get(id)
157 | if err != nil {
158 | return err
159 | }
160 |
161 | u.Password = string(newHash)
162 |
163 | err = theUser.Update(*u)
164 | if err != nil {
165 | return err
166 | }
167 |
168 | return nil
169 | }
170 |
171 | // PasswordMatches verifies a supplied password against the hash stored in the database.
172 | // It returns true if valid, and false if the password does not match, or if there is an
173 | // error. Note that an error is only returned if something goes wrong (since an invalid password
174 | // is not an error -- it's just the wrong password))
175 | func (u *User) PasswordMatches(plainText string) (bool, error) {
176 | err := bcrypt.CompareHashAndPassword([]byte(u.Password), []byte(plainText))
177 | if err != nil {
178 | switch {
179 | case errors.Is(err, bcrypt.ErrMismatchedHashAndPassword):
180 | // invalid password
181 | return false, nil
182 | default:
183 | // some kind of error occurred
184 | return false, err
185 | }
186 | }
187 |
188 | return true, nil
189 | }
190 |
191 | func (u *User) CheckForRememberToken(id int, token string) bool {
192 | var rememberToken RememberToken
193 | rt := RememberToken{}
194 | collection := upper.Collection(rt.Table())
195 | res := collection.Find(up.Cond{"user_id": id, "remember_token": token})
196 | err := res.One(&rememberToken)
197 | return err == nil
198 | }
--------------------------------------------------------------------------------
/myapp/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3'
2 |
3 | services:
4 |
5 | # start Postgres, and ensure that data is stored to a mounted volume
6 | postgres:
7 | image: 'postgres:13.4'
8 | ports:
9 | - "5432:5432"
10 | restart: always
11 | environment:
12 | POSTGRES_USER: postgres
13 | POSTGRES_PASSWORD: password
14 | POSTGRES_DB: celeritas
15 | volumes:
16 | - ./db-data/postgres/:/var/lib/postgresql/data/
17 |
18 | # start Redis, and ensure that data is stored to a mounted volume
19 | redis:
20 | image: 'redis:alpine'
21 | ports:
22 | - "6379:6379"
23 | restart: always
24 | volumes:
25 | - ./db-data/redis/:/data
26 |
27 | # start MariaDB, and ensure that data is stored to a mounted volume
28 | mariadb:
29 | image: 'mariadb:10.6'
30 | ports:
31 | - "3306:3306"
32 | restart: always
33 | environment:
34 | MYSQL_ROOT_PASSWORD: password
35 | MYSQL_DATABASE: celeritas
36 | MYSQL_USER: mariadb
37 | MYSQL_PASSWORD: password
38 |
39 | volumes:
40 | - ./db-data/mariadb/:/var/lib/mysql
41 |
--------------------------------------------------------------------------------
/myapp/go.mod:
--------------------------------------------------------------------------------
1 | module myapp
2 |
3 | go 1.17
4 |
5 | replace github.com/tsawler/celeritas => ../celeritas
6 |
7 | require (
8 | github.com/CloudyKit/jet/v6 v6.1.0
9 | github.com/DATA-DOG/go-sqlmock v1.5.0
10 | github.com/go-chi/chi/v5 v5.0.4
11 | github.com/jackc/pgconn v1.10.0
12 | github.com/jackc/pgx/v4 v4.13.0
13 | github.com/justinas/nosurf v1.1.1
14 | github.com/ory/dockertest/v3 v3.8.0
15 | github.com/tsawler/celeritas v0.0.0
16 | github.com/upper/db/v4 v4.2.1
17 | golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
18 | )
19 |
20 | require (
21 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 // indirect
22 | github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 // indirect
23 | github.com/Microsoft/go-winio v0.5.0 // indirect
24 | github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
25 | github.com/PuerkitoBio/goquery v1.5.1 // indirect
26 | github.com/SparkPost/gosparkpost v0.2.0 // indirect
27 | github.com/ainsleyclark/go-mail v1.0.3 // indirect
28 | github.com/alexedwards/scs/mysqlstore v0.0.0-20210904201103-9ffa4cfa9323 // indirect
29 | github.com/alexedwards/scs/postgresstore v0.0.0-20210904201103-9ffa4cfa9323 // indirect
30 | github.com/alexedwards/scs/redisstore v0.0.0-20210904201103-9ffa4cfa9323 // indirect
31 | github.com/alexedwards/scs/v2 v2.4.0 // indirect
32 | github.com/andybalholm/cascadia v1.1.0 // indirect
33 | github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
34 | github.com/bwmarrin/go-alone v0.0.0-20190806015146-742bb55d1631 // indirect
35 | github.com/cenkalti/backoff/v4 v4.1.1 // indirect
36 | github.com/cespare/xxhash v1.1.0 // indirect
37 | github.com/cespare/xxhash/v2 v2.1.1 // indirect
38 | github.com/containerd/continuity v0.2.0 // indirect
39 | github.com/dgraph-io/badger/v3 v3.2103.1 // indirect
40 | github.com/dgraph-io/ristretto v0.1.0 // indirect
41 | github.com/docker/cli v20.10.8+incompatible // indirect
42 | github.com/docker/docker v20.10.7+incompatible // indirect
43 | github.com/docker/go-connections v0.4.0 // indirect
44 | github.com/docker/go-units v0.4.0 // indirect
45 | github.com/dustin/go-humanize v1.0.0 // indirect
46 | github.com/gabriel-vasile/mimetype v1.3.1 // indirect
47 | github.com/go-sql-driver/mysql v1.6.0 // indirect
48 | github.com/gogo/protobuf v1.3.2 // indirect
49 | github.com/golang-migrate/migrate/v4 v4.14.1 // indirect
50 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
51 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
52 | github.com/golang/protobuf v1.5.0 // indirect
53 | github.com/golang/snappy v0.0.3 // indirect
54 | github.com/gomodule/redigo v1.8.5 // indirect
55 | github.com/google/flatbuffers v1.12.0 // indirect
56 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
57 | github.com/gorilla/css v1.0.0 // indirect
58 | github.com/gorilla/mux v1.8.0 // indirect
59 | github.com/hashicorp/errwrap v1.0.0 // indirect
60 | github.com/hashicorp/go-multierror v1.1.0 // indirect
61 | github.com/imdario/mergo v0.3.12 // indirect
62 | github.com/jackc/chunkreader/v2 v2.0.1 // indirect
63 | github.com/jackc/pgio v1.0.0 // indirect
64 | github.com/jackc/pgpassfile v1.0.0 // indirect
65 | github.com/jackc/pgproto3/v2 v2.1.1 // indirect
66 | github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect
67 | github.com/jackc/pgtype v1.8.1 // indirect
68 | github.com/joho/godotenv v1.3.0 // indirect
69 | github.com/json-iterator/go v1.1.12 // indirect
70 | github.com/klauspost/compress v1.12.3 // indirect
71 | github.com/lib/pq v1.10.2 // indirect
72 | github.com/mailgun/mailgun-go/v4 v4.5.3 // indirect
73 | github.com/mitchellh/mapstructure v1.4.1 // indirect
74 | github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 // indirect
75 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
76 | github.com/modern-go/reflect2 v1.0.2 // indirect
77 | github.com/opencontainers/go-digest v1.0.0 // indirect
78 | github.com/opencontainers/image-spec v1.0.1 // indirect
79 | github.com/opencontainers/runc v1.0.2 // indirect
80 | github.com/pkg/errors v0.9.1 // indirect
81 | github.com/robfig/cron/v3 v3.0.1 // indirect
82 | github.com/sendgrid/rest v2.6.5+incompatible // indirect
83 | github.com/sendgrid/sendgrid-go v3.10.1+incompatible // indirect
84 | github.com/sirupsen/logrus v1.8.1 // indirect
85 | github.com/vanng822/css v1.0.1 // indirect
86 | github.com/vanng822/go-premailer v1.20.1 // indirect
87 | github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
88 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
89 | github.com/xeipuuv/gojsonschema v1.2.0 // indirect
90 | github.com/xhit/go-simple-mail/v2 v2.10.0 // indirect
91 | go.opencensus.io v0.22.5 // indirect
92 | golang.org/x/net v0.0.0-20210928044308-7d9f5e0b762b // indirect
93 | golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 // indirect
94 | golang.org/x/text v0.3.6 // indirect
95 | google.golang.org/protobuf v1.26.0 // indirect
96 | gopkg.in/yaml.v2 v2.4.0 // indirect
97 | )
98 |
--------------------------------------------------------------------------------
/myapp/go.sum:
--------------------------------------------------------------------------------
1 | bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM=
2 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
3 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
4 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
5 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
6 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
7 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
8 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
9 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
10 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
11 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
12 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
13 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
14 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
15 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
16 | cloud.google.com/go v0.63.0/go.mod h1:GmezbQc7T2snqkEXWfZ0sy0VfkB/ivI2DdtJL2DEmlg=
17 | cloud.google.com/go v0.64.0/go.mod h1:xfORb36jGvE+6EexW71nMEtL025s3x6xvuYUKM4JLv4=
18 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
19 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
20 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
21 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
22 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
23 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
24 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
25 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
26 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
27 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
28 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
29 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
30 | cloud.google.com/go/spanner v1.9.0/go.mod h1:xvlEn0NZ5v1iJPYsBnUVRDNvccDxsBTEi16pJRKQVws=
31 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
32 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
33 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
34 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
35 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
36 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
37 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78 h1:w+iIsaOQNcT7OZ575w+acHgRric5iCyQh+xv+KJ4HB8=
38 | github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
39 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
40 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
41 | github.com/ClickHouse/clickhouse-go v1.3.12/go.mod h1:EaI/sW7Azgz9UATzd5ZdZHRUhHgv5+JMS9NSr2smCJI=
42 | github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53 h1:sR+/8Yb4slttB4vD+b9btVEnWgL3Q00OBTzVT8B9C0c=
43 | github.com/CloudyKit/fastprinter v0.0.0-20200109182630-33d98a066a53/go.mod h1:+3IMCy2vIlbG1XG/0ggNQv0SvxCAIpPM5b1nCz56Xno=
44 | github.com/CloudyKit/jet/v6 v6.1.0 h1:hvO96X345XagdH1fAoBjpBYG4a1ghhL/QzalkduPuXk=
45 | github.com/CloudyKit/jet/v6 v6.1.0/go.mod h1:d3ypHeIRNo2+XyqnGA8s+aphtcVpjP5hPwP/Lzo7Ro4=
46 | github.com/DATA-DOG/go-sqlmock v1.5.0 h1:Shsta01QNfFxHCfpW6YH2STWB0MudeXXEWMr20OEh60=
47 | github.com/DATA-DOG/go-sqlmock v1.5.0/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM=
48 | github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
49 | github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
50 | github.com/Microsoft/go-winio v0.4.14 h1:+hMXMk01us9KgxGb7ftKQt2Xpf5hH/yky+TDA+qxleU=
51 | github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
52 | github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 h1:ygIc8M6trr62pF5DucadTWGdEB4mEyvzi0e2nbcmcyA=
53 | github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5/go.mod h1:tTuCMEN+UleMWgg9dVx4Hu52b1bJo+59jBh3ajtinzw=
54 | github.com/Microsoft/go-winio v0.5.0 h1:Elr9Wn+sGKPlkaBvwu4mTrxtmOp3F3yV9qhaHbXGjwU=
55 | github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
56 | github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw=
57 | github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk=
58 | github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
59 | github.com/PuerkitoBio/goquery v1.5.1 h1:PSPBGne8NIUWw+/7vFBV+kG2J/5MOjbzc7154OaKCSE=
60 | github.com/PuerkitoBio/goquery v1.5.1/go.mod h1:GsLWisAFVj4WgDibEWF4pvYnkVQBpKBKeU+7zCJoLcc=
61 | github.com/SparkPost/gosparkpost v0.2.0 h1:yzhHQT7cE+rqzd5tANNC74j+2x3lrPznqPJrxC1yR8s=
62 | github.com/SparkPost/gosparkpost v0.2.0/go.mod h1:S9WKcGeou7cbPpx0kTIgo8Q69WZvUmVeVzbD+djalJ4=
63 | github.com/ainsleyclark/go-mail v1.0.3 h1:ASkHtT/TJunG6Cdp1gC7amGKFfG9jLZYYiMKcMmyv5s=
64 | github.com/ainsleyclark/go-mail v1.0.3/go.mod h1:wOJDCAUZNyRFcrSgX+cNxdx3vJvTPDv2uGfbUm7oC5Y=
65 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
66 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
67 | github.com/alexedwards/scs/mysqlstore v0.0.0-20210904201103-9ffa4cfa9323 h1:CUWCz35VCzjtYkprg0qJljeInqOxB1xCxDckqWOa+Qc=
68 | github.com/alexedwards/scs/mysqlstore v0.0.0-20210904201103-9ffa4cfa9323/go.mod h1:Ae5jMu5Nlp7KkM7RuqHAzuYBBZf5K6HfRV1WVQXXTJA=
69 | github.com/alexedwards/scs/postgresstore v0.0.0-20210904201103-9ffa4cfa9323 h1:mGmA4A79vxKKDzBpoPEjN/0gqkBpIlaQdQS78dK1sXg=
70 | github.com/alexedwards/scs/postgresstore v0.0.0-20210904201103-9ffa4cfa9323/go.mod h1:TDDdV/xnjj+/4zBQ9a2k+i2AbuAdY7SQjPUh5zoTZ3M=
71 | github.com/alexedwards/scs/redisstore v0.0.0-20210904201103-9ffa4cfa9323 h1:tywSts+Wea/2rXtZ/Jdccw3zAunyisXDrZf9Z9nfflc=
72 | github.com/alexedwards/scs/redisstore v0.0.0-20210904201103-9ffa4cfa9323/go.mod h1:ceKFatoD+hfHWWeHOAYue1J+XgOJjE7dw8l3JtIRTGY=
73 | github.com/alexedwards/scs/v2 v2.4.0 h1:XfnMamKnvp1muJVNr1WzikQTclopsBXWZtzz0NBjOK0=
74 | github.com/alexedwards/scs/v2 v2.4.0/go.mod h1:ToaROZxyKukJKT/xLcVQAChi5k6+Pn1Gvmdl7h3RRj8=
75 | github.com/andybalholm/cascadia v1.1.0 h1:BuuO6sSfQNFRu1LppgbD25Hr2vLYW25JvxHs5zzsLTo=
76 | github.com/andybalholm/cascadia v1.1.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
77 | github.com/apache/arrow/go/arrow v0.0.0-20200601151325-b2287a20f230/go.mod h1:QNYViu/X0HXDHw7m3KXzWSVXIbfUvJqBFe6Gj8/pYA0=
78 | github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
79 | github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
80 | github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
81 | github.com/aws/aws-sdk-go v1.17.7/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
82 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
83 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
84 | github.com/bitly/go-hostpool v0.0.0-20171023180738-a3a6125de932/go.mod h1:NOuUCSz6Q9T7+igc/hlvDOUdtWKryOrtFyIVABv/p7k=
85 | github.com/bits-and-blooms/bitset v1.2.0/go.mod h1:gIdJ4wp64HaoK2YrL1Q5/N7Y16edYb8uY+O0FJTyyDA=
86 | github.com/bkaradzic/go-lz4 v1.0.0/go.mod h1:0YdlkowM3VswSROI7qDxhRvJ3sLhlFrRRwjwegp5jy4=
87 | github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869/go.mod h1:Ekp36dRnpXw/yCqJaO+ZrUyxD+3VXMFFr56k5XYrpB4=
88 | github.com/buger/jsonparser v1.0.0/go.mod h1:tgcrVJ81GPSF0mz+0nu1Xaz0fazGPrmmJfJtxjbHhUQ=
89 | github.com/bwmarrin/go-alone v0.0.0-20190806015146-742bb55d1631 h1:Xb5rra6jJt5Z1JsZhIMby+IP5T8aU+Uc2RC9RzSxs9g=
90 | github.com/bwmarrin/go-alone v0.0.0-20190806015146-742bb55d1631/go.mod h1:P86Dksd9km5HGX5UMIocXvX87sEp2xUARle3by+9JZ4=
91 | github.com/cenkalti/backoff/v4 v4.0.2/go.mod h1:eEew/i+1Q6OrCDZh3WiXYv3+nJwBASZ8Bog/87DQnVg=
92 | github.com/cenkalti/backoff/v4 v4.1.0 h1:c8LkOFQTzuO0WBM/ae5HdGQuZPfPxp7lqBRwQRm4fSc=
93 | github.com/cenkalti/backoff/v4 v4.1.0/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw=
94 | github.com/cenkalti/backoff/v4 v4.1.1 h1:G2HAfAmvm/GcKan2oOQpBXOd2tT2G57ZnZGWa1PxPBQ=
95 | github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw=
96 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
97 | github.com/cention-sany/utf7 v0.0.0-20170124080048-26cad61bd60a/go.mod h1:2GxOXOlEPAMFPfp014mK1SWq8G8BN8o7/dfYqJrVGn8=
98 | github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
99 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
100 | github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=
101 | github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
102 | github.com/checkpoint-restore/go-criu/v5 v5.0.0/go.mod h1:cfwC0EG7HMUenopBsUf9d89JlCLQIfgVcNsNN0t6T2M=
103 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
104 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
105 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
106 | github.com/cilium/ebpf v0.6.2/go.mod h1:4tRaxcgiL706VnOzHOdBlY8IEAIdxINsQBcU4xJJXRs=
107 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
108 | github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80=
109 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
110 | github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I=
111 | github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ=
112 | github.com/cockroachdb/cockroach-go v0.0.0-20190925194419-606b3d062051/go.mod h1:XGLbWH/ujMcbPbhZq52Nv6UrCghb1yGn//133kEsvDk=
113 | github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ=
114 | github.com/containerd/containerd v1.4.0/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
115 | github.com/containerd/containerd v1.4.1/go.mod h1:bC6axHOhabU15QhwfG7w5PipXdVtMXFTttgp+kVtyUA=
116 | github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6 h1:NmTXa/uVnDyp0TY5MKi197+3HWcnYWfnHGyaFthlnGw=
117 | github.com/containerd/continuity v0.0.0-20190827140505-75bee3e2ccb6/go.mod h1:GL3xCUCBDV3CZiTSEKksMWbLE66hEyuu9qyDOOqM47Y=
118 | github.com/containerd/continuity v0.2.0 h1:j/9Wnn+hrEWjLvHuIxUU1YI5JjEjVlT2AA68cse9rwY=
119 | github.com/containerd/continuity v0.2.0/go.mod h1:wCYX+dRqZdImhGucXOqTQn05AhX6EUDaGEMUzTFFpLg=
120 | github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
121 | github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
122 | github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
123 | github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
124 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
125 | github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
126 | github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
127 | github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
128 | github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
129 | github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
130 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
131 | github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
132 | github.com/creack/pty v1.1.11 h1:07n33Z8lZxZ2qwegKbObQohDhXDQxiMMz1NOUGYlesw=
133 | github.com/creack/pty v1.1.11/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
134 | github.com/cyphar/filepath-securejoin v0.2.2/go.mod h1:FpkQEhXnPnOthhzymB7CGsFk2G9VLXONKD9G7QGMM+4=
135 | github.com/cznic/mathutil v0.0.0-20180504122225-ca4c9f2c1369/go.mod h1:e6NPNENfs9mPDVNRekM7lKScauxd5kXTr1Mfyig6TDM=
136 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
137 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
138 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
139 | github.com/denisenkom/go-mssqldb v0.0.0-20200620013148-b91950f658ec/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
140 | github.com/denisenkom/go-mssqldb v0.10.0/go.mod h1:xbL0rPBG9cCiLr28tMa8zpbdarY27NDyej4t/EjAShU=
141 | github.com/dgraph-io/badger/v3 v3.2103.1 h1:zaX53IRg7ycxVlkd5pYdCeFp1FynD6qBGQoQql3R3Hk=
142 | github.com/dgraph-io/badger/v3 v3.2103.1/go.mod h1:dULbq6ehJ5K0cGW/1TQ9iSfUk0gbSiToDWmWmTsJ53E=
143 | github.com/dgraph-io/ristretto v0.1.0 h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI=
144 | github.com/dgraph-io/ristretto v0.1.0/go.mod h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug=
145 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
146 | github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
147 | github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
148 | github.com/dhui/dktest v0.3.3/go.mod h1:EML9sP4sqJELHn4jV7B0TY8oF6077nk83/tz7M56jcQ=
149 | github.com/docker/cli v20.10.7+incompatible h1:pv/3NqibQKphWZiAskMzdz8w0PRbtTaEB+f6NwdU7Is=
150 | github.com/docker/cli v20.10.7+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
151 | github.com/docker/cli v20.10.8+incompatible h1:/zO/6y9IOpcehE49yMRTV9ea0nBpb8OeqSskXLNfH1E=
152 | github.com/docker/cli v20.10.8+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8=
153 | github.com/docker/distribution v2.7.1+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
154 | github.com/docker/docker v17.12.0-ce-rc1.0.20200618181300-9dc6525e6118+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
155 | github.com/docker/docker v20.10.7+incompatible h1:Z6O9Nhsjv+ayUEeI1IojKbYcsGdgYSNqxe1s2MYzUhQ=
156 | github.com/docker/docker v20.10.7+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
157 | github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
158 | github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
159 | github.com/docker/go-units v0.4.0 h1:3uh0PgVws3nIA0Q+MwDC8yjEPf9zjRfZZWXZYDct3Tw=
160 | github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
161 | github.com/dustin/go-humanize v1.0.0 h1:VSnTsYCnlFHaM2/igO1h6X3HA71jcobQuxemgkq4zYo=
162 | github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
163 | github.com/edsrzf/mmap-go v0.0.0-20170320065105-0bce6a688712/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
164 | github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M=
165 | github.com/eknkc/amber v0.0.0-20171010120322-cdade1c07385/go.mod h1:0vRUJqYpeSZifjYj7uP3BG/gKcuzL9xWVV/Y+cK33KM=
166 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
167 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
168 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
169 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
170 | github.com/facebookgo/ensure v0.0.0-20160127193407-b4ab57deab51/go.mod h1:Yg+htXGokKKdzcwhuNDwVvN+uBxDGXJ7G/VN1d8fa64=
171 | github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg=
172 | github.com/facebookgo/subset v0.0.0-20150612182917-8dac2c3c4870/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0=
173 | github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k=
174 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
175 | github.com/fsouza/fake-gcs-server v1.17.0/go.mod h1:D1rTE4YCyHFNa99oyJJ5HyclvN/0uQR+pM/VdlL83bw=
176 | github.com/gabriel-vasile/mimetype v1.2.0/go.mod h1:6CDPel/o/3/s4+bp6kIbsWATq8pmgOisOPG40CJa6To=
177 | github.com/gabriel-vasile/mimetype v1.3.1 h1:qevA6c2MtE1RorlScnixeG0VA1H4xrXyhyX3oWBynNQ=
178 | github.com/gabriel-vasile/mimetype v1.3.1/go.mod h1:fA8fi6KUiG7MgQQ+mEWotXoEOvmxRtOJlERCzSmRvr8=
179 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
180 | github.com/go-chi/chi/v5 v5.0.4 h1:5e494iHzsYBiyXQAHHuI4tyJS9M3V84OuX3ufIIGHFo=
181 | github.com/go-chi/chi/v5 v5.0.4/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8=
182 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
183 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
184 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
185 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
186 | github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
187 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
188 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
189 | github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
190 | github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
191 | github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
192 | github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE=
193 | github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
194 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
195 | github.com/go-test/deep v1.0.2/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
196 | github.com/gobuffalo/here v0.6.0/go.mod h1:wAG085dHOYqUpf+Ap+WOdrPTp5IYcDAs/x7PLa8Y5fM=
197 | github.com/gocql/gocql v0.0.0-20190301043612-f6df8288f9b4/go.mod h1:4Fw1eo5iaEhDUs8XyuhSVCVy52Jq3L+/3GJgYkwc+/0=
198 | github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
199 | github.com/gofrs/uuid v4.0.0+incompatible h1:1SD/1F5pU8p29ybwgQSwpQk+mwdRrXCYuPhW6m+TnJw=
200 | github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
201 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
202 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
203 | github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
204 | github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
205 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
206 | github.com/gogs/chardet v0.0.0-20150115103509-2404f7772561/go.mod h1:Pcatq5tYkCW2Q6yrR2VRHlbHpZ/R4/7qyL1TCF7vl14=
207 | github.com/golang-migrate/migrate/v4 v4.14.1 h1:qmRd/rNGjM1r3Ve5gHd5ZplytrD02UcItYNxJ3iUHHE=
208 | github.com/golang-migrate/migrate/v4 v4.14.1/go.mod h1:l7Ks0Au6fYHuUIxUhQ0rcVX1uLlJg54C/VvW7tvxSz0=
209 | github.com/golang-sql/civil v0.0.0-20190719163853-cb61b32ac6fe/go.mod h1:8vg3r2VgvsThLBIFL93Qb5yWzgyZWhEmBwUJWevAkK0=
210 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
211 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
212 | github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
213 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
214 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
215 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=
216 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
217 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
218 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
219 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
220 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
221 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
222 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
223 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
224 | github.com/golang/protobuf v1.0.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
225 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
226 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
227 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
228 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
229 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
230 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
231 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
232 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
233 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
234 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
235 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
236 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
237 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
238 | github.com/golang/protobuf v1.4.3 h1:JjCZWpVbqXDqFVmTfYWEVTMIYrL/NPdPSCHPJ0T/raM=
239 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
240 | github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4=
241 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
242 | github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
243 | github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
244 | github.com/golang/snappy v0.0.2/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
245 | github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
246 | github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
247 | github.com/gomodule/redigo v1.8.0/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0=
248 | github.com/gomodule/redigo v1.8.5 h1:nRAxCa+SVsyjSBrtZmG/cqb6VbTmuRzpg/PoTFlpumc=
249 | github.com/gomodule/redigo v1.8.5/go.mod h1:P9dn9mFrCBvWhGE1wpxx6fgq7BAeLBk+UUUzlpkBYO0=
250 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
251 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
252 | github.com/google/flatbuffers v1.11.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
253 | github.com/google/flatbuffers v1.12.0 h1:/PtAHvnBY4Kqnx/xCQ3OIV9uYcSFGScBsWI3Oogeh6w=
254 | github.com/google/flatbuffers v1.12.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
255 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
256 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
257 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
258 | github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
259 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
260 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
261 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
262 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
263 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
264 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
265 | github.com/google/go-github v17.0.0+incompatible/go.mod h1:zLgOLi98H3fifZn+44m+umXrS52loVEgC2AApnigrVQ=
266 | github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
267 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
268 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
269 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
270 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
271 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
272 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
273 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
274 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
275 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
276 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
277 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
278 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
279 | github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
280 | github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
281 | github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
282 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
283 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
284 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
285 | github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
286 | github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY=
287 | github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
288 | github.com/gorilla/handlers v1.4.2/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ=
289 | github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
290 | github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
291 | github.com/gorilla/mux v1.7.4/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
292 | github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI=
293 | github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
294 | github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
295 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
296 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
297 | github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
298 | github.com/hailocab/go-hostpool v0.0.0-20160125115350-e80d13ce29ed/go.mod h1:tMWxXQ9wFIaZeTI9F+hmhFiGpFmhOHzyShyFUhRm0H4=
299 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
300 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
301 | github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI=
302 | github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA=
303 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
304 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
305 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
306 | github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
307 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
308 | github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
309 | github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
310 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
311 | github.com/ipfs/go-detect-race v0.0.1 h1:qX/xay2W3E4Q1U7d9lNs1sU9nvguX0a7319XbyQ6cOk=
312 | github.com/ipfs/go-detect-race v0.0.1/go.mod h1:8BNT7shDZPo99Q74BpGMK+4D8Mn4j46UU0LZ723meps=
313 | github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=
314 | github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
315 | github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
316 | github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8=
317 | github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
318 | github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA=
319 | github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE=
320 | github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s=
321 | github.com/jackc/pgconn v1.3.2/go.mod h1:LvCquS3HbBKwgl7KbX9KyqEIumJAbm1UMcTvGaIf3bM=
322 | github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o=
323 | github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY=
324 | github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=
325 | github.com/jackc/pgconn v1.10.0 h1:4EYhlDVEMsJ30nNj0mmgwIUXoq7e9sMJrVC2ED6QlCU=
326 | github.com/jackc/pgconn v1.10.0/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI=
327 | github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
328 | github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
329 | github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE=
330 | github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c=
331 | github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc=
332 | github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak=
333 | github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
334 | github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
335 | github.com/jackc/pgproto3 v1.1.0 h1:FYYE4yRw+AgI8wXIinMlNjBbp/UitDJwfj5LqqewP1A=
336 | github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
337 | github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=
338 | github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg=
339 | github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=
340 | github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM=
341 | github.com/jackc/pgproto3/v2 v2.0.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
342 | github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
343 | github.com/jackc/pgproto3/v2 v2.1.1 h1:7PQ/4gLoqnl87ZxL7xjO0DR5gYuviDCZxQJsUlFW1eI=
344 | github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA=
345 | github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg=
346 | github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E=
347 | github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg=
348 | github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc=
349 | github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw=
350 | github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM=
351 | github.com/jackc/pgtype v1.8.1 h1:9k0IXtdJXHJbyAWQgbWr1lU+MEhPXZz6RIXxfR5oxXs=
352 | github.com/jackc/pgtype v1.8.1/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4=
353 | github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y=
354 | github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM=
355 | github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc=
356 | github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs=
357 | github.com/jackc/pgx/v4 v4.13.0 h1:JCjhT5vmhMAf/YwBHLvrBn4OGdIQBiFG6ym8Zmdx570=
358 | github.com/jackc/pgx/v4 v4.13.0/go.mod h1:9P4X524sErlaxj0XSGZk7s+LD0eOyu1ZDUrrpznYDF0=
359 | github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
360 | github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
361 | github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk=
362 | github.com/jaytaylor/html2text v0.0.0-20190408195923-01ec452cbe43/go.mod h1:CVKlgaMiht+LXvHG173ujK6JUhZXKb2u/BQtjPDIvyk=
363 | github.com/jhillyerd/enmime v0.8.0/go.mod h1:MBHs3ugk03NGjMM6PuRynlKf+HA5eSillZ+TRCm73AE=
364 | github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
365 | github.com/jmoiron/sqlx v1.2.0/go.mod h1:1FEQNm3xlJgrMD+FBdI9+xvCksHtbpVBBw5dYhBSsks=
366 | github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
367 | github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
368 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
369 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
370 | github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
371 | github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
372 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
373 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
374 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
375 | github.com/justinas/nosurf v1.1.1 h1:92Aw44hjSK4MxJeMSyDa7jwuI9GR2J/JCQiaKvXXSlk=
376 | github.com/justinas/nosurf v1.1.1/go.mod h1:ALpWdSbuNGy2lZWtyXdjkYv4edL23oSEgfBT1gPJ5BQ=
377 | github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88/go.mod h1:3w7q1U84EfirKl04SVQ/s7nPm1ZPhiXd34z40TNz36k=
378 | github.com/k0kubun/pp v2.3.0+incompatible/go.mod h1:GWse8YhT0p8pT4ir3ZgBbfZild3tgzSScAn6HmfYukg=
379 | github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0/go.mod h1:1NbS8ALrpOvjt0rHPNLyCIeMtbizbir8U//inJ+zuB8=
380 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
381 | github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
382 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
383 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
384 | github.com/klauspost/compress v1.12.3 h1:G5AfA94pHPysR56qqrkO2pxEexdDzrpFJ6yt/VqWxVU=
385 | github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
386 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
387 | github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
388 | github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
389 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
390 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
391 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
392 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
393 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
394 | github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
395 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
396 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
397 | github.com/ktrysmt/go-bitbucket v0.6.4/go.mod h1:9u0v3hsd2rqCHRIpbir1oP7F58uo5dq19sBYvuMoyQ4=
398 | github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
399 | github.com/lib/pq v0.0.0-20180327071824-d34b9ff171c2/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
400 | github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
401 | github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
402 | github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
403 | github.com/lib/pq v1.4.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
404 | github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
405 | github.com/lib/pq v1.10.2 h1:AqzbZs4ZoCBp+GtejcpCpcxM3zlSMx29dXbUSeVtJb8=
406 | github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
407 | github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
408 | github.com/mailgun/mailgun-go/v4 v4.4.1/go.mod h1:FJlF9rI5cQT+mrwujtJjPMbIVy3Ebor9bKTVsJ0QU40=
409 | github.com/mailgun/mailgun-go/v4 v4.5.3 h1:Cc4IRTYZVSdDRD7H/wBJRYAwM9DBuFDsbBtsSwqTjCM=
410 | github.com/mailgun/mailgun-go/v4 v4.5.3/go.mod h1:FJlF9rI5cQT+mrwujtJjPMbIVy3Ebor9bKTVsJ0QU40=
411 | github.com/markbates/pkger v0.15.1/go.mod h1:0JoVlrol20BSywW79rN3kdFFsE5xYM+rSCQDXbLhiuI=
412 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
413 | github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
414 | github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
415 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
416 | github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
417 | github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
418 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
419 | github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
420 | github.com/mattn/go-sqlite3 v1.9.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
421 | github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
422 | github.com/mattn/go-sqlite3 v1.14.7/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
423 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
424 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
425 | github.com/mitchellh/mapstructure v0.0.0-20180220230111-00c29f56e238/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
426 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
427 | github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag=
428 | github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
429 | github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
430 | github.com/moby/term v0.0.0-20201216013528-df9cb8a40635 h1:rzf0wL0CHVc8CEsgyygG0Mn9CNCCPZqOPaz8RiiHYQk=
431 | github.com/moby/term v0.0.0-20201216013528-df9cb8a40635/go.mod h1:FBS0z0QWA44HXygs7VXDUOGoN/1TV3RuWkLO04am3wc=
432 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
433 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=
434 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
435 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
436 | github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
437 | github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
438 | github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc=
439 | github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ=
440 | github.com/mutecomm/go-sqlcipher/v4 v4.4.0/go.mod h1:PyN04SaWalavxRGH9E8ZftG6Ju7rsPrGmQRjrEaVpiY=
441 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
442 | github.com/nakagami/firebirdsql v0.0.0-20190310045651-3c02a58cfed8/go.mod h1:86wM1zFnC6/uDBfZGNwB65O+pR2OFi5q/YQaEUid1qA=
443 | github.com/neo4j/neo4j-go-driver v1.8.1-0.20200803113522-b626aa943eba/go.mod h1:ncO5VaFWh0Nrt+4KT4mOZboaczBZcLuHrG+/sUeP8gI=
444 | github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
445 | github.com/olekukonko/tablewriter v0.0.1/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo=
446 | github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
447 | github.com/onsi/ginkgo v1.12.0/go.mod h1:oUhWkIvk5aDxtKvDDuw8gItl8pKl42LzjC9KZE0HfGg=
448 | github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
449 | github.com/onsi/gomega v1.9.0/go.mod h1:Ho0h+IUsWyvy1OpqCwxlQ/21gkhVunqlU8fDGcoTdcA=
450 | github.com/opencontainers/go-digest v1.0.0-rc1 h1:WzifXhOVOEOuFYOJAW6aQqW0TooG2iki3E3Ii+WN7gQ=
451 | github.com/opencontainers/go-digest v1.0.0-rc1/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
452 | github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
453 | github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
454 | github.com/opencontainers/image-spec v1.0.1 h1:JMemWkRwHx4Zj+fVxWoMCFm/8sYGGrUVojFA6h/TRcI=
455 | github.com/opencontainers/image-spec v1.0.1/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0=
456 | github.com/opencontainers/runc v1.0.0-rc9 h1:/k06BMULKF5hidyoZymkoDCzdJzltZpz/UU4LguQVtc=
457 | github.com/opencontainers/runc v1.0.0-rc9/go.mod h1:qT5XzbpPznkRYVz/mWwUaVBUv2rmF59PVA73FjuZG0U=
458 | github.com/opencontainers/runc v1.0.2 h1:opHZMaswlyxz1OuGpBE53Dwe4/xF7EZTY0A2L/FpCOg=
459 | github.com/opencontainers/runc v1.0.2/go.mod h1:aTaHFFwQXuA71CiyxOdFFIorAoemI04suvGRQFzWTD0=
460 | github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0=
461 | github.com/opencontainers/selinux v1.8.2/go.mod h1:MUIHuUEvKB1wtJjQdOyYRgOnLD2xAPP8dBsCoU0KuF8=
462 | github.com/ory/dockertest/v3 v3.7.0 h1:Bijzonc69Ont3OU0a3TWKJ1Rzlh3TsDXP1JrTAkSmsM=
463 | github.com/ory/dockertest/v3 v3.7.0/go.mod h1:PvCCgnP7AfBZeVrzwiUTjZx/IUXlGLC1zQlUQrLIlUE=
464 | github.com/ory/dockertest/v3 v3.8.0 h1:i5b0cJCd801qw0cVQUOH6dSpI9fT3j5tdWu0jKu90ks=
465 | github.com/ory/dockertest/v3 v3.8.0/go.mod h1:9zPATATlWQru+ynXP+DytBQrsXV7Tmlx7K86H6fQaDo=
466 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
467 | github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY=
468 | github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA=
469 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
470 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
471 | github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
472 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
473 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
474 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
475 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
476 | github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
477 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
478 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
479 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
480 | github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
481 | github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
482 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
483 | github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
484 | github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
485 | github.com/remyoudompheng/bigfft v0.0.0-20190728182440-6a916e37a237/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
486 | github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
487 | github.com/robfig/cron/v3 v3.0.1 h1:WdRxkvbJztn8LMz/QEvLN5sBU+xKpSqwwUO1Pjr4qDs=
488 | github.com/robfig/cron/v3 v3.0.1/go.mod h1:eQICP3HwyT7UooqI/z+Ov+PtYAWygg1TEWWzGIFLtro=
489 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
490 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
491 | github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
492 | github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
493 | github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
494 | github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
495 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
496 | github.com/saintfish/chardet v0.0.0-20120816061221-3af4cd4741ca/go.mod h1:uugorj2VCxiV1x+LzaIdVa9b4S4qGAcH6cbhh4qVxOU=
497 | github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
498 | github.com/seccomp/libseccomp-golang v0.9.1/go.mod h1:GbW5+tmTXfcxTToHLXlScSlAvWlF4P2Ca7zGrPiEpWo=
499 | github.com/sendgrid/rest v2.6.3+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE=
500 | github.com/sendgrid/rest v2.6.5+incompatible h1:MZsDqRdwKTHXNABhVgiZFLgVDN698H4QtFrTX3WlrN0=
501 | github.com/sendgrid/rest v2.6.5+incompatible/go.mod h1:kXX7q3jZtJXK5c5qK83bSGMdV6tsOE70KbHoqJls4lE=
502 | github.com/sendgrid/sendgrid-go v3.8.0+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8=
503 | github.com/sendgrid/sendgrid-go v3.10.1+incompatible h1:CCWVIXyUJ3JDOp6RU23JfnUCetKxxeplAPaMrgreilY=
504 | github.com/sendgrid/sendgrid-go v3.10.1+incompatible/go.mod h1:QRQt+LX/NmgVEvmdRw0VT/QgUn499+iza2FnDca9fg8=
505 | github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4=
506 | github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
507 | github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
508 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
509 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
510 | github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
511 | github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
512 | github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
513 | github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=
514 | github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
515 | github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
516 | github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
517 | github.com/snowflakedb/glog v0.0.0-20180824191149-f5055e6f21ce/go.mod h1:EB/w24pR5VKI60ecFnKqXzxX3dOorz1rnVicQTQrGM0=
518 | github.com/snowflakedb/gosnowflake v1.3.5/go.mod h1:13Ky+lxzIm3VqNDZJdyvu9MCGy+WgRdYFdXp96UcLZU=
519 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
520 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
521 | github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
522 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
523 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
524 | github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
525 | github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
526 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
527 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
528 | github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
529 | github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
530 | github.com/ssor/bom v0.0.0-20170718123548-6386211fdfcf/go.mod h1:RJID2RhlZKId02nZ62WenDCkgHFerpIOmW0iT7GKmXM=
531 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
532 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
533 | github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
534 | github.com/stretchr/testify v1.2.0/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
535 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
536 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
537 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
538 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
539 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
540 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
541 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
542 | github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww=
543 | github.com/tidwall/pretty v0.0.0-20180105212114-65a9db5fad51/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
544 | github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
545 | github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM=
546 | github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
547 | github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
548 | github.com/unrolled/render v1.0.3/go.mod h1:gN9T0NhL4Bfbwu8ann7Ry/TGHYfosul+J0obPf6NBdM=
549 | github.com/upper/db/v4 v4.2.1 h1:X4LnT/MYQgnIO8NMgg8JyVMOi2b0rKgSA3BEArz7zvQ=
550 | github.com/upper/db/v4 v4.2.1/go.mod h1:AmwWJd8OvFxmNv+DmEVENuK3881fSY5dIsZBC5fBNg8=
551 | github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
552 | github.com/vanng822/css v1.0.1 h1:10yiXc4e8NI8ldU6mSrWmSWMuyWgPr9DZ63RSlsgDw8=
553 | github.com/vanng822/css v1.0.1/go.mod h1:tcnB1voG49QhCrwq1W0w5hhGasvOg+VQp9i9H1rCM1w=
554 | github.com/vanng822/go-premailer v1.20.1 h1:2LTSIULXxNV5IOB5BSD3dlfOG95cq8qqExtRZMImTGA=
555 | github.com/vanng822/go-premailer v1.20.1/go.mod h1:RAxbRFp6M/B171gsKu8dsyq+Y5NGsUUvYfg+WQWusbE=
556 | github.com/vanng822/r2router v0.0.0-20150523112421-1023140a4f30/go.mod h1:1BVq8p2jVr55Ost2PkZWDrG86PiJ/0lxqcXoAcGxvWU=
557 | github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE=
558 | github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU=
559 | github.com/xanzy/go-gitlab v0.15.0/go.mod h1:8zdQa/ri1dfn8eS3Ir1SyfvOKlw7WBJ8DVThkpGiXrs=
560 | github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I=
561 | github.com/xdg/stringprep v1.0.0/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y=
562 | github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f h1:J9EGpcZtP0E/raorCMxlFGSTBrsSlaDGf3jU/qvAE2c=
563 | github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
564 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0=
565 | github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ=
566 | github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=
567 | github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
568 | github.com/xhit/go-simple-mail/v2 v2.10.0 h1:nib6RaJ4qVh5HD9UE9QJqnUZyWp3upv+Z6CFxaMj0V8=
569 | github.com/xhit/go-simple-mail/v2 v2.10.0/go.mod h1:kA1XbQfCI4JxQ9ccSN6VFyIEkkugOm7YiPkA5hKiQn4=
570 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
571 | github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
572 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
573 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
574 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
575 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
576 | github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
577 | gitlab.com/nyarla/go-crypt v0.0.0-20160106005555-d9a5dc2b789b/go.mod h1:T3BPAOm2cqquPa0MKWeNkmOM5RQsRhkrwMWonFMN7fE=
578 | go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
579 | go.mongodb.org/mongo-driver v1.1.0/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM=
580 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
581 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
582 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
583 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
584 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
585 | go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0=
586 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
587 | go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
588 | go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
589 | go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
590 | go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
591 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
592 | go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
593 | go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
594 | go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
595 | go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
596 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
597 | go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
598 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
599 | golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
600 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
601 | golang.org/x/crypto v0.0.0-20190325154230-a5d413f7728c/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
602 | golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
603 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
604 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
605 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
606 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
607 | golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
608 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
609 | golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
610 | golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
611 | golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
612 | golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 h1:/UOmuWzQfxxo9UtlXMwuQU8CMgg1eZXqTRwkSQJWKOI=
613 | golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
614 | golang.org/x/exp v0.0.0-20181106170214-d68db9428509/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
615 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
616 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
617 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
618 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
619 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
620 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
621 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
622 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
623 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
624 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
625 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
626 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
627 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
628 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
629 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
630 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
631 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
632 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
633 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
634 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
635 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
636 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
637 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
638 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
639 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
640 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
641 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
642 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
643 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
644 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
645 | golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
646 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
647 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
648 | golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
649 | golang.org/x/net v0.0.0-20181108082009-03003ca0c849/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
650 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
651 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
652 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
653 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
654 | golang.org/x/net v0.0.0-20190225153610-fe579d43d832/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
655 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
656 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
657 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
658 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
659 | golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
660 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
661 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
662 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
663 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
664 | golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
665 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
666 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
667 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
668 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
669 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
670 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
671 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
672 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
673 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
674 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
675 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
676 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
677 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
678 | golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
679 | golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
680 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
681 | golang.org/x/net v0.0.0-20201029221708-28c70e62bb1d/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
682 | golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
683 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110 h1:qWPm9rbaAMKs8Bq/9LRpbMqxWRVUAQwMI9fVrssnTfw=
684 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
685 | golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
686 | golang.org/x/net v0.0.0-20210928044308-7d9f5e0b762b h1:eB48h3HiRycXNy8E0Gf5e0hv7YT6Kt14L/D73G1fuwo=
687 | golang.org/x/net v0.0.0-20210928044308-7d9f5e0b762b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
688 | golang.org/x/oauth2 v0.0.0-20180227000427-d7d64896b5ff/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
689 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
690 | golang.org/x/oauth2 v0.0.0-20181106182150-f42d05182288/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
691 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
692 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
693 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
694 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
695 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
696 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
697 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
698 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
699 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
700 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
701 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
702 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
703 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
704 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
705 | golang.org/x/sys v0.0.0-20180224232135-f6cff0780e54/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
706 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
707 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
708 | golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
709 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
710 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
711 | golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
712 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
713 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
714 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
715 | golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
716 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
717 | golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
718 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
719 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
720 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
721 | golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
722 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
723 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
724 | golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
725 | golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
726 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
727 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
728 | golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
729 | golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
730 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
731 | golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
732 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
733 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
734 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
735 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
736 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
737 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
738 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
739 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
740 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
741 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
742 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
743 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
744 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
745 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
746 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
747 | golang.org/x/sys v0.0.0-20200826173525-f9321e4c35a6/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
748 | golang.org/x/sys v0.0.0-20200831180312-196b9ba8737a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
749 | golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
750 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
751 | golang.org/x/sys v0.0.0-20201029080932-201ba4db2418/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
752 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
753 | golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
754 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
755 | golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
756 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
757 | golang.org/x/sys v0.0.0-20210616094352-59db8d763f22 h1:RqytpXGR1iVNX7psjB3ff8y7sNFinVFvkx1c8SjBkio=
758 | golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
759 | golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
760 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
761 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
762 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
763 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
764 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
765 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
766 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
767 | golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
768 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
769 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
770 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
771 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
772 | golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
773 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
774 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
775 | golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
776 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
777 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
778 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
779 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
780 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
781 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
782 | golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
783 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
784 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
785 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
786 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
787 | golang.org/x/tools v0.0.0-20190624222133-a101b041ded4/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
788 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
789 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
790 | golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
791 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
792 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
793 | golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
794 | golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
795 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
796 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
797 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
798 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
799 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
800 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
801 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
802 | golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
803 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
804 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
805 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
806 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
807 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
808 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
809 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
810 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
811 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
812 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
813 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
814 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
815 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
816 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
817 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
818 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
819 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
820 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
821 | golang.org/x/tools v0.0.0-20200806022845-90696ccdc692/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
822 | golang.org/x/tools v0.0.0-20200814230902-9882f1d1823d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
823 | golang.org/x/tools v0.0.0-20200817023811-d00afeaade8f/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
824 | golang.org/x/tools v0.0.0-20200818005847-188abfa75333/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
825 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
826 | golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
827 | golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
828 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
829 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
830 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
831 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
832 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
833 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
834 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
835 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
836 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
837 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
838 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
839 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
840 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
841 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
842 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
843 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
844 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
845 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
846 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
847 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
848 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
849 | google.golang.org/appengine v1.0.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
850 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
851 | google.golang.org/appengine v1.3.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
852 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
853 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
854 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
855 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
856 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
857 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
858 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
859 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
860 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
861 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
862 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
863 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
864 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
865 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
866 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
867 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
868 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
869 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
870 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
871 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
872 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
873 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
874 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
875 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
876 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
877 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
878 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
879 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
880 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
881 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
882 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
883 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
884 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
885 | google.golang.org/genproto v0.0.0-20200806141610-86f49bd18e98/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
886 | google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
887 | google.golang.org/genproto v0.0.0-20200911024640-645f7a48b24f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
888 | google.golang.org/genproto v0.0.0-20201030142918-24207fddd1c3/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
889 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
890 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
891 | google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
892 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
893 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
894 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
895 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
896 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
897 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
898 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
899 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
900 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
901 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
902 | google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
903 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0=
904 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
905 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
906 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
907 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
908 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
909 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
910 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
911 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
912 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
913 | google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c=
914 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
915 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
916 | google.golang.org/protobuf v1.26.0 h1:bxAC2xTBsZGibn2RTntX0oH50xLsqy1OxA9tTL3p/lk=
917 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
918 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
919 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
920 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
921 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
922 | gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
923 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
924 | gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
925 | gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s=
926 | gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
927 | gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22 h1:VpOs+IwYnYBaFnrNAeB8UUWtL3vEUnzSCL1nVjPhqrw=
928 | gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22/go.mod h1:yeKp02qBN3iKW1OzL3MGk2IdtZzaj7SFntXj72NppTA=
929 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
930 | gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
931 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
932 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
933 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
934 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
935 | gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
936 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
937 | gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
938 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
939 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
940 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
941 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ=
942 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
943 | gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
944 | gotest.tools/v3 v3.0.2 h1:kG1BFyqVHuQoVQiR1bWGnfz/fmHvvuiSPIV7rvl360E=
945 | gotest.tools/v3 v3.0.2/go.mod h1:3SzNCllyD9/Y+b5r9JIKQ474KzkZyqLqEfYqMsX94Bk=
946 | gotest.tools/v3 v3.0.3/go.mod h1:Z7Lb0S5l+klDB31fvDQX8ss/FlKDxtlFlw3Oa8Ymbl8=
947 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
948 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
949 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
950 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
951 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
952 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
953 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
954 | modernc.org/b v1.0.0/go.mod h1:uZWcZfRj1BpYzfN9JTerzlNUnnPsV9O2ZA8JsRcubNg=
955 | modernc.org/b v1.0.1/go.mod h1:tDOyuvEozkYjX/zTreV7vX4YzdBVDkTS8JBA2W4y1r8=
956 | modernc.org/db v1.0.0/go.mod h1:kYD/cO29L/29RM0hXYl4i3+Q5VojL31kTUVpVJDw0s8=
957 | modernc.org/db v1.0.1/go.mod h1:47Lw6e5W/cp7LsOTOFWsxeBY3UU9SpksM+mzvFC6D2Y=
958 | modernc.org/file v1.0.0/go.mod h1:uqEokAEn1u6e+J45e54dsEA/pw4o7zLrA2GwyntZzjw=
959 | modernc.org/file v1.0.1/go.mod h1:J8VpOGC1yz67lZWlr+JttVsXK5OWQCHLTwdrkejbneE=
960 | modernc.org/file v1.0.2/go.mod h1:J8VpOGC1yz67lZWlr+JttVsXK5OWQCHLTwdrkejbneE=
961 | modernc.org/fileutil v1.0.0/go.mod h1:JHsWpkrk/CnVV1H/eGlFf85BEpfkrp56ro8nojIq9Q8=
962 | modernc.org/golex v1.0.0/go.mod h1:b/QX9oBD/LhixY6NDh+IdGv17hgB+51fET1i2kPSmvk=
963 | modernc.org/golex v1.0.1/go.mod h1:QCA53QtsT1NdGkaZZkF5ezFwk4IXh4BGNafAARTC254=
964 | modernc.org/internal v1.0.0/go.mod h1:VUD/+JAkhCpvkUitlEOnhpVxCgsBI90oTzSCRcqQVSM=
965 | modernc.org/lex v1.0.0/go.mod h1:G6rxMTy3cH2iA0iXL/HRRv4Znu8MK4higxph/lE7ypk=
966 | modernc.org/lexer v1.0.0/go.mod h1:F/Dld0YKYdZCLQ7bD0USbWL4YKCyTDRDHiDTOs0q0vk=
967 | modernc.org/lldb v1.0.0/go.mod h1:jcRvJGWfCGodDZz8BPwiKMJxGJngQ/5DrRapkQnLob8=
968 | modernc.org/lldb v1.0.1/go.mod h1:+PHMSs/M3AmQyfhU3ArzoiHfJ2pSgH4TCibGbk7Rhpc=
969 | modernc.org/mathutil v1.0.0/go.mod h1:wU0vUrJsVWBZ4P6e7xtFJEhFSNsfRLJ8H458uRjg03k=
970 | modernc.org/mathutil v1.1.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
971 | modernc.org/mathutil v1.2.2/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
972 | modernc.org/mathutil v1.4.1/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E=
973 | modernc.org/ql v1.0.0/go.mod h1:xGVyrLIatPcO2C1JvI/Co8c0sr6y91HKFNy4pt9JXEY=
974 | modernc.org/ql v1.3.1/go.mod h1:0su3LZVtXgxr5HnJc3DWIj4tb8Zx08BjZAzs//CUT6o=
975 | modernc.org/sortutil v1.1.0/go.mod h1:ZyL98OQHJgH9IEfN71VsamvJgrtRX9Dj2gX+vH86L1k=
976 | modernc.org/strutil v1.0.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
977 | modernc.org/strutil v1.1.0/go.mod h1:lstksw84oURvj9y3tn8lGvRxyRC1S2+g5uuIzNfIOBs=
978 | modernc.org/strutil v1.1.1/go.mod h1:DE+MQQ/hjKBZS2zNInV5hhcipt5rLPWkmpbGeW5mmdw=
979 | modernc.org/zappy v1.0.0/go.mod h1:hHe+oGahLVII/aTTyWK/b53VDHMAGCBYYeZ9sn83HC4=
980 | modernc.org/zappy v1.0.1/go.mod h1:O0z5BRBwgfXAYDDhMqz9xVj0omSIEpspvGcwsyBe3FM=
981 | modernc.org/zappy v1.0.3/go.mod h1:w/Akq8ipfols/xZJdR5IYiQNOqC80qz2mVvsEwEbkiI=
982 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
983 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
984 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
985 |
--------------------------------------------------------------------------------
/myapp/handlers/auth-handlers.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "crypto/sha256"
5 | "encoding/base64"
6 | "fmt"
7 | "myapp/data"
8 | "net/http"
9 | "time"
10 |
11 | "github.com/CloudyKit/jet/v6"
12 | "github.com/tsawler/celeritas/mailer"
13 | "github.com/tsawler/celeritas/urlsigner"
14 | )
15 |
16 | // UserLogin displays the login page
17 | func (h *Handlers) UserLogin(w http.ResponseWriter, r *http.Request) {
18 | err := h.App.Render.Page(w, r, "login", nil, nil)
19 | if err != nil {
20 | h.App.ErrorLog.Println(err)
21 | }
22 | }
23 |
24 | // PostUserLogin attempts to log a user in
25 | func (h *Handlers) PostUserLogin(w http.ResponseWriter, r *http.Request) {
26 | err := r.ParseForm()
27 | if err != nil {
28 | w.Write([]byte(err.Error()))
29 | return
30 | }
31 |
32 | email := r.Form.Get("email")
33 | password := r.Form.Get("password")
34 |
35 | user, err := h.Models.Users.GetByEmail(email)
36 | if err != nil {
37 | w.Write([]byte(err.Error()))
38 | return
39 | }
40 |
41 | matches, err := user.PasswordMatches(password)
42 | if err != nil {
43 | w.Write([]byte("Error validating password"))
44 | return
45 | }
46 |
47 | if !matches {
48 | w.Write([]byte("Invalid password!"))
49 | return
50 | }
51 |
52 | // did the user check remember me?
53 | if r.Form.Get("remember") == "remember" {
54 | randomString := h.randomString(12)
55 | hasher := sha256.New()
56 | _, err := hasher.Write([]byte(randomString))
57 | if err != nil {
58 | h.App.ErrorStatus(w, http.StatusBadRequest)
59 | return
60 | }
61 |
62 | sha := base64.URLEncoding.EncodeToString(hasher.Sum(nil))
63 | rm := data.RememberToken{}
64 | err = rm.InsertToken(user.ID, sha)
65 | if err != nil {
66 | h.App.ErrorStatus(w, http.StatusBadRequest)
67 | return
68 | }
69 |
70 | // set a cookie
71 | expire := time.Now().Add(365 * 24 * 60 * 60 * time.Second)
72 | cookie := http.Cookie{
73 | Name: fmt.Sprintf("_%s_remember", h.App.AppName),
74 | Value: fmt.Sprintf("%d|%s", user.ID, sha),
75 | Path: "/",
76 | Expires: expire,
77 | HttpOnly: true,
78 | Domain: h.App.Session.Cookie.Domain,
79 | MaxAge: 315350000,
80 | Secure: h.App.Session.Cookie.Secure,
81 | SameSite: http.SameSiteStrictMode,
82 | }
83 | http.SetCookie(w, &cookie)
84 | // save hash in session
85 | h.App.Session.Put(r.Context(), "remember_token", sha)
86 | }
87 |
88 | h.App.Session.Put(r.Context(), "userID", user.ID)
89 |
90 | http.Redirect(w, r, "/", http.StatusSeeOther)
91 |
92 | }
93 |
94 | // Logout logs the user out, removes any remember me cookie, and deletes
95 | // remember token from the database, if it exists
96 | func (h *Handlers) Logout(w http.ResponseWriter, r *http.Request) {
97 | // delete the remember token if it exists
98 | if h.App.Session.Exists(r.Context(), "remember_token") {
99 | rt := data.RememberToken{}
100 | _ = rt.Delete(h.App.Session.GetString(r.Context(), "remember_token"))
101 | }
102 |
103 | // delete cookie
104 | newCookie := http.Cookie{
105 | Name: fmt.Sprintf("_%s_remember", h.App.AppName),
106 | Value: "",
107 | Path: "/",
108 | Expires: time.Now().Add(-100 * time.Hour),
109 | HttpOnly: true,
110 | Domain: h.App.Session.Cookie.Domain,
111 | MaxAge: -1,
112 | Secure: h.App.Session.Cookie.Secure,
113 | SameSite: http.SameSiteStrictMode,
114 | }
115 | http.SetCookie(w, &newCookie)
116 |
117 | h.App.Session.RenewToken(r.Context())
118 | h.App.Session.Remove(r.Context(), "userID")
119 | h.App.Session.Remove(r.Context(), "remember_token")
120 | h.App.Session.Destroy(r.Context())
121 | h.App.Session.RenewToken(r.Context())
122 |
123 | http.Redirect(w, r, "/users/login", http.StatusSeeOther)
124 | }
125 |
126 | func (h *Handlers) Forgot(w http.ResponseWriter, r *http.Request) {
127 | err := h.render(w, r, "forgot", nil, nil)
128 | if err != nil {
129 | h.App.ErrorLog.Println("Error rendering: ", err)
130 | h.App.Error500(w, r)
131 | }
132 | }
133 |
134 | // PostForgot looks up a user by email, and if the user is found, generates
135 | // an email with a singed link to the reset password form
136 | func (h *Handlers) PostForgot(w http.ResponseWriter, r *http.Request) {
137 | // parse form
138 | err := r.ParseForm()
139 | if err != nil {
140 | h.App.ErrorStatus(w, http.StatusBadRequest)
141 | return
142 | }
143 |
144 | // verify that supplied email exists
145 | var u *data.User
146 | email := r.Form.Get("email")
147 | u, err = u.GetByEmail(email)
148 | if err != nil {
149 | h.App.ErrorStatus(w, http.StatusBadRequest)
150 | return
151 | }
152 |
153 | // create a link to password reset form
154 | link := fmt.Sprintf("%s/users/reset-password?email=%s", h.App.Server.URL, email)
155 |
156 | // sign the link
157 | sign := urlsigner.Signer{
158 | Secret: []byte(h.App.EncryptionKey),
159 | }
160 |
161 | signedLink := sign.GenerateTokenFromString(link)
162 | h.App.InfoLog.Println("Signed link is", signedLink)
163 |
164 | // email the message
165 | var data struct {
166 | Link string
167 | }
168 | data.Link = signedLink
169 |
170 | msg := mailer.Message{
171 | To: u.Email,
172 | Subject: "Password reset",
173 | Template: "password-reset",
174 | Data: data,
175 | From: "admin@example.com",
176 | }
177 |
178 | h.App.Mail.Jobs <- msg
179 | res := <-h.App.Mail.Results
180 | if res.Error != nil {
181 | h.App.ErrorStatus(w, http.StatusBadRequest)
182 | return
183 | }
184 |
185 | // redirect the user
186 | http.Redirect(w, r, "/users/login", http.StatusSeeOther)
187 | }
188 |
189 | // ResetPasswordForm validates a signed url, and displays the password reset form, if appropriate
190 | func (h *Handlers) ResetPasswordForm(w http.ResponseWriter, r *http.Request) {
191 | // get form values
192 | email := r.URL.Query().Get("email")
193 | theURL := r.RequestURI
194 | testURL := fmt.Sprintf("%s%s", h.App.Server.URL, theURL)
195 |
196 | // validate the url
197 | signer := urlsigner.Signer{
198 | Secret: []byte(h.App.EncryptionKey),
199 | }
200 |
201 | valid := signer.VerifyToken(testURL)
202 | if !valid {
203 | h.App.ErrorLog.Print("Invalid url")
204 | h.App.ErrorUnauthorized(w, r)
205 | return
206 | }
207 |
208 | /// make sure it's not expired
209 | expired := signer.Expired(testURL, 60)
210 | if expired {
211 | h.App.ErrorLog.Print("Link expired")
212 | h.App.ErrorUnauthorized(w, r)
213 | return
214 | }
215 |
216 | // display form
217 | encryptedEmail, _ := h.encrypt(email)
218 |
219 | vars := make(jet.VarMap)
220 | vars.Set("email", encryptedEmail)
221 |
222 | err := h.render(w, r, "reset-password", vars, nil)
223 | if err != nil {
224 | return
225 | }
226 | }
227 |
228 | func (h *Handlers) PostResetPassword(w http.ResponseWriter, r *http.Request) {
229 | // parse the form
230 | err := r.ParseForm()
231 | if err != nil {
232 | h.App.Error500(w, r)
233 | return
234 | }
235 |
236 | // get and decrypt the email
237 | email, err := h.decrypt(r.Form.Get("email"))
238 | if err != nil {
239 | h.App.Error500(w, r)
240 | return
241 | }
242 |
243 | // get the user
244 | var u data.User
245 | user, err := u.GetByEmail(email)
246 | if err != nil {
247 | h.App.Error500(w, r)
248 | return
249 | }
250 |
251 | // reset the password
252 | err = user.ResetPassword(user.ID, r.Form.Get("password"))
253 | if err != nil {
254 | h.App.Error500(w, r)
255 | return
256 | }
257 |
258 | // redirect
259 | h.App.Session.Put(r.Context(), "flash", "Password reset. You can now log in.")
260 | http.Redirect(w, r, "/users/login", http.StatusSeeOther)
261 | }
--------------------------------------------------------------------------------
/myapp/handlers/cache-handlers.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "net/http"
5 |
6 | "github.com/justinas/nosurf"
7 | )
8 |
9 | func (h *Handlers) ShowCachePage(w http.ResponseWriter, r *http.Request) {
10 | err := h.render(w, r, "cache", nil, nil)
11 | if err != nil {
12 | h.App.ErrorLog.Println("error rendering:", err)
13 | }
14 | }
15 |
16 | func (h *Handlers) SaveInCache(w http.ResponseWriter, r *http.Request) {
17 | var userInput struct {
18 | Name string `json:"name"`
19 | Value string `json:"value"`
20 | CSRF string `json:"csrf_token"`
21 | }
22 |
23 | err := h.App.ReadJSON(w, r, &userInput)
24 | if err != nil {
25 | h.App.Error500(w, r)
26 | return
27 | }
28 |
29 | if !nosurf.VerifyToken(nosurf.Token(r), userInput.CSRF) {
30 | h.App.Error500(w, r)
31 | return
32 | }
33 |
34 | err = h.App.Cache.Set(userInput.Name, userInput.Value)
35 | if err != nil {
36 | h.App.Error500(w, r)
37 | return
38 | }
39 |
40 | var resp struct {
41 | Error bool `json:"error"`
42 | Message string `json:"message"`
43 | }
44 |
45 | resp.Error = false
46 | resp.Message = "Saved in cache"
47 |
48 | _ = h.App.WriteJSON(w, http.StatusCreated, resp)
49 | }
50 |
51 | func (h *Handlers) GetFromCache(w http.ResponseWriter, r *http.Request) {
52 | var msg string
53 | var inCache = true
54 |
55 | var userInput struct {
56 | Name string `json:"name"`
57 | CSRF string `json:"csrf_token"`
58 | }
59 |
60 | err := h.App.ReadJSON(w, r, &userInput)
61 | if err != nil {
62 | h.App.Error500(w, r)
63 | return
64 | }
65 |
66 | if !nosurf.VerifyToken(nosurf.Token(r), userInput.CSRF) {
67 | h.App.Error500(w, r)
68 | return
69 | }
70 |
71 | fromCache, err := h.App.Cache.Get(userInput.Name)
72 | if err != nil {
73 | msg = "Not found in cache!"
74 | inCache = false
75 | }
76 |
77 | var resp struct {
78 | Error bool `json:"error"`
79 | Message string `json:"message"`
80 | Value string `json:"value"`
81 | }
82 |
83 | if inCache {
84 | resp.Error = false
85 | resp.Message = "Success"
86 | resp.Value = fromCache.(string)
87 | } else {
88 | resp.Error = true
89 | resp.Message = msg
90 | }
91 | _ = h.App.WriteJSON(w, http.StatusCreated, resp)
92 | }
93 |
94 | func (h *Handlers) DeleteFromCache(w http.ResponseWriter, r *http.Request) {
95 | var userInput struct {
96 | Name string `json:"name"`
97 | CSRF string `json:"csrf_token"`
98 | }
99 |
100 | err := h.App.ReadJSON(w, r, &userInput)
101 | if err != nil {
102 | h.App.Error500(w, r)
103 | return
104 | }
105 |
106 | if !nosurf.VerifyToken(nosurf.Token(r), userInput.CSRF) {
107 | h.App.Error500(w, r)
108 | return
109 | }
110 |
111 | err = h.App.Cache.Forget(userInput.Name)
112 | if err != nil {
113 | h.App.Error500(w, r)
114 | return
115 | }
116 |
117 | var resp struct {
118 | Error bool `json:"error"`
119 | Message string `json:"message"`
120 | }
121 | resp.Error = false
122 | resp.Message = "Deleted from cache (if it existed)"
123 |
124 | _ = h.App.WriteJSON(w, http.StatusCreated, resp)
125 | }
126 |
127 | func (h *Handlers) EmptyCache(w http.ResponseWriter, r *http.Request) {
128 | var userInput struct {
129 | CSRF string `json:"csrf_token"`
130 | }
131 |
132 | err := h.App.ReadJSON(w, r, &userInput)
133 | if err != nil {
134 | h.App.Error500(w, r)
135 | return
136 | }
137 |
138 | if !nosurf.VerifyToken(nosurf.Token(r), userInput.CSRF) {
139 | h.App.Error500(w, r)
140 | return
141 | }
142 |
143 | err = h.App.Cache.Empty()
144 | if err != nil {
145 | h.App.Error500(w, r)
146 | return
147 | }
148 |
149 | var resp struct {
150 | Error bool `json:"error"`
151 | Message string `json:"message"`
152 | }
153 | resp.Error = false
154 | resp.Message = "Emptied cache!"
155 |
156 | _ = h.App.WriteJSON(w, http.StatusCreated, resp)
157 |
158 | }
159 |
--------------------------------------------------------------------------------
/myapp/handlers/convenience.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "context"
5 | "net/http"
6 |
7 | "github.com/tsawler/celeritas"
8 | )
9 |
10 | func (h *Handlers) render(w http.ResponseWriter, r *http.Request, tmpl string, variables, data interface{}) error {
11 | return h.App.Render.Page(w, r, tmpl, variables, data)
12 | }
13 |
14 | func (h *Handlers) sessionPut(ctx context.Context, key string, val interface{}) {
15 | h.App.Session.Put(ctx, key, val)
16 | }
17 |
18 | func (h *Handlers) sessionHas(ctx context.Context, key string) bool {
19 | return h.App.Session.Exists(ctx, key)
20 | }
21 |
22 | func (h *Handlers) sessionGet(ctx context.Context, key string) interface{} {
23 | return h.App.Session.Get(ctx, key)
24 | }
25 |
26 | func (h *Handlers) sessionRemove(ctx context.Context, key string) {
27 | h.App.Session.Remove(ctx, key)
28 | }
29 |
30 | func (h *Handlers) sessionRenew(ctx context.Context) error {
31 | return h.App.Session.RenewToken(ctx)
32 | }
33 |
34 | func (h *Handlers) sessionDestroy(ctx context.Context) error {
35 | return h.App.Session.Destroy(ctx)
36 | }
37 |
38 | func (h *Handlers) randomString(n int) string {
39 | return h.App.RandomString(n)
40 | }
41 |
42 | func (h *Handlers) encrypt(text string) (string, error) {
43 | enc := celeritas.Encryption{Key: []byte(h.App.EncryptionKey)}
44 |
45 | encrypted, err := enc.Encrypt(text)
46 | if err != nil {
47 | return "", err
48 | }
49 | return encrypted, nil
50 | }
51 |
52 | func (h *Handlers) decrypt(crypto string) (string, error) {
53 | enc := celeritas.Encryption{Key: []byte(h.App.EncryptionKey)}
54 |
55 | decrypted, err := enc.Decrypt(crypto)
56 | if err != nil {
57 | return "", err
58 | }
59 | return decrypted, nil
60 | }
--------------------------------------------------------------------------------
/myapp/handlers/form-val-handlers.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "fmt"
5 | "myapp/data"
6 | "net/http"
7 |
8 | "github.com/CloudyKit/jet/v6"
9 | )
10 |
11 | func (h *Handlers) Form(w http.ResponseWriter, r *http.Request) {
12 | vars := make(jet.VarMap)
13 | validator := h.App.Validator(nil)
14 | vars.Set("validator", validator)
15 | vars.Set("user", data.User{})
16 |
17 | err := h.App.Render.Page(w, r, "form", vars, nil)
18 | if err != nil {
19 | h.App.ErrorLog.Println(err)
20 | }
21 | }
22 |
23 | func (h *Handlers) PostForm(w http.ResponseWriter, r *http.Request) {
24 | err := r.ParseForm()
25 | if err != nil {
26 | h.App.ErrorLog.Println(err)
27 | return
28 | }
29 |
30 | validator := h.App.Validator(nil)
31 |
32 | validator.Required(r, "first_name", "last_name", "email")
33 | validator.IsEmail("email", r.Form.Get("email"))
34 |
35 | validator.Check(len(r.Form.Get("first_name")) > 1, "first_name", "Must be at least two characters")
36 | validator.Check(len(r.Form.Get("last_name")) > 1, "last_name", "Must be at least two characters")
37 |
38 | if (!validator.Valid()) {
39 | vars := make(jet.VarMap)
40 | vars.Set("validator", validator)
41 | var user data.User
42 | user.FirstName = r.Form.Get("first_name")
43 | user.LastName = r.Form.Get("last_name")
44 | user.Email = r.Form.Get("email")
45 | vars.Set("user", user)
46 |
47 | if err := h.App.Render.Page(w, r, "form", vars, nil); err != nil {
48 | h.App.ErrorLog.Println(err)
49 | return
50 | }
51 | return
52 | }
53 |
54 | fmt.Fprint(w, "valid data")
55 | }
--------------------------------------------------------------------------------
/myapp/handlers/handlers.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "fmt"
5 | "myapp/data"
6 | "net/http"
7 |
8 | "github.com/CloudyKit/jet/v6"
9 | "github.com/tsawler/celeritas"
10 | )
11 |
12 | // Handlers is the type for handlers, and gives access to Celeritas and models
13 | type Handlers struct {
14 | App *celeritas.Celeritas
15 | Models data.Models
16 | }
17 |
18 | // Home is the handler to render the home page
19 | func (h *Handlers) Home(w http.ResponseWriter, r *http.Request) {
20 | // defer h.App.LoadTime(time.Now())
21 | err := h.render(w, r, "home", nil, nil)
22 | if err != nil {
23 | h.App.ErrorLog.Println("error rendering:", err)
24 | }
25 | }
26 |
27 | // GoPage is the handler to demonstrate rendering a Go template
28 | func (h *Handlers) GoPage(w http.ResponseWriter, r *http.Request) {
29 | err := h.App.Render.GoPage(w, r, "home", nil)
30 | if err != nil {
31 | h.App.ErrorLog.Println("error rendering:", err)
32 | }
33 | }
34 |
35 | // JetPage is the handler to demonstrate rendering a jet page
36 | func (h *Handlers) JetPage(w http.ResponseWriter, r *http.Request) {
37 | err := h.App.Render.JetPage(w, r, "jet-template", nil, nil)
38 | if err != nil {
39 | h.App.ErrorLog.Println("error rendering:", err)
40 | }
41 | }
42 |
43 | // SessionTest is the handler to demonstrate session functionality
44 | func (h *Handlers) SessionTest(w http.ResponseWriter, r *http.Request) {
45 | myData := "bar"
46 |
47 | h.App.Session.Put(r.Context(), "foo", myData)
48 |
49 | myValue := h.App.Session.GetString(r.Context(), "foo")
50 |
51 | vars := make(jet.VarMap)
52 | vars.Set("foo", myValue)
53 |
54 | err := h.App.Render.JetPage(w, r, "sessions", vars, nil)
55 | if err != nil {
56 | h.App.ErrorLog.Println("error rendering:", err)
57 | }
58 | }
59 |
60 | // JSON is the handler to demonstrate json responses
61 | func (h *Handlers) JSON(w http.ResponseWriter, r *http.Request) {
62 | var payload struct {
63 | ID int64 `json:"id"`
64 | Name string `json:"name"`
65 | Hobbies []string `json:"hobbies"`
66 | }
67 |
68 | payload.ID = 10
69 | payload.Name = "Jack Jones"
70 | payload.Hobbies = []string{"karate", "tennis", "programming"}
71 |
72 | err := h.App.WriteJSON(w, http.StatusOK, payload)
73 | if err != nil {
74 | h.App.ErrorLog.Println(err)
75 | }
76 | }
77 |
78 | // XML is the handler to demonstrate XML responses
79 | func (h *Handlers) XML(w http.ResponseWriter, r *http.Request) {
80 | type Payload struct {
81 | ID int64 `xml:"id"`
82 | Name string `xml:"name"`
83 | Hobbies []string `xml:"hobbies>hobby"`
84 | }
85 |
86 | var payload Payload
87 | payload.ID = 10
88 | payload.Name = "John Smith"
89 | payload.Hobbies = []string{"karate", "tennis", "programming"}
90 |
91 | err := h.App.WriteXML(w, http.StatusOK, payload)
92 | if err != nil {
93 | h.App.ErrorLog.Println(err)
94 | }
95 | }
96 |
97 | // DownloadFile is the handler to demonstrate file download reponses
98 | func (h *Handlers) DownloadFile(w http.ResponseWriter, r *http.Request) {
99 | h.App.DownloadFile(w, r, "./public/images", "celeritas.jpg")
100 | }
101 |
102 | func (h *Handlers) TestCrypto(w http.ResponseWriter, r *http.Request) {
103 | plainText := "Hello, world"
104 | fmt.Fprint(w, "Unencrypted: "+plainText+"\n")
105 | encrypted, err := h.encrypt(plainText)
106 | if err != nil {
107 | h.App.ErrorLog.Println(err)
108 | h.App.Error500(w, r)
109 | return
110 | }
111 |
112 | fmt.Fprint(w, "Encrypted: "+encrypted+"\n")
113 |
114 | decrypted, err := h.decrypt(encrypted)
115 | if err != nil {
116 | h.App.ErrorLog.Println(err)
117 | h.App.Error500(w, r)
118 | return
119 | }
120 |
121 | fmt.Fprint(w, "Decrypted: "+decrypted+"\n")
122 | }
123 |
--------------------------------------------------------------------------------
/myapp/handlers/testhandler.go:
--------------------------------------------------------------------------------
1 | package handlers
2 |
3 | import (
4 | "net/http"
5 | )
6 |
7 | // TestHandler comment goes here
8 | func (h *Handlers) TestHandler(w http.ResponseWriter, r *http.Request) {
9 |
10 | }
11 |
--------------------------------------------------------------------------------
/myapp/init-celeritas.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "log"
5 | "myapp/data"
6 | "myapp/handlers"
7 | "myapp/middleware"
8 | "os"
9 |
10 | "github.com/tsawler/celeritas"
11 | )
12 |
13 | func initApplication() *application {
14 | path, err := os.Getwd()
15 | if err != nil {
16 | log.Fatal(err)
17 | }
18 |
19 | // init celeritas
20 | cel := &celeritas.Celeritas{}
21 | err = cel.New(path)
22 | if err != nil {
23 | log.Fatal(err)
24 | }
25 |
26 | cel.AppName = "myapp"
27 |
28 | myMiddleware := &middleware.Middleware{
29 | App: cel,
30 | }
31 |
32 | myHandlers := &handlers.Handlers{
33 | App: cel,
34 | }
35 |
36 | app := &application{
37 | App: cel,
38 | Handlers: myHandlers,
39 | Middleware: myMiddleware,
40 | }
41 |
42 | app.App.Routes = app.routes()
43 |
44 | app.Models = data.New(app.App.DB.Pool)
45 | myHandlers.Models = app.Models
46 | app.Middleware.Models = app.Models
47 |
48 | return app
49 | }
50 |
--------------------------------------------------------------------------------
/myapp/mail/password-reset.html.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Hello:
12 | You recently requested a link to reset your password.
13 | Visit the link below to get started. Note that the link expires in 60 minutes.
14 | Click here to reset your password
15 |
16 |
17 |
18 | {{end}}
--------------------------------------------------------------------------------
/myapp/mail/password-reset.plain.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 | Hello:
3 |
4 | You recently requested a link to reset your password.
5 |
6 | Visit the link below to get started. Note that the link expires in 60 minutes.
7 |
8 | {{.Link}}
9 |
10 | {{end}}
--------------------------------------------------------------------------------
/myapp/mail/test.html.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Enter your message content here...
12 |
13 |
14 |
15 | {{end}}
--------------------------------------------------------------------------------
/myapp/mail/test.plain.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 | Enter your message content here...
3 | {{end}}
--------------------------------------------------------------------------------
/myapp/mail/yellow.html.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | Enter your message content here...
12 |
13 |
14 |
15 | {{end}}
--------------------------------------------------------------------------------
/myapp/mail/yellow.plain.tmpl:
--------------------------------------------------------------------------------
1 | {{define "body"}}
2 | Enter your message content here...
3 | {{end}}
--------------------------------------------------------------------------------
/myapp/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "myapp/data"
5 | "myapp/handlers"
6 | "myapp/middleware"
7 |
8 | "github.com/tsawler/celeritas"
9 | )
10 |
11 | type application struct {
12 | App *celeritas.Celeritas
13 | Handlers *handlers.Handlers
14 | Models data.Models
15 | Middleware *middleware.Middleware
16 | }
17 |
18 | func main() {
19 | c := initApplication()
20 | c.App.ListenAndServe()
21 | }
22 |
--------------------------------------------------------------------------------
/myapp/middleware/auth-token.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import "net/http"
4 |
5 | func (m *Middleware) AuthToken(next http.Handler) http.Handler {
6 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request){
7 | _, err := m.Models.Tokens.AuthenticateToken(r)
8 | if err != nil {
9 | var payload struct {
10 | Error bool `json:"error"`
11 | Message string `json:"message"`
12 | }
13 |
14 | payload.Error = true
15 | payload.Message = "invalid authentication credentials"
16 |
17 | _ = m.App.WriteJSON(w, http.StatusUnauthorized, payload)
18 | }
19 | })
20 | }
--------------------------------------------------------------------------------
/myapp/middleware/auth.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import "net/http"
4 |
5 | func (m *Middleware) Auth(next http.Handler) http.Handler {
6 | return http.HandlerFunc(func (w http.ResponseWriter, r *http.Request){
7 | if !m.App.Session.Exists(r.Context(), "userID") {
8 | http.Error(w, http.StatusText(http.StatusUnauthorized), http.StatusUnauthorized)
9 | }
10 | })
11 | }
--------------------------------------------------------------------------------
/myapp/middleware/middleware.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import (
4 | "myapp/data"
5 |
6 | "github.com/tsawler/celeritas"
7 | )
8 |
9 | type Middleware struct {
10 | App *celeritas.Celeritas
11 | Models data.Models
12 | }
--------------------------------------------------------------------------------
/myapp/middleware/remember.go:
--------------------------------------------------------------------------------
1 | package middleware
2 |
3 | import (
4 | "fmt"
5 | "myapp/data"
6 | "net/http"
7 | "strconv"
8 | "strings"
9 | "time"
10 | )
11 |
12 | func (m *Middleware) CheckRemember(next http.Handler) http.Handler {
13 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
14 | if !m.App.Session.Exists(r.Context(), "userID") {
15 | // user is not logged in
16 | cookie, err := r.Cookie(fmt.Sprintf("_%s_remember", m.App.AppName))
17 | if err != nil {
18 | // no cookie, so on to the next middleware
19 | next.ServeHTTP(w, r)
20 | } else {
21 | // we found a cookie, so check it
22 | key := cookie.Value
23 | var u data.User
24 | if len(key) > 0 {
25 | // cookie has some data, so validate it
26 | split := strings.Split(key, "|")
27 | uid, hash := split[0], split[1]
28 | id, _ := strconv.Atoi(uid)
29 | validHash := u.CheckForRememberToken(id, hash)
30 | if !validHash {
31 | m.deleteRememberCookie(w, r)
32 | m.App.Session.Put(r.Context(), "error", "You've been logged out from another device")
33 | next.ServeHTTP(w, r)
34 | } else {
35 | // valid hash, so log the user in
36 | user, _ := u.Get(id)
37 | m.App.Session.Put(r.Context(), "userID", user.ID)
38 | m.App.Session.Put(r.Context(), "remember_token", hash)
39 | next.ServeHTTP(w, r)
40 | }
41 | } else {
42 | // key length is zero, so it's probably a leftover cookie (user has not closed browser)
43 | m.deleteRememberCookie(w, r)
44 | next.ServeHTTP(w, r)
45 | }
46 | }
47 | } else {
48 | // user is logged in
49 | next.ServeHTTP(w, r)
50 | }
51 | })
52 | }
53 |
54 | func (m *Middleware) deleteRememberCookie(w http.ResponseWriter, r *http.Request) {
55 | _ = m.App.Session.RenewToken(r.Context())
56 | // delete the cookie
57 | newCookie := http.Cookie{
58 | Name: fmt.Sprintf("_%s_remember", m.App.AppName),
59 | Value: "",
60 | Path: "/",
61 | Expires: time.Now().Add(-100 * time.Hour),
62 | HttpOnly: true,
63 | Domain: m.App.Session.Cookie.Domain,
64 | MaxAge: -1,
65 | Secure: m.App.Session.Cookie.Secure,
66 | SameSite: http.SameSiteStrictMode,
67 | }
68 | http.SetCookie(w, &newCookie)
69 |
70 | // log the user out
71 | m.App.Session.Remove(r.Context(), "userID")
72 | m.App.Session.Destroy(r.Context())
73 | _ = m.App.Session.RenewToken(r.Context())
74 | }
--------------------------------------------------------------------------------
/myapp/migrations/1631888445899233_create_auth_tables.down.sql:
--------------------------------------------------------------------------------
1 | drop table if exists users cascade; drop table if exists tokens cascade; drop table if exists remember_tokens;
--------------------------------------------------------------------------------
/myapp/migrations/1631888445899233_create_auth_tables.up.sql:
--------------------------------------------------------------------------------
1 | CREATE OR REPLACE FUNCTION trigger_set_timestamp()
2 | RETURNS TRIGGER AS $$
3 | BEGIN
4 | NEW.updated_at = NOW();
5 | RETURN NEW;
6 | END;
7 | $$ LANGUAGE plpgsql;
8 |
9 | drop table if exists users cascade;
10 |
11 | CREATE TABLE users (
12 | id SERIAL PRIMARY KEY,
13 | first_name character varying(255) NOT NULL,
14 | last_name character varying(255) NOT NULL,
15 | user_active integer NOT NULL DEFAULT 0,
16 | email character varying(255) NOT NULL UNIQUE,
17 | password character varying(60) NOT NULL,
18 | created_at timestamp without time zone NOT NULL DEFAULT now(),
19 | updated_at timestamp without time zone NOT NULL DEFAULT now()
20 | );
21 |
22 | CREATE TRIGGER set_timestamp
23 | BEFORE UPDATE ON users
24 | FOR EACH ROW
25 | EXECUTE PROCEDURE trigger_set_timestamp();
26 |
27 | drop table if exists remember_tokens;
28 |
29 | CREATE TABLE remember_tokens (
30 | id SERIAL PRIMARY KEY,
31 | user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,
32 | remember_token character varying(100) NOT NULL,
33 | created_at timestamp without time zone NOT NULL DEFAULT now(),
34 | updated_at timestamp without time zone NOT NULL DEFAULT now()
35 | );
36 |
37 | CREATE TRIGGER set_timestamp
38 | BEFORE UPDATE ON remember_tokens
39 | FOR EACH ROW
40 | EXECUTE PROCEDURE trigger_set_timestamp();
41 |
42 | drop table if exists tokens;
43 |
44 | CREATE TABLE tokens (
45 | id SERIAL PRIMARY KEY,
46 | user_id integer NOT NULL REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE,
47 | first_name character varying(255) NOT NULL,
48 | email character varying(255) NOT NULL,
49 | token character varying(255) NOT NULL,
50 | token_hash bytea NOT NULL,
51 | created_at timestamp without time zone NOT NULL DEFAULT now(),
52 | updated_at timestamp without time zone NOT NULL DEFAULT now(),
53 | expiry timestamp without time zone NOT NULL
54 | );
55 |
56 | CREATE TRIGGER set_timestamp
57 | BEFORE UPDATE ON tokens
58 | FOR EACH ROW
59 | EXECUTE PROCEDURE trigger_set_timestamp();
--------------------------------------------------------------------------------
/myapp/migrations/1631901936536722_create_sessions_table.postgres.down.sql:
--------------------------------------------------------------------------------
1 | drop table sessions
--------------------------------------------------------------------------------
/myapp/migrations/1631901936536722_create_sessions_table.postgres.up.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE sessions (
2 | token TEXT PRIMARY KEY,
3 | data BYTEA NOT NULL,
4 | expiry TIMESTAMPTZ NOT NULL
5 | );
6 |
7 | CREATE INDEX sessions_expiry_idx ON sessions (expiry);
--------------------------------------------------------------------------------
/myapp/public/ico/android-chrome-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/android-chrome-192x192.png
--------------------------------------------------------------------------------
/myapp/public/ico/android-chrome-512x512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/android-chrome-512x512.png
--------------------------------------------------------------------------------
/myapp/public/ico/apple-touch-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/apple-touch-icon.png
--------------------------------------------------------------------------------
/myapp/public/ico/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/favicon-16x16.png
--------------------------------------------------------------------------------
/myapp/public/ico/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/favicon-32x32.png
--------------------------------------------------------------------------------
/myapp/public/ico/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/ico/favicon.ico
--------------------------------------------------------------------------------
/myapp/public/ico/site.webmanifest:
--------------------------------------------------------------------------------
1 | {"name":"","short_name":"","icons":[{"src":"/public/ico/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/public/ico/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
--------------------------------------------------------------------------------
/myapp/public/images/celeritas.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/public/images/celeritas.jpg
--------------------------------------------------------------------------------
/myapp/routes.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "fmt"
5 | "myapp/data"
6 | "net/http"
7 | "strconv"
8 |
9 | "github.com/go-chi/chi/v5"
10 | "github.com/tsawler/celeritas/mailer"
11 | )
12 |
13 | func (a *application) routes() *chi.Mux {
14 | // middleware must come before any routes
15 | a.use(a.Middleware.CheckRemember)
16 |
17 | // add routes here
18 | a.get("/", a.Handlers.Home)
19 | a.App.Routes.Get("/go-page", a.Handlers.GoPage)
20 | a.App.Routes.Get("/jet-page", a.Handlers.JetPage)
21 | a.App.Routes.Get("/sessions", a.Handlers.SessionTest)
22 |
23 | a.App.Routes.Get("/users/login", a.Handlers.UserLogin)
24 | a.post("/users/login", a.Handlers.PostUserLogin)
25 | a.App.Routes.Get("/users/logout", a.Handlers.Logout)
26 | a.get("/users/forgot-password", a.Handlers.Forgot)
27 | a.post("/users/forgot-password", a.Handlers.PostForgot)
28 | a.get("/users/reset-password", a.Handlers.ResetPasswordForm)
29 | a.post("/users/reset-password", a.Handlers.PostResetPassword)
30 |
31 | a.App.Routes.Get("/form", a.Handlers.Form)
32 | a.App.Routes.Post("/form", a.Handlers.PostForm)
33 |
34 | a.get("/json", a.Handlers.JSON)
35 | a.get("/xml", a.Handlers.XML)
36 | a.get("/download-file", a.Handlers.DownloadFile)
37 |
38 | a.get("/crypto", a.Handlers.TestCrypto)
39 |
40 | a.get("/cache-test", a.Handlers.ShowCachePage)
41 | a.post("/api/save-in-cache", a.Handlers.SaveInCache)
42 | a.post("/api/get-from-cache", a.Handlers.GetFromCache)
43 | a.post("/api/delete-from-cache", a.Handlers.DeleteFromCache)
44 | a.post("/api/empty-cache", a.Handlers.EmptyCache)
45 |
46 | a.get("/test-mail", func(w http.ResponseWriter, r *http.Request) {
47 | msg := mailer.Message{
48 | From: "info@verilion.com",
49 | To: "trevor.sawler@gmail.com",
50 | Subject: "Test Subject - sent using an API",
51 | Template: "test",
52 | Attachments: nil,
53 | Data: nil,
54 | }
55 |
56 | a.App.Mail.Jobs <- msg
57 | res := <-a.App.Mail.Results
58 | if res.Error != nil {
59 | a.App.ErrorLog.Println(res.Error)
60 | }
61 | // err := a.App.Mail.SendSMTPMessage(msg)
62 | // if err != nil {
63 | // a.App.ErrorLog.Println(err)
64 | // return
65 | // }
66 |
67 | fmt.Fprint(w, "Send mail!")
68 | })
69 |
70 | a.App.Routes.Get("/create-user", func(w http.ResponseWriter, r *http.Request) {
71 | u := data.User{
72 | FirstName: "Trevor",
73 | LastName: "Sawler",
74 | Email: "me@here.com",
75 | Active: 1,
76 | Password: "password",
77 | }
78 |
79 | id, err := a.Models.Users.Insert(u)
80 | if err != nil {
81 | a.App.ErrorLog.Println(err)
82 | return
83 | }
84 |
85 | fmt.Fprintf(w, "%d: %s", id, u.FirstName)
86 | })
87 |
88 | a.App.Routes.Get("/get-all-users", func(w http.ResponseWriter, r *http.Request) {
89 | users, err := a.Models.Users.GetAll()
90 | if err != nil {
91 | a.App.ErrorLog.Println(err)
92 | return
93 | }
94 | for _, x := range users {
95 | fmt.Fprint(w, x.LastName)
96 | }
97 | })
98 |
99 | a.App.Routes.Get("/get-user/{id}", func(w http.ResponseWriter, r *http.Request) {
100 | id, _ := strconv.Atoi(chi.URLParam(r, "id"))
101 |
102 | u, err := a.Models.Users.Get(id)
103 | if err != nil {
104 | a.App.ErrorLog.Println(err)
105 | return
106 | }
107 |
108 | fmt.Fprintf(w, "%s %s %s", u.FirstName, u.LastName, u.Email)
109 | })
110 |
111 | a.App.Routes.Get("/update-user/{id}", func(w http.ResponseWriter, r *http.Request) {
112 | id, _ := strconv.Atoi(chi.URLParam(r, "id"))
113 | u, err := a.Models.Users.Get(id)
114 | if err != nil {
115 | a.App.ErrorLog.Println(err)
116 | return
117 | }
118 |
119 | u.LastName = a.App.RandomString(10)
120 |
121 | validator := a.App.Validator(nil)
122 | u.LastName = ""
123 |
124 | u.Validate(validator)
125 |
126 | if !validator.Valid() {
127 | fmt.Fprint(w, "failed validation")
128 | return
129 | }
130 | err = u.Update(*u)
131 | if err != nil {
132 | a.App.ErrorLog.Println(err)
133 | return
134 | }
135 |
136 | fmt.Fprintf(w, "updated last name to %s", u.LastName)
137 |
138 | })
139 |
140 | // static routes
141 | fileServer := http.FileServer(http.Dir("./public"))
142 | a.App.Routes.Handle("/public/*", http.StripPrefix("/public", fileServer))
143 |
144 | return a.App.Routes
145 | }
146 |
--------------------------------------------------------------------------------
/myapp/tmp/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/tmp/.DS_Store
--------------------------------------------------------------------------------
/myapp/views/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/AustinIOI/Golaris_Laravel/ac67a1db8c12edda0b43c7084ce7447dbe5bf952/myapp/views/.DS_Store
--------------------------------------------------------------------------------
/myapp/views/cache.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}} Cache {{end}}
4 | {{block css()}} {{end}}
5 |
6 | {{block pageContent()}}
7 | Cache Content
8 |
9 |
10 |
11 |
25 |
26 |
27 |
28 |
37 |
38 |
39 |
40 |
49 |
50 |
51 |
52 |
57 |
58 |
59 |
60 |
63 |
64 |
65 | {{end}}
66 |
67 | {{ block js()}}
68 |
203 | {{end}}
204 |
--------------------------------------------------------------------------------
/myapp/views/forgot.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}
4 | Forgot Password
5 | {{end}}
6 |
7 | {{block css()}} {{end}}
8 |
9 | {{block pageContent()}}
10 | Forgot Password
11 |
12 |
13 |
14 | {{if .Error != ""}}
15 |
16 | {{.Error}}
17 |
18 | {{end}}
19 |
20 | {{if .Flash != ""}}
21 |
22 | {{.Flash}}
23 |
24 | {{end}}
25 |
26 |
27 |
28 | Enter your email address in the form below, and we'll
29 | email you a link to reset your password.
30 |
31 |
32 |
52 |
53 |
56 |
57 |
58 |
59 | {{end}}
60 |
61 | {{ block js()}}
62 |
75 | {{end}}
76 |
--------------------------------------------------------------------------------
/myapp/views/form.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}
4 | Form
5 | {{end}}
6 |
7 | {{block css()}} {{end}}
8 |
9 | {{block pageContent()}}
10 | Form Validation
11 |
12 |
13 |
14 |
58 |
59 |
62 |
63 |
64 |
65 | {{end}}
66 |
67 | {{ block js()}}
68 |
71 | {{end}}
72 |
--------------------------------------------------------------------------------
/myapp/views/home.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}Welcome{{end}}
4 |
5 | {{block css()}}
6 |
7 | {{end}}
8 |
9 | {{block pageContent()}}
10 |
11 |
12 |
13 |
14 |

15 |
Celeritas
16 |
17 |
Go build something awesome
18 | {{ if .IsAuthenticated}}
19 |
Authenticated! Logout.
20 | {{end}}
21 |
22 |
23 |
24 |
25 |
26 |
Things to try:
27 |
28 |
39 |
40 |
41 | {{end}}
42 |
43 |
44 | {{block js()}}
45 |
46 | {{end}}
--------------------------------------------------------------------------------
/myapp/views/home.page.tmpl:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 | Celeritas
9 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |

21 |
Celeritas (Go Templates)
22 |
23 |
Go build something awesome
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/myapp/views/jet-template.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}Jet Template{{end}}
4 |
5 | {{block css()}}
6 |
7 | {{end}}
8 |
9 | {{block pageContent()}}
10 |
11 |
12 |
13 |
14 |

15 |
Celeritas
16 |
17 |
This page is rendered using the Jet Template engine
18 |
19 |
20 |
21 |
22 |
23 | {{end}}
24 |
25 |
26 | {{block js()}}
27 |
28 | {{end}}
--------------------------------------------------------------------------------
/myapp/views/layouts/base.jet:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
7 |
8 | Celeritas: {{yield browserTitle()}}
9 |
10 |
11 |
12 |
13 |
14 |
15 |
17 |
18 |
19 | {{yield css()}}
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 | {{yield pageContent()}}
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 | {{yield js()}}
36 |
37 |
38 |
--------------------------------------------------------------------------------
/myapp/views/login.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}
4 | Login
5 | {{end}}
6 |
7 | {{block css()}} {{end}}
8 |
9 | {{block pageContent()}}
10 | Login
11 |
12 |
13 |
14 |
15 | {{if .Flash != ""}}
16 |
17 | {{.Flash}}
18 |
19 | {{end}}
20 |
21 |
53 |
54 |
57 |
58 |
59 |
60 | {{end}}
61 |
62 | {{block js()}}
63 |
77 | {{end}}
--------------------------------------------------------------------------------
/myapp/views/reset-password.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}
4 | Form
5 | {{end}}
6 |
7 | {{block css()}} {{end}}
8 |
9 | {{block pageContent()}}
10 | Reset Password
11 |
12 | {{if .Error != ""}}
13 |
14 | {{.Error}}
15 |
16 | {{end}}
17 |
18 | {{if .Flash != ""}}
19 |
20 | {{.Flash}}
21 |
22 | {{end}}
23 |
24 |
52 |
53 |
54 |
55 |
56 |
57 |
60 |
61 |
62 |
63 | {{end}}
64 |
65 | {{ block js()}}
66 |
84 | {{end}}
85 |
--------------------------------------------------------------------------------
/myapp/views/sessions.jet:
--------------------------------------------------------------------------------
1 | {{extends "./layouts/base.jet"}}
2 |
3 | {{block browserTitle()}}Sessions{{end}}
4 |
5 | {{block css()}}
6 |
7 | {{end}}
8 |
9 | {{block pageContent()}}
10 |
11 |
12 |
13 |
14 |

15 |
Celeritas
16 |
17 |
This value came from the session: {{foo}}
18 |
19 |
20 |
21 |
22 |
23 | {{end}}
24 |
25 |
26 | {{block js()}}
27 |
28 | {{end}}
--------------------------------------------------------------------------------