Compare commits
51 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 52677224c1 | |||
| 0a31eab9f2 | |||
| 011063597d | |||
| 71c182692a | |||
| e15af5a544 | |||
| ba7228ad44 | |||
| 650c9e7183 | |||
| 471737f421 | |||
| d2b9618da0 | |||
| f0f0ff7904 | |||
| 639da11ab3 | |||
| fc084d7190 | |||
| e2111017eb | |||
| ef70e5825a | |||
| 15b29b32ce | |||
| 975e120530 | |||
| 5b8883d31a | |||
| ce43f5765c | |||
| feffa67677 | |||
| a14e58297a | |||
| 2b309fbda7 | |||
| 70db402cdf | |||
| a82d5e6b26 | |||
| 28570b0b96 | |||
| 9bf84fa140 | |||
| eb34221620 | |||
| cc3ba4d9f0 | |||
| f79d17afed | |||
| d7c2282335 | |||
| 43002a9fde | |||
| bc33d26cfd | |||
| 38d9e6238f | |||
| a653ef8ca4 | |||
| cc336366c9 | |||
| 8f105183eb | |||
| b45faa2e73 | |||
| 7e5d17100d | |||
| a817e5fa21 | |||
| 3d185033f3 | |||
| 924957d00d | |||
| d674078071 | |||
| 5992d19906 | |||
| 8cac46e9f2 | |||
| db5f6816c5 | |||
| 3a4bdbde94 | |||
| 0363bc65f4 | |||
| a47898e099 | |||
| 1487b18a3a | |||
| 04ef53720f | |||
| bc82aacd57 | |||
| 6dcc1afd6b |
6
.gitignore
vendored
@@ -1,4 +1,8 @@
|
|||||||
testdata/
|
testdata/
|
||||||
liblcl*
|
liblcl-*.zip
|
||||||
|
liblcl.so
|
||||||
|
liblcl.dll
|
||||||
yvbolt
|
yvbolt
|
||||||
yvbolt.exe
|
yvbolt.exe
|
||||||
|
yvbolt.linux64.tar.xz
|
||||||
|
yvbolt.win64.zip
|
||||||
44
Makefile
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
SHELL:=/bin/bash
|
||||||
|
|
||||||
|
SOURCES=$(find . -name '*.go' -type f)
|
||||||
|
|
||||||
|
liblcl-2.2.3.zip:
|
||||||
|
wget 'https://github.com/ying32/govcl/releases/download/v2.2.3/liblcl-2.2.3.zip'
|
||||||
|
|
||||||
|
liblcl.so: liblcl-2.2.3.zip
|
||||||
|
echo "154b4e4a1d5137a2ffe51cb4d0bf152dd997c12616ae30862775c0e4f0928e88 liblcl-2.2.3.zip" | sha256sum -c
|
||||||
|
unzip -j liblcl-2.2.3.zip linux64-gtk2/liblcl.so -d .
|
||||||
|
touch liblcl.so
|
||||||
|
|
||||||
|
liblcl.dll: liblcl-2.2.3.zip
|
||||||
|
echo "154b4e4a1d5137a2ffe51cb4d0bf152dd997c12616ae30862775c0e4f0928e88 liblcl-2.2.3.zip" | sha256sum -c
|
||||||
|
unzip -j liblcl-2.2.3.zip win64/liblcl.dll -d .
|
||||||
|
touch liblcl.dll
|
||||||
|
|
||||||
|
yvbolt: $(SOURCES)
|
||||||
|
GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build -trimpath -ldflags '-s -w'
|
||||||
|
chmod 755 yvbolt
|
||||||
|
upx --best yvbolt
|
||||||
|
|
||||||
|
yvbolt.exe: $(SOURCES)
|
||||||
|
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc-win32 go build -trimpath -ldflags '-s -w'
|
||||||
|
upx --best yvbolt.exe
|
||||||
|
|
||||||
|
yvbolt.linux64.tar.xz: yvbolt liblcl.so
|
||||||
|
rm -f yvbolt.linux64.tar.xz
|
||||||
|
XZ_OPT='--best' tar caf yvbolt.linux64.tar.xz --owner=0 --group=0 yvbolt liblcl.so
|
||||||
|
|
||||||
|
yvbolt.win64.zip: yvbolt.exe liblcl.dll
|
||||||
|
rm -f yvbolt.win64.zip
|
||||||
|
zip -9 yvbolt.win64.zip yvbolt.exe liblcl.dll
|
||||||
|
|
||||||
|
.PHONY: dist
|
||||||
|
dist: yvbolt.linux64.tar.xz yvbolt.win64.zip
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -f yvbolt.exe yvbolt yvbolt.linux64.tar.xz yvbolt.win64.zip
|
||||||
|
|
||||||
|
.PHONY: clean-all
|
||||||
|
clean-all: clean
|
||||||
|
rm -f liblcl-2.2.3.zip liblcl.so liblcl.dll
|
||||||
59
README.md
@@ -9,15 +9,19 @@ This is an experimental application and you should generally prefer to use [qbol
|
|||||||
- Native desktop application, running on Linux, Windows, and macOS
|
- Native desktop application, running on Linux, Windows, and macOS
|
||||||
- Connect to multiple databases
|
- Connect to multiple databases
|
||||||
- Browse table/bucket content
|
- Browse table/bucket content
|
||||||
|
- Use context menu to perform special table/bucket actions
|
||||||
- Run custom SQL queries
|
- Run custom SQL queries
|
||||||
|
- Select text to run partial query
|
||||||
- Safe handling for non-UTF8 key and data fields
|
- Safe handling for non-UTF8 key and data fields
|
||||||
- Supported databases:
|
- Supported databases:
|
||||||
- Bolt
|
|
||||||
- Full compatibility via the upstream [etcd-io/bbolt](https://github.com/etcd-io/bbolt) library
|
|
||||||
- Recursive bucket support
|
|
||||||
- SQLite
|
|
||||||
- Uses CGo if available or modernc.org if not
|
|
||||||
- Badger v4
|
- Badger v4
|
||||||
|
- Bolt
|
||||||
|
- Recursive bucket support
|
||||||
|
- Option to open as readonly
|
||||||
|
- Pebble
|
||||||
|
- Redis
|
||||||
|
- SQLite
|
||||||
|
- Drivers: mattn (CGo), modernc.org (no cgo), experimental command-line driver
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
@@ -25,6 +29,8 @@ The code in this project is licensed under the ISC license (see `LICENSE` file f
|
|||||||
|
|
||||||
This project redistributes images from the famfamfam/silk icon set under the [CC-BY 2.5 license](http://creativecommons.org/licenses/by/2.5/).
|
This project redistributes images from the famfamfam/silk icon set under the [CC-BY 2.5 license](http://creativecommons.org/licenses/by/2.5/).
|
||||||
|
|
||||||
|
This project includes trademarked logo images for each supported database type.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
1. `CGO_ENABLED=1 go build`
|
1. `CGO_ENABLED=1 go build`
|
||||||
@@ -34,20 +40,45 @@ This project redistributes images from the famfamfam/silk icon set under the [CC
|
|||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
2024-06-29 v0.5.0
|
||||||
|
|
||||||
|
- Pebble: Add as supported database
|
||||||
|
- Bolt: Support opening as readonly
|
||||||
|
- Bolt: Support creating new databases
|
||||||
|
- Bolt: Support adding/removing recursive child buckets
|
||||||
|
- SQLite: Support custom CLI driver that parses `/usr/bin/sqlite3 -json` output (experimental)
|
||||||
|
- Redis: Improve query parser to support quoted strings
|
||||||
|
- App: Support refreshing elements in nav tree
|
||||||
|
- App: Help menu option to show driver versions
|
||||||
|
- App: Add image icons for refresh and close context menu actions
|
||||||
|
- Build: Add makefile for cross-compiling release binaries
|
||||||
|
|
||||||
|
2024-06-23 v0.4.0
|
||||||
|
|
||||||
|
- Redis: Add as supported database
|
||||||
|
- Badger: Allow creating in-memory databases
|
||||||
|
- App: Allow selecting partial query text to execute
|
||||||
|
- App: Allow closing database connections from context menu
|
||||||
|
- App: Allow scrolling large content on Properties pane
|
||||||
|
- App: Preload recursive navigation
|
||||||
|
- App: Automatically switch to selected database when new connection is created
|
||||||
|
- App: Add help website link
|
||||||
|
- App: Add database logo images
|
||||||
|
|
||||||
2024-06-25 v0.3.0
|
2024-06-25 v0.3.0
|
||||||
|
|
||||||
- Add support for running custom queries
|
- Badger: Add BadgerDB v4 as supported database
|
||||||
- Add BadgerDB v4 as supported database
|
- SQLite: Add support for CGo-free SQLite driver under cross-compilation
|
||||||
- Add support for CGo-free SQLite driver under cross-compilation
|
- Bolt: Update Bolt to v1.4.0-alpha.1
|
||||||
- Add status bar showing currently selected DB
|
- App: Add support for running custom queries
|
||||||
- Update Bolt to v1.4.0-alpha.1
|
- App: Add status bar showing currently selected DB
|
||||||
- Fix missing icons in nav when selecting items
|
- App: Fix missing icons in nav when selecting items
|
||||||
- Fix extra quotemarks when browsing string content of database
|
- App: Fix extra quotemarks when browsing string content of database
|
||||||
|
|
||||||
2024-06-08 v0.2.0
|
2024-06-08 v0.2.0
|
||||||
|
|
||||||
- Add SQLite support (now requires CGo)
|
- SQLite: Add SQLite support (now requires CGo)
|
||||||
- Add images for menu and navigation items
|
- App: Add images for menu and navigation items
|
||||||
|
|
||||||
2024-06-03 v0.1.0
|
2024-06-03 v0.1.0
|
||||||
|
|
||||||
|
|||||||
33
TODO
@@ -3,21 +3,32 @@
|
|||||||
- Delete row(s)
|
- Delete row(s)
|
||||||
- Binary data viewer
|
- Binary data viewer
|
||||||
- Detect jpg/png and show as image
|
- Detect jpg/png and show as image
|
||||||
- Warning if data table is filtered to 1000 rows, or add pagination
|
|
||||||
- More DB types
|
- More DB types
|
||||||
- MySQL
|
- MySQL
|
||||||
- Postgres
|
- Postgres
|
||||||
- Redis
|
- CLI using psql
|
||||||
- MSSQL (recursive navigation for instances)
|
- MSSQL (recursive navigation for instances)
|
||||||
|
- Other K/V stores from https://github.com/smallnest/kvbench
|
||||||
- SSH tunnels
|
- SSH tunnels
|
||||||
- Special actions
|
- Badger encryption key dialog
|
||||||
- Refresh tables
|
- Pebble: connection options dialog
|
||||||
- Per-db actions e.g. compact, export backup
|
- SQLite: DB compact action
|
||||||
- Per-table actions e.g. drop table
|
- SQLite: DB export backup action
|
||||||
- Sqlite cli driver for ssh tunnel
|
- SQLite: drop table action
|
||||||
|
- SQLite: show views, triggers, indexes in nav
|
||||||
|
- SQLite CLI driver:
|
||||||
|
- Basic error handling
|
||||||
|
- Better lexing
|
||||||
|
- Attach to SSH tunnel
|
||||||
|
- Configure binary path
|
||||||
- https://ricardoanderegg.com/posts/sqlite-remote-explorer-gui/
|
- https://ricardoanderegg.com/posts/sqlite-remote-explorer-gui/
|
||||||
- https://github.com/litements/litexplore
|
- https://github.com/litements/litexplore
|
||||||
- Badger encryption key dialog
|
- Build
|
||||||
- Badger in-memory
|
- Makefile to cross-compile release binaries in docker
|
||||||
- Makefile to cross-compile release binaries in docker
|
- Build own liblcl binaries in docker
|
||||||
- Win32 icon resource
|
- Win32 icon resource
|
||||||
|
- Performance
|
||||||
|
- Warning if data table is filtered to 1000 rows, or add pagination
|
||||||
|
- Context/interrupt slow queries
|
||||||
|
- Faster virtual rendering
|
||||||
|
- https://github.com/ying32/govcl/blob/master/samples/listviewvirtualdata/main.go
|
||||||
|
|||||||
BIN
assets/arrow_refresh.png
Normal file
|
After Width: | Height: | Size: 685 B |
BIN
assets/vendor_cockroach.png
Normal file
|
After Width: | Height: | Size: 752 B |
BIN
assets/vendor_dgraph.png
Normal file
|
After Width: | Height: | Size: 948 B |
BIN
assets/vendor_github.png
Normal file
|
After Width: | Height: | Size: 704 B |
BIN
assets/vendor_mysql.png
Normal file
|
After Width: | Height: | Size: 824 B |
BIN
assets/vendor_redis.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
assets/vendor_sqlite.png
Normal file
|
After Width: | Height: | Size: 919 B |
@@ -12,7 +12,6 @@ import (
|
|||||||
|
|
||||||
type badgerLoadedDatabase struct {
|
type badgerLoadedDatabase struct {
|
||||||
displayName string
|
displayName string
|
||||||
path string
|
|
||||||
db *badger.DB
|
db *badger.DB
|
||||||
nav *vcl.TTreeNode
|
nav *vcl.TTreeNode
|
||||||
|
|
||||||
@@ -104,26 +103,47 @@ func (ld *badgerLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ld *badgerLoadedDatabase) NavContext(ndata *navData) ([]contextAction, error) {
|
||||||
|
return nil, nil // No special actions are supported
|
||||||
|
}
|
||||||
|
|
||||||
func (ld *badgerLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
func (ld *badgerLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
||||||
vcl.ShowMessage("Badger doesn't support querying")
|
vcl.ShowMessage("Badger doesn't support querying")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ld *badgerLoadedDatabase) Close() {
|
||||||
|
_ = ld.db.Close()
|
||||||
|
ld.arena = nil
|
||||||
|
}
|
||||||
|
|
||||||
var _ loadedDatabase = &badgerLoadedDatabase{} // interface assertion
|
var _ loadedDatabase = &badgerLoadedDatabase{} // interface assertion
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
|
func (f *TMainForm) badgerAddDatabaseFromMemory() {
|
||||||
|
f.badgerAddDatabaseFrom(badger.DefaultOptions("").WithInMemory(true))
|
||||||
|
}
|
||||||
|
|
||||||
func (f *TMainForm) badgerAddDatabaseFromDirectory(path string) {
|
func (f *TMainForm) badgerAddDatabaseFromDirectory(path string) {
|
||||||
|
f.badgerAddDatabaseFrom(badger.DefaultOptions(path))
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) badgerAddDatabaseFrom(opts badger.Options) {
|
||||||
// TODO load in background thread to stop blocking the UI
|
// TODO load in background thread to stop blocking the UI
|
||||||
db, err := badger.Open(badger.DefaultOptions(path))
|
db, err := badger.Open(opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
vcl.ShowMessage(fmt.Sprintf("Failed to load database '%s': %s", path, err.Error()))
|
vcl.ShowMessage(fmt.Sprintf("Failed to load database: %s", err.Error()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ld := &badgerLoadedDatabase{
|
ld := &badgerLoadedDatabase{
|
||||||
path: path,
|
db: db,
|
||||||
displayName: filepath.Base(path),
|
}
|
||||||
db: db,
|
|
||||||
|
if opts.Dir == "" {
|
||||||
|
ld.displayName = ":memory:" // SQLite-style naming
|
||||||
|
} else {
|
||||||
|
ld.displayName = filepath.Base(opts.Dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
||||||
@@ -138,6 +158,7 @@ func (f *TMainForm) badgerAddDatabaseFromDirectory(path string) {
|
|||||||
ld.nav.SetData(unsafe.Pointer(navData))
|
ld.nav.SetData(unsafe.Pointer(navData))
|
||||||
|
|
||||||
f.dbs = append(f.dbs, ld)
|
f.dbs = append(f.dbs, ld)
|
||||||
|
f.Buckets.SetSelected(ld.nav) // Select new element
|
||||||
|
|
||||||
ld.Keepalive(navData)
|
ld.Keepalive(navData)
|
||||||
}
|
}
|
||||||
@@ -94,17 +94,76 @@ func (ld *boltLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
|||||||
return boltChildBucketNames(ld.db, ndata.bucketPath)
|
return boltChildBucketNames(ld.db, ndata.bucketPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ld *boltLoadedDatabase) NavContext(ndata *navData) (ret []contextAction, err error) {
|
||||||
|
ret = append(ret, contextAction{"Add bucket...", ld.AddChildBucket})
|
||||||
|
|
||||||
|
if len(ndata.bucketPath) > 0 {
|
||||||
|
ret = append(ret, contextAction{"Delete bucket", ld.DeleteBucket})
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *boltLoadedDatabase) AddChildBucket(ndata *navData) {
|
||||||
|
bucketName := ""
|
||||||
|
if !vcl.InputQuery(APPNAME, "Enter a name for the new bucket:", &bucketName) {
|
||||||
|
return // cancel
|
||||||
|
}
|
||||||
|
|
||||||
|
err := ld.db.Update(func(tx *bbolt.Tx) error {
|
||||||
|
parent := boltTargetBucket(tx, ndata.bucketPath)
|
||||||
|
if parent != nil {
|
||||||
|
_, err := parent.CreateBucket([]byte(bucketName))
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Top-level
|
||||||
|
_, err := tx.CreateBucket([]byte(bucketName))
|
||||||
|
return err
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessageFmt("Error adding bucket: %v", err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *boltLoadedDatabase) DeleteBucket(ndata *navData) {
|
||||||
|
err := ld.db.Update(func(tx *bbolt.Tx) error {
|
||||||
|
// Find parent of this bucket.
|
||||||
|
if len(ndata.bucketPath) >= 2 {
|
||||||
|
// child bucket
|
||||||
|
parent := boltTargetBucket(tx, ndata.bucketPath[0:len(ndata.bucketPath)-1])
|
||||||
|
return parent.DeleteBucket([]byte(ndata.bucketPath[len(ndata.bucketPath)-1]))
|
||||||
|
} else {
|
||||||
|
// top-level bucket
|
||||||
|
return tx.DeleteBucket([]byte(ndata.bucketPath[0]))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessageFmt("Error deleting bucket %q: %v", strings.Join(ndata.bucketPath, `/`), err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (ld *boltLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
func (ld *boltLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
||||||
vcl.ShowMessage("Bolt doesn't support querying")
|
vcl.ShowMessage("Bolt doesn't support querying")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ld *boltLoadedDatabase) Close() {
|
||||||
|
_ = ld.db.Close()
|
||||||
|
ld.arena = nil
|
||||||
|
}
|
||||||
|
|
||||||
var _ loadedDatabase = &boltLoadedDatabase{} // interface assertion
|
var _ loadedDatabase = &boltLoadedDatabase{} // interface assertion
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
func (f *TMainForm) boltAddDatabaseFromFile(path string) {
|
func (f *TMainForm) boltAddDatabaseFromFile(path string, readonly bool) {
|
||||||
// TODO load in background thread to stop blocking the UI
|
// TODO load in background thread to stop blocking the UI
|
||||||
db, err := bbolt.Open(path, 0644, &bbolt.Options{Timeout: 1 * time.Second})
|
|
||||||
|
opts := bbolt.Options{
|
||||||
|
Timeout: 1 * time.Second,
|
||||||
|
ReadOnly: readonly,
|
||||||
|
}
|
||||||
|
|
||||||
|
db, err := bbolt.Open(path, 0644, &opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
vcl.ShowMessage(fmt.Sprintf("Failed to load database '%s': %s", path, err.Error()))
|
vcl.ShowMessage(fmt.Sprintf("Failed to load database '%s': %s", path, err.Error()))
|
||||||
return
|
return
|
||||||
@@ -115,6 +174,9 @@ func (f *TMainForm) boltAddDatabaseFromFile(path string) {
|
|||||||
displayName: filepath.Base(path),
|
displayName: filepath.Base(path),
|
||||||
db: db,
|
db: db,
|
||||||
}
|
}
|
||||||
|
if readonly {
|
||||||
|
ld.displayName += " (read-only)"
|
||||||
|
}
|
||||||
|
|
||||||
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
||||||
ld.nav.SetHasChildren(true) // dynamically populate in OnNavExpanding
|
ld.nav.SetHasChildren(true) // dynamically populate in OnNavExpanding
|
||||||
@@ -128,6 +190,7 @@ func (f *TMainForm) boltAddDatabaseFromFile(path string) {
|
|||||||
ld.nav.SetData(unsafe.Pointer(navData))
|
ld.nav.SetData(unsafe.Pointer(navData))
|
||||||
|
|
||||||
f.dbs = append(f.dbs, ld)
|
f.dbs = append(f.dbs, ld)
|
||||||
|
f.Buckets.SetSelected(ld.nav) // Select new element
|
||||||
|
|
||||||
ld.Keepalive(navData)
|
ld.Keepalive(navData)
|
||||||
}
|
}
|
||||||
@@ -163,13 +226,13 @@ func boltChildBucketNames(db *bbolt.DB, path []string) ([]string, error) {
|
|||||||
if len(path) > 0 {
|
if len(path) > 0 {
|
||||||
b := tx.Bucket([]byte(path[0]))
|
b := tx.Bucket([]byte(path[0]))
|
||||||
if b == nil {
|
if b == nil {
|
||||||
return fmt.Errorf("Unexpected missing root bucket %q", path[0])
|
return fmt.Errorf("Root bucket %q: %w", path[0], ErrNavNotExist)
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 1; i < len(path); i += 1 {
|
for i := 1; i < len(path); i += 1 {
|
||||||
b = b.Bucket([]byte(path[i]))
|
b = b.Bucket([]byte(path[i]))
|
||||||
if b == nil {
|
if b == nil {
|
||||||
return fmt.Errorf("Unexpected missing bucket %q", strings.Join(path[0:i], `/`))
|
return fmt.Errorf("Bucket %q: %w", strings.Join(path[0:i], `/`), ErrNavNotExist)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
41
db_none.go
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/ying32/govcl/vcl"
|
||||||
|
)
|
||||||
|
|
||||||
|
type noLoadedDatabase struct{}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) DisplayName() string {
|
||||||
|
return APPNAME
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) DriverName() string {
|
||||||
|
return "No database selected"
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) RootElement() *vcl.TTreeNode {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) {
|
||||||
|
f.propertiesBox.SetText("Open a database to get started...")
|
||||||
|
f.contentBox.SetEnabled(false)
|
||||||
|
f.contentBox.Clear()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
||||||
|
return []string{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *noLoadedDatabase) NavContext(ndata *navData) ([]contextAction, error) {
|
||||||
|
return nil, nil // No special actions are supported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) Keepalive(ndata *navData) {
|
||||||
|
}
|
||||||
|
|
||||||
|
func (n *noLoadedDatabase) Close() {}
|
||||||
144
db_pebble.go
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"path/filepath"
|
||||||
|
"unsafe"
|
||||||
|
|
||||||
|
"github.com/cockroachdb/pebble"
|
||||||
|
"github.com/cockroachdb/pebble/vfs"
|
||||||
|
"github.com/ying32/govcl/vcl"
|
||||||
|
"github.com/ying32/govcl/vcl/types"
|
||||||
|
)
|
||||||
|
|
||||||
|
type pebbleLoadedDatabase struct {
|
||||||
|
displayName string
|
||||||
|
db *pebble.DB
|
||||||
|
nav *vcl.TTreeNode
|
||||||
|
|
||||||
|
arena []*navData // keepalive
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) DisplayName() string {
|
||||||
|
return ld.displayName
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) DriverName() string {
|
||||||
|
return "Pebble " + version_Pebble // Parsed from embedded go.mod copy
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) RootElement() *vcl.TTreeNode {
|
||||||
|
return ld.nav
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) Keepalive(ndata *navData) {
|
||||||
|
ld.arena = append(ld.arena, ndata)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) {
|
||||||
|
|
||||||
|
ctx := context.Background()
|
||||||
|
|
||||||
|
// Load properties
|
||||||
|
|
||||||
|
content := fmt.Sprintf("Pebble metrics: %#v", ld.db.Metrics())
|
||||||
|
f.propertiesBox.SetText(content)
|
||||||
|
|
||||||
|
// Load data
|
||||||
|
|
||||||
|
f.contentBox.SetEnabled(false)
|
||||||
|
f.contentBox.Clear()
|
||||||
|
|
||||||
|
// pebble always uses Key + Value as the columns
|
||||||
|
|
||||||
|
f.contentBox.Columns().Clear()
|
||||||
|
colKey := f.contentBox.Columns().Add()
|
||||||
|
colKey.SetCaption("Key")
|
||||||
|
colKey.SetWidth(MY_WIDTH)
|
||||||
|
colKey.SetAlignment(types.TaLeftJustify)
|
||||||
|
colVal := f.contentBox.Columns().Add()
|
||||||
|
colVal.SetCaption("Value")
|
||||||
|
|
||||||
|
itr := ld.db.NewIterWithContext(ctx, nil)
|
||||||
|
defer itr.Close()
|
||||||
|
|
||||||
|
for itr.First(); itr.Valid(); itr.Next() {
|
||||||
|
k := itr.Key()
|
||||||
|
v, err := itr.ValueAndErr()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Failed to load data for key %q: %s", formatAny(k), err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
dataEntry := f.contentBox.Items().Add()
|
||||||
|
dataEntry.SetCaption(formatUtf8(k))
|
||||||
|
dataEntry.SubItems().Add(formatUtf8(v))
|
||||||
|
}
|
||||||
|
|
||||||
|
// Valid
|
||||||
|
f.contentBox.SetEnabled(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
||||||
|
// In the pebble implementation, there is only one child: "Data"
|
||||||
|
if len(ndata.bucketPath) == 0 {
|
||||||
|
return []string{"Data"}, nil
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// No children deeper than that
|
||||||
|
return []string{}, nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) NavContext(ndata *navData) ([]contextAction, error) {
|
||||||
|
return nil, nil // No special actions are supported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
||||||
|
vcl.ShowMessage("pebble doesn't support querying")
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *pebbleLoadedDatabase) Close() {
|
||||||
|
_ = ld.db.Close()
|
||||||
|
ld.arena = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ loadedDatabase = &pebbleLoadedDatabase{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
func (f *TMainForm) pebbleAddDatabaseFromMemory() {
|
||||||
|
f.pebbleAddDatabaseFrom("", &pebble.Options{FS: vfs.NewMem()})
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) pebbleAddDatabaseFrom(dirname string, opts *pebble.Options) {
|
||||||
|
// TODO load in background thread to stop blocking the UI
|
||||||
|
|
||||||
|
db, err := pebble.Open(dirname, opts)
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Failed to load database: %s", err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
ld := &pebbleLoadedDatabase{
|
||||||
|
db: db,
|
||||||
|
displayName: filepath.Base(dirname),
|
||||||
|
}
|
||||||
|
|
||||||
|
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
||||||
|
ld.nav.SetHasChildren(true) // dynamically populate in OnNavExpanding
|
||||||
|
ld.nav.SetImageIndex(imgDatabase)
|
||||||
|
ld.nav.SetSelectedIndex(imgDatabase)
|
||||||
|
navData := &navData{
|
||||||
|
ld: ld,
|
||||||
|
childrenLoaded: false, // will be loaded dynamically
|
||||||
|
bucketPath: []string{}, // empty = root
|
||||||
|
}
|
||||||
|
ld.nav.SetData(unsafe.Pointer(navData))
|
||||||
|
|
||||||
|
f.dbs = append(f.dbs, ld)
|
||||||
|
f.Buckets.SetSelected(ld.nav) // Select new element
|
||||||
|
|
||||||
|
ld.Keepalive(navData)
|
||||||
|
}
|
||||||
290
db_redis.go
Normal file
@@ -0,0 +1,290 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"fmt"
|
||||||
|
"strconv"
|
||||||
|
"unsafe"
|
||||||
|
|
||||||
|
"yvbolt/lexer"
|
||||||
|
|
||||||
|
"github.com/redis/go-redis/v9"
|
||||||
|
"github.com/ying32/govcl/vcl"
|
||||||
|
"github.com/ying32/govcl/vcl/types"
|
||||||
|
)
|
||||||
|
|
||||||
|
type redisLoadedDatabase struct {
|
||||||
|
displayName string
|
||||||
|
db *redis.Client
|
||||||
|
nav *vcl.TTreeNode
|
||||||
|
|
||||||
|
currentDb int
|
||||||
|
maxDb int
|
||||||
|
serverVersion string // populated at connection-time from INFO command
|
||||||
|
|
||||||
|
arena []*navData // keepalive
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) DisplayName() string {
|
||||||
|
return ld.displayName
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) DriverName() string {
|
||||||
|
return "Redis " + ld.serverVersion
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) RootElement() *vcl.TTreeNode {
|
||||||
|
return ld.nav
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) Keepalive(ndata *navData) {
|
||||||
|
ld.arena = append(ld.arena, ndata)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) {
|
||||||
|
ctx := context.Background()
|
||||||
|
|
||||||
|
if len(ndata.bucketPath) == 0 {
|
||||||
|
// Top-level: Show info() on main Properties tab
|
||||||
|
infostr, err := ld.db.Info(ctx).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Retreiving database info: %v", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
f.propertiesBox.SetText(infostr)
|
||||||
|
|
||||||
|
// Disable data tab
|
||||||
|
f.contentBox.SetEnabled(false)
|
||||||
|
f.contentBox.Clear()
|
||||||
|
|
||||||
|
} else if len(ndata.bucketPath) == 1 {
|
||||||
|
// One selected database
|
||||||
|
// Figure out its content
|
||||||
|
err := ld.db.Do(ctx, "SELECT", ndata.bucketPath[0]).Err()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Switching to database %q: %v", ndata.bucketPath[0], err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
allKeys, err := ld.db.Keys(ctx, "*").Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Listing keys in database %q: %v", ndata.bucketPath[0], err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
f.propertiesBox.SetText(fmt.Sprintf("Database %s\nTotal keys: %d\n", ndata.bucketPath[0], len(allKeys)))
|
||||||
|
|
||||||
|
// Redis always uses Key + Value as the columns
|
||||||
|
|
||||||
|
f.contentBox.SetEnabled(false)
|
||||||
|
f.contentBox.Clear()
|
||||||
|
|
||||||
|
f.contentBox.Columns().Clear()
|
||||||
|
colKey := f.contentBox.Columns().Add()
|
||||||
|
colKey.SetCaption("Key")
|
||||||
|
colKey.SetWidth(MY_WIDTH)
|
||||||
|
colKey.SetAlignment(types.TaLeftJustify)
|
||||||
|
colType := f.contentBox.Columns().Add()
|
||||||
|
colType.SetCaption("Type")
|
||||||
|
colVal := f.contentBox.Columns().Add()
|
||||||
|
colVal.SetCaption("Value")
|
||||||
|
|
||||||
|
for _, key := range allKeys {
|
||||||
|
typeName, err := ld.db.Type(ctx, key).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Loading %q/%q: %v", ndata.bucketPath[0], key, err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
dataEntry := f.contentBox.Items().Add()
|
||||||
|
dataEntry.SetCaption(key) // formatUtf8
|
||||||
|
dataEntry.SubItems().Add(typeName)
|
||||||
|
|
||||||
|
switch typeName {
|
||||||
|
case "string":
|
||||||
|
val, err := ld.db.Get(ctx, key).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Loading %q/%q: %v", ndata.bucketPath[0], key, err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
dataEntry.SubItems().Add(val)
|
||||||
|
|
||||||
|
case "hash":
|
||||||
|
val, err := ld.db.HGetAll(ctx, key).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Loading %q/%q: %v", ndata.bucketPath[0], key, err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// It's a map[string]string
|
||||||
|
dataEntry.SubItems().Add(formatAny(val))
|
||||||
|
|
||||||
|
case "lists":
|
||||||
|
fallthrough
|
||||||
|
case "sets":
|
||||||
|
fallthrough
|
||||||
|
case "sorted sets":
|
||||||
|
fallthrough
|
||||||
|
case "stream":
|
||||||
|
fallthrough
|
||||||
|
|
||||||
|
default:
|
||||||
|
dataEntry.SubItems().Add("<<<other object type>>>")
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Valid
|
||||||
|
f.contentBox.SetEnabled(true)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Unexpected nav position %q", ndata.bucketPath))
|
||||||
|
return
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
||||||
|
// ctx := context.Background()
|
||||||
|
|
||||||
|
if len(ndata.bucketPath) == 0 {
|
||||||
|
// Top-level: list of all child databases (usually 16x)
|
||||||
|
ret := make([]string, 0, ld.maxDb)
|
||||||
|
for i := 0; i < ld.maxDb; i++ {
|
||||||
|
ret = append(ret, fmt.Sprintf("%d", i))
|
||||||
|
}
|
||||||
|
return ret, nil
|
||||||
|
|
||||||
|
} else if len(ndata.bucketPath) == 1 {
|
||||||
|
// One selected database
|
||||||
|
// No child keys underneath it
|
||||||
|
return []string{}, nil
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return nil, fmt.Errorf("Unexpected nav position %q", ndata.bucketPath)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) NavContext(ndata *navData) ([]contextAction, error) {
|
||||||
|
return nil, nil // No special actions are supported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) ExecQuery(query string, resultArea *vcl.TListView) {
|
||||||
|
ctx := context.Background()
|
||||||
|
|
||||||
|
// Need to parse the query into separate string+args fields for the protocol
|
||||||
|
fields, err := lexer.Fields(query)
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Parsing the query: %v", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
fields_boxed := box_interface(fields)
|
||||||
|
|
||||||
|
ret, err := ld.db.Do(ctx, fields_boxed...).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("The redis query returned an error: %v", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
resultArea.SetEnabled(false)
|
||||||
|
resultArea.Clear()
|
||||||
|
|
||||||
|
resultArea.Columns().Clear()
|
||||||
|
colVal := resultArea.Columns().Add()
|
||||||
|
colVal.SetCaption("Result")
|
||||||
|
|
||||||
|
// The result is probably a single value or a string slice
|
||||||
|
switch ret := ret.(type) {
|
||||||
|
case []string:
|
||||||
|
// Multiple values
|
||||||
|
for _, single := range ret {
|
||||||
|
cell := resultArea.Items().Add()
|
||||||
|
cell.SetCaption(single) // formatUtf8
|
||||||
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
// Single value
|
||||||
|
dataEntry := resultArea.Items().Add()
|
||||||
|
dataEntry.SetCaption(formatAny(ret)) // formatUtf8
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
resultArea.SetEnabled(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *redisLoadedDatabase) Close() {
|
||||||
|
_ = ld.db.Close()
|
||||||
|
ld.arena = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ loadedDatabase = &redisLoadedDatabase{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
func (f *TMainForm) redisConnect(opts *redis.Options) {
|
||||||
|
// TODO load in background thread to stop blocking the UI
|
||||||
|
ctx := context.Background()
|
||||||
|
|
||||||
|
ld := &redisLoadedDatabase{
|
||||||
|
displayName: opts.Addr,
|
||||||
|
currentDb: 0,
|
||||||
|
maxDb: 1,
|
||||||
|
serverVersion: "<unknown>",
|
||||||
|
}
|
||||||
|
|
||||||
|
// Patch in a hook to remember current DB after keepalive reconnection
|
||||||
|
opts.DB = 0 // Default
|
||||||
|
opts.OnConnect = func(ctx context.Context, cn *redis.Conn) error {
|
||||||
|
return cn.Select(ctx, ld.currentDb).Err()
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewClient doesn't necessarily connect, so it can't throw an err
|
||||||
|
ld.db = redis.NewClient(opts)
|
||||||
|
|
||||||
|
// Make an INFO request (mandatory)
|
||||||
|
info, err := ld.db.InfoMap(ctx).Result()
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Failed to connect to Redis server: During INFO: %v", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if serverInfo, ok := info["Server"]; ok {
|
||||||
|
if v, ok := serverInfo["redis_version"]; ok {
|
||||||
|
ld.serverVersion = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// List available databases (usually 1..16) with "0" as default
|
||||||
|
// If this fails, probably the target redis does not support multiple databases
|
||||||
|
// (e.g. Redis Cluster). Assume max=0.
|
||||||
|
if maxDatabases, err := ld.db.ConfigGet(ctx, "databases").Result(); err == nil {
|
||||||
|
// Got a result. Must parse it
|
||||||
|
m, err := strconv.ParseInt(maxDatabases["databases"], 10, 64)
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(fmt.Sprintf("Failed to connect to Redis server: During CONFIG GET databases: %v", err))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
ld.maxDb = int(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Done with setup
|
||||||
|
|
||||||
|
ld.nav = f.Buckets.Items().Add(nil, ld.displayName)
|
||||||
|
ld.nav.SetHasChildren(true) // dynamically populate in OnNavExpanding
|
||||||
|
ld.nav.SetImageIndex(imgDatabase)
|
||||||
|
ld.nav.SetSelectedIndex(imgDatabase)
|
||||||
|
navData := &navData{
|
||||||
|
ld: ld,
|
||||||
|
childrenLoaded: false, // will be loaded dynamically
|
||||||
|
bucketPath: []string{}, // empty = root
|
||||||
|
}
|
||||||
|
ld.nav.SetData(unsafe.Pointer(navData))
|
||||||
|
|
||||||
|
f.dbs = append(f.dbs, ld)
|
||||||
|
f.Buckets.SetSelected(ld.nav) // Select new element
|
||||||
|
|
||||||
|
ld.Keepalive(navData)
|
||||||
|
}
|
||||||
@@ -6,6 +6,8 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
|
_ "yvbolt/sqliteclidriver"
|
||||||
|
|
||||||
"github.com/ying32/govcl/vcl"
|
"github.com/ying32/govcl/vcl"
|
||||||
"github.com/ying32/govcl/vcl/types"
|
"github.com/ying32/govcl/vcl/types"
|
||||||
)
|
)
|
||||||
@@ -102,7 +104,7 @@ func (ld *sqliteLoadedDatabase) RenderForNav(f *TMainForm, ndata *navData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (ld *sqliteLoadedDatabase) sqliteGetColumnNamesForTable(tableName string) ([]string, error) {
|
func (ld *sqliteLoadedDatabase) sqliteGetColumnNamesForTable(tableName string) ([]string, error) {
|
||||||
colr, err := ld.db.Query(`SELECT name FROM pragma_table_info(?)`, tableName)
|
colr, err := ld.db.Query(`SELECT name FROM pragma_table_info( ? )`, tableName)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("Query: %w", err)
|
return nil, fmt.Errorf("Query: %w", err)
|
||||||
}
|
}
|
||||||
@@ -230,14 +232,28 @@ func (ld *sqliteLoadedDatabase) NavChildren(ndata *navData) ([]string, error) {
|
|||||||
return nil, fmt.Errorf("unknown nav path %#v", ndata.bucketPath)
|
return nil, fmt.Errorf("unknown nav path %#v", ndata.bucketPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ld *sqliteLoadedDatabase) NavContext(ndata *navData) ([]contextAction, error) {
|
||||||
|
return nil, nil // No special actions are supported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (ld *sqliteLoadedDatabase) Close() {
|
||||||
|
_ = ld.db.Close()
|
||||||
|
ld.arena = nil
|
||||||
|
}
|
||||||
|
|
||||||
var _ loadedDatabase = &sqliteLoadedDatabase{} // interface assertion
|
var _ loadedDatabase = &sqliteLoadedDatabase{} // interface assertion
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
func (f *TMainForm) sqliteAddDatabaseFromFile(path string) {
|
func (f *TMainForm) sqliteAddDatabaseFromFile(path string, cliDriver bool) {
|
||||||
|
|
||||||
|
driver := "sqlite3"
|
||||||
|
if cliDriver {
|
||||||
|
driver = "sqliteclidriver"
|
||||||
|
}
|
||||||
|
|
||||||
// TODO load in background thread to stop blocking the UI
|
// TODO load in background thread to stop blocking the UI
|
||||||
db, err := sql.Open("sqlite3", path)
|
db, err := sql.Open(driver, path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
vcl.ShowMessage(fmt.Sprintf("Failed to load database '%s': %s", path, err.Error()))
|
vcl.ShowMessage(fmt.Sprintf("Failed to load database '%s': %s", path, err.Error()))
|
||||||
return
|
return
|
||||||
@@ -261,6 +277,7 @@ func (f *TMainForm) sqliteAddDatabaseFromFile(path string) {
|
|||||||
ld.nav.SetData(unsafe.Pointer(navData))
|
ld.nav.SetData(unsafe.Pointer(navData))
|
||||||
|
|
||||||
f.dbs = append(f.dbs, ld)
|
f.dbs = append(f.dbs, ld)
|
||||||
|
f.Buckets.SetSelected(ld.nav) // Select new element
|
||||||
|
|
||||||
ld.Keepalive(navData)
|
ld.Keepalive(navData)
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 30 KiB |
43
go.mod
@@ -3,36 +3,59 @@ module yvbolt
|
|||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
github.com/cockroachdb/pebble v1.0.0
|
||||||
github.com/dgraph-io/badger/v4 v4.2.0
|
github.com/dgraph-io/badger/v4 v4.2.0
|
||||||
github.com/mattn/go-sqlite3 v1.14.22
|
github.com/mattn/go-sqlite3 v1.14.22
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
|
||||||
|
github.com/redis/go-redis/v9 v9.5.3
|
||||||
|
github.com/stretchr/testify v1.9.0
|
||||||
github.com/ying32/govcl v2.2.3+incompatible
|
github.com/ying32/govcl v2.2.3+incompatible
|
||||||
go.etcd.io/bbolt v1.4.0-alpha.1
|
go.etcd.io/bbolt v1.4.0-alpha.1
|
||||||
modernc.org/sqlite v1.24.0
|
modernc.org/sqlite v1.24.0
|
||||||
)
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
|
github.com/DataDog/zstd v1.4.5 // indirect
|
||||||
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
github.com/cespare/xxhash/v2 v2.2.0 // indirect
|
||||||
|
github.com/cockroachdb/errors v1.11.3 // indirect
|
||||||
|
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
|
||||||
|
github.com/cockroachdb/redact v1.1.5 // indirect
|
||||||
|
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||||
github.com/dgraph-io/ristretto v0.1.1 // indirect
|
github.com/dgraph-io/ristretto v0.1.1 // indirect
|
||||||
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
|
||||||
github.com/dustin/go-humanize v1.0.1 // indirect
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
||||||
|
github.com/getsentry/sentry-go v0.27.0 // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang/glog v1.0.0 // indirect
|
github.com/golang/glog v1.0.0 // indirect
|
||||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 // indirect
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
|
||||||
github.com/golang/protobuf v1.5.2 // indirect
|
github.com/golang/protobuf v1.5.3 // indirect
|
||||||
github.com/golang/snappy v0.0.3 // indirect
|
github.com/golang/snappy v0.0.4 // indirect
|
||||||
github.com/google/flatbuffers v1.12.1 // indirect
|
github.com/google/flatbuffers v1.12.1 // indirect
|
||||||
github.com/google/uuid v1.3.0 // indirect
|
github.com/google/uuid v1.3.0 // indirect
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
||||||
github.com/klauspost/compress v1.12.3 // indirect
|
github.com/klauspost/compress v1.16.0 // indirect
|
||||||
github.com/mattn/go-isatty v0.0.16 // indirect
|
github.com/kr/pretty v0.3.1 // indirect
|
||||||
|
github.com/kr/text v0.2.0 // indirect
|
||||||
|
github.com/mattn/go-isatty v0.0.17 // indirect
|
||||||
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
|
||||||
github.com/pkg/errors v0.9.1 // indirect
|
github.com/pkg/errors v0.9.1 // indirect
|
||||||
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||||
|
github.com/prometheus/client_golang v1.12.0 // indirect
|
||||||
|
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a // indirect
|
||||||
|
github.com/prometheus/common v0.32.1 // indirect
|
||||||
|
github.com/prometheus/procfs v0.7.3 // indirect
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
|
||||||
|
github.com/rogpeppe/go-internal v1.9.0 // indirect
|
||||||
go.opencensus.io v0.22.5 // indirect
|
go.opencensus.io v0.22.5 // indirect
|
||||||
golang.org/x/mod v0.3.0 // indirect
|
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df // indirect
|
||||||
golang.org/x/net v0.7.0 // indirect
|
golang.org/x/mod v0.18.0 // indirect
|
||||||
|
golang.org/x/net v0.23.0 // indirect
|
||||||
golang.org/x/sys v0.19.0 // indirect
|
golang.org/x/sys v0.19.0 // indirect
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a // indirect
|
golang.org/x/text v0.14.0 // indirect
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
golang.org/x/tools v0.13.0 // indirect
|
||||||
google.golang.org/protobuf v1.28.1 // indirect
|
google.golang.org/protobuf v1.33.0 // indirect
|
||||||
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||||
lukechampine.com/uint128 v1.2.0 // indirect
|
lukechampine.com/uint128 v1.2.0 // indirect
|
||||||
modernc.org/cc/v3 v3.40.0 // indirect
|
modernc.org/cc/v3 v3.40.0 // indirect
|
||||||
modernc.org/ccgo/v3 v3.16.13 // indirect
|
modernc.org/ccgo/v3 v3.16.13 // indirect
|
||||||
|
|||||||
461
go.sum
@@ -1,9 +1,71 @@
|
|||||||
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
|
cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
|
||||||
|
cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
|
||||||
|
cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
|
||||||
|
cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
|
||||||
|
cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
|
||||||
|
cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
|
||||||
|
cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To=
|
||||||
|
cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4=
|
||||||
|
cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M=
|
||||||
|
cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc=
|
||||||
|
cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk=
|
||||||
|
cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs=
|
||||||
|
cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc=
|
||||||
|
cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY=
|
||||||
|
cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
|
||||||
|
cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE=
|
||||||
|
cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc=
|
||||||
|
cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg=
|
||||||
|
cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc=
|
||||||
|
cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ=
|
||||||
|
cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
|
||||||
|
cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk=
|
||||||
|
cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
|
||||||
|
cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw=
|
||||||
|
cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA=
|
||||||
|
cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU=
|
||||||
|
cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
|
||||||
|
cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos=
|
||||||
|
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
|
||||||
|
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
|
||||||
|
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
|
||||||
|
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
|
github.com/DataDog/zstd v1.4.5 h1:EndNeuB0l9syBZhut0wns3gV1hL8zX8LIu6ZiVHWLIQ=
|
||||||
|
github.com/DataDog/zstd v1.4.5/go.mod h1:1jcaCB/ufaK+sKp1NBhlGmpz41jOoPQ35bpF36t7BBo=
|
||||||
|
github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||||
|
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
|
||||||
|
github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||||
|
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
|
||||||
|
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
|
||||||
|
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
|
||||||
|
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
|
||||||
|
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
|
||||||
|
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
|
||||||
|
github.com/bsm/ginkgo/v2 v2.12.0 h1:Ny8MWAHyOepLGlLKYmXG4IEkioBysk6GpaRTLC8zwWs=
|
||||||
|
github.com/bsm/gomega v1.27.10 h1:yeMWxP2pV2fG3FgAODIY8EiRE3dy0aeFYt4l7wh6yKA=
|
||||||
|
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
|
||||||
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
|
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
|
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
|
||||||
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
|
||||||
|
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
|
||||||
|
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
|
||||||
|
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
|
||||||
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
|
||||||
|
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
|
||||||
|
github.com/cockroachdb/datadriven v1.0.3-0.20230801171734-e384cf455877 h1:1MLK4YpFtIEo3ZtMA5C795Wtv5VuUnrXX7mQG+aHg6o=
|
||||||
|
github.com/cockroachdb/errors v1.11.3 h1:5bA+k2Y6r+oz/6Z/RFlNeVCesGARKuC6YymtcDrbC/I=
|
||||||
|
github.com/cockroachdb/errors v1.11.3/go.mod h1:m4UIW4CDjx+R5cybPsNrRbreomiFqt8o1h1wUVazSd8=
|
||||||
|
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE=
|
||||||
|
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs=
|
||||||
|
github.com/cockroachdb/pebble v1.0.0 h1:WZWlV/s78glZbY2ylUITDOWSVBD3cLjcWPLRPFbHNYg=
|
||||||
|
github.com/cockroachdb/pebble v1.0.0/go.mod h1:bynZ3gvVyhlvjLI7PT6dmZ7g76xzJ7HpxfjgkzCGz6s=
|
||||||
|
github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30=
|
||||||
|
github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg=
|
||||||
|
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
||||||
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||||
@@ -13,126 +75,492 @@ github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWa
|
|||||||
github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA=
|
github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA=
|
||||||
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA=
|
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2 h1:tdlZCpZ/P9DhczCTSixgIKmwPv6+wP5DGjqLYw5SUiA=
|
||||||
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
|
github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw=
|
||||||
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=
|
||||||
|
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f/go.mod h1:cuUVRXasLTGF7a8hSLbxyZXjz+1KgoB3wDUb6vlszIc=
|
||||||
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk=
|
||||||
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
|
||||||
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
|
||||||
|
github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
|
||||||
|
github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
|
||||||
|
github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps=
|
||||||
|
github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY=
|
||||||
|
github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA=
|
||||||
|
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
|
||||||
|
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||||
|
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
|
||||||
|
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||||
|
github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
|
||||||
|
github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY=
|
||||||
|
github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
|
||||||
|
github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
|
||||||
|
github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A=
|
||||||
|
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
|
||||||
|
github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
|
||||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||||
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
|
||||||
github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=
|
github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ=
|
||||||
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
|
github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4=
|
||||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6 h1:ZgQEtGgCBiWRM39fZuwSd1LwSqqSW0hOdXCYYDX0R3I=
|
|
||||||
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
|
github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=
|
||||||
|
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||||
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||||
|
github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
|
||||||
|
github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
|
||||||
|
github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
|
||||||
|
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
|
||||||
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
|
||||||
|
github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||||
|
github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
|
||||||
|
github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
|
||||||
|
github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
|
||||||
|
github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
|
||||||
|
github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
|
||||||
|
github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||||
|
github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
|
||||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||||
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
|
|
||||||
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||||
github.com/golang/snappy v0.0.3 h1:fHPg5GQYlCeLIPB9BZqMVR5nR9A+IM5zcgeTdjMYmLA=
|
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
|
||||||
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||||
|
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
|
||||||
|
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
|
||||||
|
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||||
|
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
|
||||||
github.com/google/flatbuffers v1.12.1 h1:MVlul7pQNoDzWRLTw5imwYsl+usrS1TXG2H4jg6ImGw=
|
github.com/google/flatbuffers v1.12.1 h1:MVlul7pQNoDzWRLTw5imwYsl+usrS1TXG2H4jg6ImGw=
|
||||||
github.com/google/flatbuffers v1.12.1/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
github.com/google/flatbuffers v1.12.1/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
|
||||||
|
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
|
||||||
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
|
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
|
||||||
|
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
|
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||||
|
github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
|
||||||
|
github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
|
||||||
|
github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0=
|
||||||
|
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
|
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
|
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
|
github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ=
|
github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26 h1:Xim43kblpZXfIBQsbuBVKCudVG457BR2GZFIz3uw3hQ=
|
||||||
|
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||||
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
|
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
|
||||||
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
|
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
|
||||||
|
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
|
||||||
|
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
|
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
|
||||||
|
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
|
||||||
|
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
|
||||||
|
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
|
||||||
|
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
|
github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
|
||||||
|
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
|
||||||
|
github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
|
||||||
|
github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk=
|
||||||
|
github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
|
||||||
|
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
||||||
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
||||||
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
|
||||||
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
|
||||||
github.com/klauspost/compress v1.12.3 h1:G5AfA94pHPysR56qqrkO2pxEexdDzrpFJ6yt/VqWxVU=
|
github.com/klauspost/compress v1.16.0 h1:iULayQNOReoYUe+1qtKOqw9CwJv3aNQu8ivo7lw1HU4=
|
||||||
github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
|
github.com/klauspost/compress v1.16.0/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
|
||||||
github.com/mattn/go-isatty v0.0.16 h1:bq3VjFmv/sOjHtdEhmkEV4x1AJtvUvOJ2PFAZ5+peKQ=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
|
||||||
|
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
|
||||||
|
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
||||||
|
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||||
|
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||||
|
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
||||||
|
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
||||||
|
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||||
|
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||||
|
github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=
|
||||||
|
github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||||
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
|
github.com/mattn/go-sqlite3 v1.14.22 h1:2gZY6PC6kBnID23Tichd1K+Z0oS6nE/XwU+Vz/5o4kU=
|
||||||
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
|
github.com/mattn/go-sqlite3 v1.14.22/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y=
|
||||||
|
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
|
||||||
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 h1:I0XW9+e1XWDxdcEniV4rQAIOPUGDq67JSCiRCgGCZLI=
|
||||||
|
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
|
||||||
|
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
|
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
|
||||||
|
github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||||
|
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
|
||||||
|
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
|
||||||
|
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
|
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
|
||||||
|
github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4=
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
|
||||||
|
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU=
|
||||||
|
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||||
|
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
|
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||||
|
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
|
||||||
|
github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo=
|
||||||
|
github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M=
|
||||||
|
github.com/prometheus/client_golang v1.11.0/go.mod h1:Z6t4BnS23TR94PD6BsDNk8yVqroYurpAkEiz0P2BEV0=
|
||||||
|
github.com/prometheus/client_golang v1.12.0 h1:C+UIj/QWtmqY13Arb8kwMt5j34/0Z2iKamrJ+ryC0Gg=
|
||||||
|
github.com/prometheus/client_golang v1.12.0/go.mod h1:3Z9XVyYiZYEO+YQWt3RD2R3jrbd179Rt297l4aS6nDY=
|
||||||
|
github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
|
||||||
|
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||||
|
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||||
|
github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
|
||||||
|
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a h1:CmF68hwI0XsOQ5UwlBopMi2Ow4Pbg32akc4KIVCOm+Y=
|
||||||
|
github.com/prometheus/client_model v0.2.1-0.20210607210712-147c58e9608a/go.mod h1:LDGWKZIo7rky3hgvBe+caln+Dr3dPggB5dvjtD7w9+w=
|
||||||
|
github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
|
||||||
|
github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo=
|
||||||
|
github.com/prometheus/common v0.26.0/go.mod h1:M7rCNAaPfAosfx8veZJCuw84e35h3Cfd9VFqTh1DIvc=
|
||||||
|
github.com/prometheus/common v0.32.1 h1:hWIdL3N2HoUx3B8j3YN9mWor0qhY/NlEKZEaXxuIRh4=
|
||||||
|
github.com/prometheus/common v0.32.1/go.mod h1:vu+V0TpY+O6vW9J44gczi3Ap/oXXR10b+M/gUGO4Hls=
|
||||||
|
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
|
||||||
|
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
|
||||||
|
github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU=
|
||||||
|
github.com/prometheus/procfs v0.6.0/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
||||||
|
github.com/prometheus/procfs v0.7.3 h1:4jVXhlkAyzOScmCkXBTOLRLTz8EeU+eyjrwB/EPq0VU=
|
||||||
|
github.com/prometheus/procfs v0.7.3/go.mod h1:cz+aTbrPOrUb4q7XlbU9ygM+/jj0fzG6c1xBZuNvfVA=
|
||||||
|
github.com/redis/go-redis/v9 v9.5.3 h1:fOAp1/uJG+ZtcITgZOfYFmTKPE7n4Vclj1wZFgRciUU=
|
||||||
|
github.com/redis/go-redis/v9 v9.5.3/go.mod h1:hdY0cQFCN4fnSYT6TkisLufl/4W5UIXyv0b/CLO2V2M=
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
|
||||||
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
|
||||||
|
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
|
||||||
|
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
|
||||||
|
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||||
|
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
|
||||||
|
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
|
||||||
|
github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88=
|
||||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||||
|
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||||
|
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||||
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
|
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
|
||||||
|
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||||
github.com/ying32/govcl v2.2.3+incompatible h1:Iyfcl26yNE1USm+3uG+btQyhkoFIV18+VITrUdHu8Lw=
|
github.com/ying32/govcl v2.2.3+incompatible h1:Iyfcl26yNE1USm+3uG+btQyhkoFIV18+VITrUdHu8Lw=
|
||||||
github.com/ying32/govcl v2.2.3+incompatible/go.mod h1:yZVtbJ9Md1nAVxtHKIriKZn4K6TQYqI1en3sN/m9FJ8=
|
github.com/ying32/govcl v2.2.3+incompatible/go.mod h1:yZVtbJ9Md1nAVxtHKIriKZn4K6TQYqI1en3sN/m9FJ8=
|
||||||
|
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
|
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||||
go.etcd.io/bbolt v1.4.0-alpha.1 h1:3yrqQzbRRPFPdOMWS/QQIVxVnzSkAZQYeWlZFv1kbj4=
|
go.etcd.io/bbolt v1.4.0-alpha.1 h1:3yrqQzbRRPFPdOMWS/QQIVxVnzSkAZQYeWlZFv1kbj4=
|
||||||
go.etcd.io/bbolt v1.4.0-alpha.1/go.mod h1:S/Z/Nm3iuOnyO1W4XuFfPci51Gj6F1Hv0z8hisyYYOw=
|
go.etcd.io/bbolt v1.4.0-alpha.1/go.mod h1:S/Z/Nm3iuOnyO1W4XuFfPci51Gj6F1Hv0z8hisyYYOw=
|
||||||
|
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
|
||||||
|
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
|
||||||
|
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
|
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
|
||||||
go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0=
|
go.opencensus.io v0.22.5 h1:dntmOdLpSpHlVqbW5Eay97DelsZHe+55D+xC6i0dDS0=
|
||||||
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
|
||||||
|
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
|
||||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||||
|
golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
|
golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||||
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
|
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
|
||||||
|
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
|
||||||
|
golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
|
||||||
|
golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
|
||||||
|
golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
|
||||||
|
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
|
||||||
|
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
|
||||||
|
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df h1:UA2aFVmmsIlefxMk29Dp2juaUSth8Pyn3Tq5Y5mJGME=
|
||||||
|
golang.org/x/exp v0.0.0-20230626212559-97b1e661b5df/go.mod h1:FXUEEKJgO7OQYeo8N01OfiKP8RXMtf6e8aTskBGqWdc=
|
||||||
|
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
|
||||||
|
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
|
||||||
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||||
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
|
||||||
|
golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
|
||||||
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
|
||||||
|
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs=
|
||||||
|
golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||||
|
golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
|
||||||
|
golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
|
||||||
|
golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
|
||||||
|
golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
|
||||||
|
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||||
|
golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
golang.org/x/mod v0.3.0 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
|
|
||||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||||
|
golang.org/x/mod v0.18.0 h1:5+9lSbEzPSdWkH32vYPBwEpX8KwDbM52Ud9xBUvNlb0=
|
||||||
|
golang.org/x/mod v0.18.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||||
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
|
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
|
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
|
||||||
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||||
|
golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
|
||||||
|
golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||||
|
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
|
||||||
|
golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
|
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
|
||||||
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
|
||||||
golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g=
|
golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
|
||||||
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
|
||||||
|
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
|
||||||
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
|
||||||
|
golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A=
|
||||||
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||||
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
|
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
|
||||||
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||||
|
golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||||
|
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
|
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
|
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
|
||||||
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
|
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||||
|
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||||
|
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
|
||||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||||
|
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
|
||||||
|
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
|
||||||
|
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
|
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
|
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
|
||||||
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
||||||
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
|
||||||
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
|
||||||
|
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
|
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
|
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
|
||||||
|
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
|
golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
|
golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
|
||||||
|
golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
|
golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
|
golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||||
|
golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw=
|
||||||
|
golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
|
||||||
|
golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
|
golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a h1:CB3a9Nez8M13wwlr/E2YtwoU+qYHKfC+JrDa45RXXoQ=
|
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
|
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
|
golang.org/x/tools v0.13.0 h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=
|
||||||
|
golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
|
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
|
||||||
|
google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
|
||||||
|
google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||||
|
google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
|
||||||
|
google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
|
||||||
|
google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE=
|
||||||
|
google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||||
|
google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE=
|
||||||
|
google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM=
|
||||||
|
google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc=
|
||||||
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
|
||||||
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
|
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
|
||||||
|
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
|
||||||
|
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||||
|
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
|
||||||
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
|
||||||
|
google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
|
google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
|
google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
|
||||||
|
google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||||
|
google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
|
||||||
|
google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
|
||||||
|
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
|
||||||
|
google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA=
|
||||||
|
google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=
|
||||||
|
google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U=
|
||||||
|
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
|
||||||
|
google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
|
||||||
|
google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
|
google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no=
|
||||||
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
|
||||||
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
|
||||||
|
google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
|
||||||
|
google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
|
||||||
|
google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
|
||||||
|
google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
|
||||||
|
google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60=
|
||||||
|
google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
|
||||||
|
google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
|
||||||
|
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
|
||||||
|
google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
|
||||||
|
google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
|
||||||
|
google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
|
||||||
|
google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
|
||||||
|
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
|
||||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||||
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
|
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
|
||||||
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
||||||
|
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
|
||||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||||
|
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||||
|
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
||||||
|
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
||||||
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||||
|
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||||
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
|
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI=
|
lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI=
|
||||||
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk=
|
||||||
modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw=
|
modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw=
|
||||||
@@ -157,3 +585,6 @@ modernc.org/tcl v1.15.2 h1:C4ybAYCGJw968e+Me18oW55kD/FexcHbqH2xak1ROSY=
|
|||||||
modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg=
|
modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg=
|
||||||
modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
|
||||||
modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY=
|
modernc.org/z v1.7.3 h1:zDJf6iHjrnB+WRD88stbXokugjyc0/pB91ri1gO6LZY=
|
||||||
|
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||||
|
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||||
|
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
|
||||||
|
|||||||
16
images.go
@@ -10,7 +10,8 @@ import (
|
|||||||
var assetsFs embed.FS
|
var assetsFs embed.FS
|
||||||
|
|
||||||
const (
|
const (
|
||||||
imgChartBar int32 = iota
|
imgArrowRefresh int32 = iota
|
||||||
|
imgChartBar
|
||||||
imgDatabase
|
imgDatabase
|
||||||
imgDatabaseAdd
|
imgDatabaseAdd
|
||||||
imgDatabaseDelete
|
imgDatabaseDelete
|
||||||
@@ -21,6 +22,12 @@ const (
|
|||||||
imgTableAdd
|
imgTableAdd
|
||||||
imgTableDelete
|
imgTableDelete
|
||||||
imgTableSave
|
imgTableSave
|
||||||
|
imgVendorCockroach
|
||||||
|
imgVendorDgraph
|
||||||
|
imgVendorGithub
|
||||||
|
imgVendorMySQL
|
||||||
|
imgVendorRedis
|
||||||
|
imgVendorSqlite
|
||||||
)
|
)
|
||||||
|
|
||||||
func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
||||||
@@ -40,6 +47,7 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ilist := vcl.NewImageList(owner)
|
ilist := vcl.NewImageList(owner)
|
||||||
|
ilist.Add(mustLoad("assets/arrow_refresh.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/chart_bar.png"), nil)
|
ilist.Add(mustLoad("assets/chart_bar.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/database.png"), nil)
|
ilist.Add(mustLoad("assets/database.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/database_add.png"), nil)
|
ilist.Add(mustLoad("assets/database_add.png"), nil)
|
||||||
@@ -51,6 +59,12 @@ func loadImages(owner vcl.IComponent) *vcl.TImageList {
|
|||||||
ilist.Add(mustLoad("assets/table_add.png"), nil)
|
ilist.Add(mustLoad("assets/table_add.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/table_delete.png"), nil)
|
ilist.Add(mustLoad("assets/table_delete.png"), nil)
|
||||||
ilist.Add(mustLoad("assets/table_save.png"), nil)
|
ilist.Add(mustLoad("assets/table_save.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_cockroach.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_dgraph.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_github.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_mysql.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_redis.png"), nil)
|
||||||
|
ilist.Add(mustLoad("assets/vendor_sqlite.png"), nil)
|
||||||
return ilist
|
return ilist
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
146
lexer/lexer.go
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
package lexer
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func isWhitespace(r byte) bool {
|
||||||
|
return (r == ' ' || r == '\t' || r == '\r' || r == '\n')
|
||||||
|
}
|
||||||
|
|
||||||
|
func Quote(input string) string {
|
||||||
|
return `"` + strings.ReplaceAll(strings.ReplaceAll(input, `\`, `\\`), `"`, `\"`) + `"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// Fields splits a string into separate tokens using something kind of vaguely
|
||||||
|
// like how SQL would do it.
|
||||||
|
// The result still includes the quote and backslash characters.
|
||||||
|
func Fields(input string) ([]string, error) {
|
||||||
|
|
||||||
|
const (
|
||||||
|
StateToplevel = 0
|
||||||
|
StateWhitespace = 1
|
||||||
|
StateInDoubleQuote = 2
|
||||||
|
StateInDoubleQuoteSlash = 3
|
||||||
|
StateInSingleQuote = 4
|
||||||
|
StateInSingleQuoteSlash = 5
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
ret []string
|
||||||
|
state int = StateToplevel
|
||||||
|
wip string
|
||||||
|
)
|
||||||
|
|
||||||
|
for pos := 0; pos < len(input); pos++ {
|
||||||
|
c := input[pos]
|
||||||
|
|
||||||
|
switch state {
|
||||||
|
|
||||||
|
case StateToplevel:
|
||||||
|
if isWhitespace(c) {
|
||||||
|
state = StateWhitespace
|
||||||
|
if len(wip) != 0 {
|
||||||
|
ret = append(ret, wip)
|
||||||
|
wip = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
} else if c == '"' {
|
||||||
|
if len(wip) != 0 {
|
||||||
|
return nil, fmt.Errorf(`Unexpected " at char %d`, pos)
|
||||||
|
}
|
||||||
|
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInDoubleQuote
|
||||||
|
|
||||||
|
} else if c == '\'' {
|
||||||
|
if len(wip) != 0 {
|
||||||
|
return nil, fmt.Errorf(`Unexpected ' at char %d`, pos)
|
||||||
|
}
|
||||||
|
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInSingleQuote
|
||||||
|
|
||||||
|
} else if c == '\\' {
|
||||||
|
return nil, fmt.Errorf(`Unexpected \ at char %d`, pos)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
wip += string(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
case StateWhitespace:
|
||||||
|
if isWhitespace(c) {
|
||||||
|
// continue
|
||||||
|
} else {
|
||||||
|
state = StateToplevel
|
||||||
|
pos-- // reparse
|
||||||
|
}
|
||||||
|
|
||||||
|
case StateInDoubleQuote:
|
||||||
|
if c == '"' {
|
||||||
|
wip += string(c)
|
||||||
|
ret = append(ret, wip)
|
||||||
|
wip = ""
|
||||||
|
state = StateToplevel
|
||||||
|
|
||||||
|
} else if c == '\\' {
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInDoubleQuoteSlash
|
||||||
|
|
||||||
|
} else {
|
||||||
|
wip += string(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
case StateInDoubleQuoteSlash:
|
||||||
|
if isWhitespace(c) {
|
||||||
|
return nil, fmt.Errorf(`Unexpected whitespace after \ at char %d`, pos)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInDoubleQuote
|
||||||
|
}
|
||||||
|
|
||||||
|
case StateInSingleQuote:
|
||||||
|
if c == '\'' {
|
||||||
|
wip += string(c)
|
||||||
|
ret = append(ret, wip)
|
||||||
|
wip = ""
|
||||||
|
state = StateToplevel
|
||||||
|
|
||||||
|
} else if c == '\\' {
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInSingleQuoteSlash
|
||||||
|
|
||||||
|
} else {
|
||||||
|
wip += string(c)
|
||||||
|
}
|
||||||
|
|
||||||
|
case StateInSingleQuoteSlash:
|
||||||
|
if isWhitespace(c) {
|
||||||
|
return nil, fmt.Errorf(`Unexpected whitespace after \ at char %d`, pos)
|
||||||
|
|
||||||
|
} else {
|
||||||
|
wip += string(c)
|
||||||
|
state = StateInSingleQuote
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reached the end of input stream
|
||||||
|
switch state {
|
||||||
|
case StateToplevel:
|
||||||
|
if len(wip) > 0 {
|
||||||
|
ret = append(ret, wip)
|
||||||
|
wip = ""
|
||||||
|
}
|
||||||
|
return ret, nil
|
||||||
|
|
||||||
|
case StateWhitespace:
|
||||||
|
return ret, nil
|
||||||
|
|
||||||
|
default:
|
||||||
|
return nil, fmt.Errorf(`Unexpected end of quoted input`)
|
||||||
|
}
|
||||||
|
}
|
||||||
107
lexer/lexer_test.go
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
package lexer
|
||||||
|
|
||||||
|
import (
|
||||||
|
"reflect"
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestLexer(t *testing.T) {
|
||||||
|
type testCase struct {
|
||||||
|
input string
|
||||||
|
expect []string
|
||||||
|
expectErr bool
|
||||||
|
}
|
||||||
|
|
||||||
|
cases := []testCase{
|
||||||
|
|
||||||
|
testCase{
|
||||||
|
input: "foo bar baz",
|
||||||
|
expect: []string{"foo", "bar", "baz"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
// Quotes
|
||||||
|
|
||||||
|
testCase{
|
||||||
|
input: `foo "bar" baz`,
|
||||||
|
expect: []string{"foo", `"bar"`, "baz"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo "bar baz" quux`,
|
||||||
|
expect: []string{"foo", `"bar baz"`, "quux"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo 'bar baz' quux`,
|
||||||
|
expect: []string{"foo", `'bar baz'`, "quux"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
// Escape characters
|
||||||
|
|
||||||
|
testCase{
|
||||||
|
input: `foo 'bar \n baz' quux`,
|
||||||
|
expect: []string{"foo", `'bar \n baz'`, "quux"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo "bar\"" baz`,
|
||||||
|
expect: []string{"foo", `"bar\""`, "baz"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
// Collapsing whitespace
|
||||||
|
|
||||||
|
testCase{
|
||||||
|
input: " foo bar \r\t\n baz\n",
|
||||||
|
expect: []string{"foo", "bar", "baz"},
|
||||||
|
expectErr: false,
|
||||||
|
},
|
||||||
|
|
||||||
|
// Errors
|
||||||
|
|
||||||
|
testCase{
|
||||||
|
input: `foo "bar`,
|
||||||
|
expect: nil,
|
||||||
|
expectErr: true, // mismatched quotes
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo 'bar`,
|
||||||
|
expect: nil,
|
||||||
|
expectErr: true, // mismatched quotes
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo \"bar"`,
|
||||||
|
expect: nil,
|
||||||
|
expectErr: true, // invalid top-level escape
|
||||||
|
},
|
||||||
|
testCase{
|
||||||
|
input: `foo "bar\ "`,
|
||||||
|
expect: nil,
|
||||||
|
expectErr: true, // escaping nothing
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, tc := range cases {
|
||||||
|
out, err := Fields(tc.input)
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
if !tc.expectErr {
|
||||||
|
t.Errorf("Test %q got error %v, expected nil", tc.input, err)
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if tc.expectErr {
|
||||||
|
t.Errorf("Test %q got error <nil>, expected error", tc.input)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
|
if !reflect.DeepEqual(out, tc.expect) {
|
||||||
|
t.Errorf("Test %q got %v, expected %v", tc.input, out, tc.expect)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,9 +1,18 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
|
|
||||||
"github.com/ying32/govcl/vcl"
|
"github.com/ying32/govcl/vcl"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var ErrNavNotExist error = errors.New("The selected item no longer exists")
|
||||||
|
|
||||||
|
type contextAction struct {
|
||||||
|
Name string
|
||||||
|
Callback func(ndata *navData)
|
||||||
|
}
|
||||||
|
|
||||||
// loadedDatabase is a DB-agnostic interface for each loaded database.
|
// loadedDatabase is a DB-agnostic interface for each loaded database.
|
||||||
type loadedDatabase interface {
|
type loadedDatabase interface {
|
||||||
DisplayName() string
|
DisplayName() string
|
||||||
@@ -12,7 +21,9 @@ type loadedDatabase interface {
|
|||||||
RenderForNav(f *TMainForm, ndata *navData)
|
RenderForNav(f *TMainForm, ndata *navData)
|
||||||
ExecQuery(query string, resultArea *vcl.TListView)
|
ExecQuery(query string, resultArea *vcl.TListView)
|
||||||
NavChildren(ndata *navData) ([]string, error)
|
NavChildren(ndata *navData) ([]string, error)
|
||||||
|
NavContext(ndata *navData) ([]contextAction, error)
|
||||||
Keepalive(ndata *navData)
|
Keepalive(ndata *navData)
|
||||||
|
Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
// navData is the .Data() pointer for each TTreeNode in the left-hand tree.
|
// navData is the .Data() pointer for each TTreeNode in the left-hand tree.
|
||||||
|
|||||||
396
main.go
@@ -1,26 +1,31 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"runtime/debug"
|
||||||
"strings"
|
"strings"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
|
|
||||||
_ "github.com/ying32/govcl/pkgs/winappres" // Extra _syso files for Windows
|
"github.com/pkg/browser"
|
||||||
"github.com/ying32/govcl/vcl"
|
"github.com/ying32/govcl/vcl"
|
||||||
"github.com/ying32/govcl/vcl/types"
|
"github.com/ying32/govcl/vcl/types"
|
||||||
|
"github.com/ying32/govcl/vcl/types/colors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
MY_SPACING = 6
|
APPNAME = "yvbolt"
|
||||||
MY_HEIGHT = 90
|
HOMEPAGE_URL = "https://code.ivysaur.me/yvbolt"
|
||||||
MY_WIDTH = 180
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type TMainForm struct {
|
type TMainForm struct {
|
||||||
*vcl.TForm
|
*vcl.TForm
|
||||||
|
|
||||||
ImageList *vcl.TImageList
|
ImageList *vcl.TImageList
|
||||||
Menu *vcl.TMainMenu
|
Menu *vcl.TMainMenu
|
||||||
|
|
||||||
|
SQLiteUseCliDriver *vcl.TMenuItem
|
||||||
|
|
||||||
StatusBar *vcl.TStatusBar
|
StatusBar *vcl.TStatusBar
|
||||||
Buckets *vcl.TTreeView
|
Buckets *vcl.TTreeView
|
||||||
Tabs *vcl.TPageControl
|
Tabs *vcl.TPageControl
|
||||||
@@ -29,7 +34,8 @@ type TMainForm struct {
|
|||||||
queryInput *vcl.TMemo
|
queryInput *vcl.TMemo
|
||||||
queryResult *vcl.TListView
|
queryResult *vcl.TListView
|
||||||
|
|
||||||
dbs []loadedDatabase
|
none *noLoadedDatabase
|
||||||
|
dbs []loadedDatabase
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -43,40 +49,70 @@ func main() {
|
|||||||
func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
||||||
f.ImageList = loadImages(f)
|
f.ImageList = loadImages(f)
|
||||||
|
|
||||||
f.SetCaption("yvbolt")
|
f.SetCaption(APPNAME)
|
||||||
|
f.ScreenCenter()
|
||||||
f.ImageList.GetIcon(imgDatabaseLightning, f.Icon())
|
f.ImageList.GetIcon(imgDatabaseLightning, f.Icon())
|
||||||
|
|
||||||
mnuFile := vcl.NewMenuItem(f)
|
mnuFile := vcl.NewMenuItem(f)
|
||||||
mnuFile.SetCaption("File")
|
mnuFile.SetCaption("File")
|
||||||
|
|
||||||
mnuFileOpen := vcl.NewMenuItem(mnuFile)
|
//
|
||||||
mnuFileOpen.SetCaption("Open Bolt database...")
|
|
||||||
mnuFileOpen.SetImageIndex(imgDatabaseAdd)
|
|
||||||
mnuFileOpen.SetShortCutFromString("Ctrl+O")
|
|
||||||
mnuFileOpen.SetOnClick(f.OnMnuFileOpenClick)
|
|
||||||
mnuFile.Add(mnuFileOpen)
|
|
||||||
|
|
||||||
mnuFileSqliteOpen := vcl.NewMenuItem(mnuFile)
|
mnuFileBadger := vcl.NewMenuItem(mnuFile)
|
||||||
mnuFileSqliteOpen.SetCaption("Open SQLite database...")
|
mnuFileBadger.SetCaption("Badger")
|
||||||
mnuFileSqliteOpen.SetImageIndex(imgDatabaseAdd)
|
mnuFileBadger.SetImageIndex(imgVendorDgraph)
|
||||||
mnuFileSqliteOpen.SetOnClick(f.OnMnuFileSqliteOpenClick)
|
mnuFile.Add(mnuFileBadger)
|
||||||
mnuFile.Add(mnuFileSqliteOpen)
|
|
||||||
|
|
||||||
mnuFileBadgerOpen := vcl.NewMenuItem(mnuFile)
|
vcl_menuitem(mnuFileBadger, "Open database...", imgDatabaseAdd, f.OnMnuFileBadgerOpenClick)
|
||||||
mnuFileBadgerOpen.SetCaption("Open Badger v4 database...")
|
vcl_menuitem(mnuFileBadger, "New in-memory database", imgDatabaseAdd, f.OnMnuFileBadgerMemoryClick)
|
||||||
mnuFileBadgerOpen.SetImageIndex(imgDatabaseAdd)
|
|
||||||
mnuFileBadgerOpen.SetOnClick(f.OnMnuFileBadgerOpenClick)
|
|
||||||
mnuFile.Add(mnuFileBadgerOpen)
|
|
||||||
|
|
||||||
mnuFileSqliteMemory := vcl.NewMenuItem(mnuFile)
|
//
|
||||||
mnuFileSqliteMemory.SetCaption("New SQLite in-memory database")
|
|
||||||
mnuFileSqliteMemory.SetImageIndex(imgDatabaseAdd)
|
|
||||||
mnuFileSqliteMemory.SetOnClick(f.OnMnuFileSqliteMemoryClick)
|
|
||||||
mnuFile.Add(mnuFileSqliteMemory)
|
|
||||||
|
|
||||||
mnuSep := vcl.NewMenuItem(mnuFile)
|
mnuFileBolt := vcl.NewMenuItem(mnuFile)
|
||||||
mnuSep.SetCaption("-") // Creates separator
|
mnuFileBolt.SetCaption("Bolt")
|
||||||
mnuFile.Add(mnuSep)
|
mnuFileBolt.SetImageIndex(imgVendorGithub)
|
||||||
|
mnuFile.Add(mnuFileBolt)
|
||||||
|
|
||||||
|
vcl_menuitem(mnuFileBolt, "New database...", imgDatabaseAdd, f.OnMnuFileBoltNewClick)
|
||||||
|
vcl_menuitem(mnuFileBolt, "Open database...", imgDatabaseAdd, f.OnMnuFileBoltOpenClick)
|
||||||
|
vcl_menuitem(mnuFileBolt, "Open database (read-only)...", imgDatabaseAdd, f.OnMnuFileBoltOpenReadonlyClick)
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
mnuFilePebble := vcl.NewMenuItem(mnuFile)
|
||||||
|
mnuFilePebble.SetCaption("Pebble")
|
||||||
|
mnuFilePebble.SetImageIndex(imgVendorCockroach)
|
||||||
|
mnuFile.Add(mnuFilePebble)
|
||||||
|
|
||||||
|
vcl_menuitem(mnuFilePebble, "Open database...", imgDatabaseAdd, f.OnMnuFilePebbleOpenClick)
|
||||||
|
vcl_menuitem(mnuFilePebble, "New in-memory database", imgDatabaseAdd, f.OnMnuFilePebbleMemoryClick)
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
mnuFileRedis := vcl.NewMenuItem(mnuFile)
|
||||||
|
mnuFileRedis.SetCaption("Redis")
|
||||||
|
mnuFileRedis.SetImageIndex(imgVendorRedis)
|
||||||
|
mnuFile.Add(mnuFileRedis)
|
||||||
|
|
||||||
|
vcl_menuitem(mnuFileRedis, "Connect...", imgDatabaseAdd, f.OnMnuFileRedisConnectClick)
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
mnuFileSqlite := vcl.NewMenuItem(mnuFile)
|
||||||
|
mnuFileSqlite.SetCaption("SQLite")
|
||||||
|
mnuFileSqlite.SetImageIndex(imgVendorSqlite)
|
||||||
|
mnuFile.Add(mnuFileSqlite)
|
||||||
|
|
||||||
|
vcl_menuitem(mnuFileSqlite, "Open database...", imgDatabaseAdd, f.OnMnuFileSqliteOpenClick)
|
||||||
|
vcl_menuitem(mnuFileSqlite, "New in-memory database", imgDatabaseAdd, f.OnMnuFileSqliteMemoryClick)
|
||||||
|
|
||||||
|
vcl_menuseparator(mnuFileSqlite)
|
||||||
|
f.SQLiteUseCliDriver = vcl_menuitem(mnuFileSqlite, "Connect using CLI driver (experimental)", -1, nil)
|
||||||
|
f.SQLiteUseCliDriver.SetAutoCheck(true)
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
vcl_menuseparator(mnuFile)
|
||||||
|
|
||||||
mnuFileExit := vcl.NewMenuItem(mnuFile)
|
mnuFileExit := vcl.NewMenuItem(mnuFile)
|
||||||
mnuFileExit.SetCaption("Exit")
|
mnuFileExit.SetCaption("Exit")
|
||||||
@@ -93,10 +129,25 @@ func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
|||||||
mnuQueryExecute.SetImageIndex(imgLightning)
|
mnuQueryExecute.SetImageIndex(imgLightning)
|
||||||
mnuQuery.Add(mnuQueryExecute)
|
mnuQuery.Add(mnuQueryExecute)
|
||||||
|
|
||||||
|
mnuHelp := vcl.NewMenuItem(f)
|
||||||
|
mnuHelp.SetCaption("Help")
|
||||||
|
|
||||||
|
mnuHelpVersion := vcl.NewMenuItem(mnuHelp)
|
||||||
|
mnuHelpVersion.SetCaption("Driver versions...")
|
||||||
|
mnuHelpVersion.SetOnClick(f.OnMenuHelpVersion)
|
||||||
|
mnuHelp.Add(mnuHelpVersion)
|
||||||
|
|
||||||
|
mnuHelpHomepage := vcl.NewMenuItem(mnuHelp)
|
||||||
|
mnuHelpHomepage.SetCaption("About " + APPNAME)
|
||||||
|
mnuHelpHomepage.SetShortCutFromString("F1")
|
||||||
|
mnuHelpHomepage.SetOnClick(f.OnMnuHelpHomepage)
|
||||||
|
mnuHelp.Add(mnuHelpHomepage)
|
||||||
|
|
||||||
f.Menu = vcl.NewMainMenu(f)
|
f.Menu = vcl.NewMainMenu(f)
|
||||||
f.Menu.SetImages(f.ImageList)
|
f.Menu.SetImages(f.ImageList)
|
||||||
f.Menu.Items().Add(mnuFile)
|
f.Menu.Items().Add(mnuFile)
|
||||||
f.Menu.Items().Add(mnuQuery)
|
f.Menu.Items().Add(mnuQuery)
|
||||||
|
f.Menu.Items().Add(mnuHelp)
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -114,6 +165,7 @@ func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
|||||||
f.Buckets.SetReadOnly(true) // prevent click to rename on nodes
|
f.Buckets.SetReadOnly(true) // prevent click to rename on nodes
|
||||||
f.Buckets.SetOnExpanding(f.OnNavExpanding)
|
f.Buckets.SetOnExpanding(f.OnNavExpanding)
|
||||||
f.Buckets.SetOnChange(f.OnNavChange)
|
f.Buckets.SetOnChange(f.OnNavChange)
|
||||||
|
f.Buckets.SetOnContextPopup(f.OnNavContextPopup)
|
||||||
|
|
||||||
hsplit := vcl.NewSplitter(f)
|
hsplit := vcl.NewSplitter(f)
|
||||||
hsplit.SetParent(f)
|
hsplit.SetParent(f)
|
||||||
@@ -135,9 +187,11 @@ func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
|||||||
f.propertiesBox.BorderSpacing().SetAround(MY_SPACING)
|
f.propertiesBox.BorderSpacing().SetAround(MY_SPACING)
|
||||||
f.propertiesBox.SetAlign(types.AlClient) // fill remaining space
|
f.propertiesBox.SetAlign(types.AlClient) // fill remaining space
|
||||||
f.propertiesBox.SetReadOnly(true)
|
f.propertiesBox.SetReadOnly(true)
|
||||||
f.propertiesBox.SetEnabled(false)
|
f.propertiesBox.SetEnabled(true) // Need to leave it enabled so scrolling works
|
||||||
|
f.propertiesBox.SetColor(colors.ClForm) // 0x00f0f0f0
|
||||||
|
|
||||||
f.propertiesBox.SetBorderStyle(types.BsNone)
|
f.propertiesBox.SetBorderStyle(types.BsNone)
|
||||||
f.propertiesBox.SetText("Open a database to get started...")
|
f.propertiesBox.SetScrollBars(types.SsAutoVertical)
|
||||||
|
|
||||||
dataTab := vcl.NewTabSheet(f.Tabs)
|
dataTab := vcl.NewTabSheet(f.Tabs)
|
||||||
dataTab.SetParent(f.Tabs)
|
dataTab.SetParent(f.Tabs)
|
||||||
@@ -199,25 +253,50 @@ func (f *TMainForm) OnFormCreate(sender vcl.IObject) {
|
|||||||
f.queryResult.BorderSpacing().SetLeft(MY_SPACING)
|
f.queryResult.BorderSpacing().SetLeft(MY_SPACING)
|
||||||
f.queryResult.BorderSpacing().SetRight(MY_SPACING)
|
f.queryResult.BorderSpacing().SetRight(MY_SPACING)
|
||||||
f.queryResult.BorderSpacing().SetBottom(MY_SPACING)
|
f.queryResult.BorderSpacing().SetBottom(MY_SPACING)
|
||||||
|
|
||||||
|
f.none = &noLoadedDatabase{}
|
||||||
|
f.OnNavChange(f, nil) // calls f.none.RenderForNav and sets up status bar content
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnMnuFileOpenClick(sender vcl.IObject) {
|
func (f *TMainForm) OnMnuFileBoltNewClick(sender vcl.IObject) {
|
||||||
|
dlg := vcl.NewSaveDialog(f)
|
||||||
|
dlg.SetTitle("Save database as...")
|
||||||
|
dlg.SetFilter("Bolt database|*.db|All files|*.*")
|
||||||
|
ret := dlg.Execute() // Fake blocking
|
||||||
|
if ret {
|
||||||
|
f.boltAddDatabaseFromFile(dlg.FileName(), false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFileBoltOpenClick(sender vcl.IObject) {
|
||||||
dlg := vcl.NewOpenDialog(f)
|
dlg := vcl.NewOpenDialog(f)
|
||||||
dlg.SetTitle("Select a database file...")
|
dlg.SetTitle("Select a database file...")
|
||||||
dlg.SetFilter("Bolt database|*.db|All files|*.*")
|
dlg.SetFilter("Bolt database|*.db|All files|*.*")
|
||||||
ret := dlg.Execute() // Fake blocking
|
ret := dlg.Execute() // Fake blocking
|
||||||
if ret {
|
if ret {
|
||||||
f.boltAddDatabaseFromFile(dlg.FileName())
|
f.boltAddDatabaseFromFile(dlg.FileName(), false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFileBoltOpenReadonlyClick(sender vcl.IObject) {
|
||||||
|
dlg := vcl.NewOpenDialog(f)
|
||||||
|
dlg.SetTitle("Select a database file...")
|
||||||
|
dlg.SetFilter("Bolt database|*.db|All files|*.*")
|
||||||
|
ret := dlg.Execute() // Fake blocking
|
||||||
|
if ret {
|
||||||
|
f.boltAddDatabaseFromFile(dlg.FileName(), true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnMnuFileSqliteOpenClick(sender vcl.IObject) {
|
func (f *TMainForm) OnMnuFileSqliteOpenClick(sender vcl.IObject) {
|
||||||
|
cliDriver := f.SQLiteUseCliDriver.Checked()
|
||||||
|
|
||||||
dlg := vcl.NewOpenDialog(f)
|
dlg := vcl.NewOpenDialog(f)
|
||||||
dlg.SetTitle("Select a database file...")
|
dlg.SetTitle("Select a database file...")
|
||||||
dlg.SetFilter("SQLite database|*.db;*.db3;*.sqlite;*.sqlite3|All files|*.*")
|
dlg.SetFilter("SQLite database|*.db;*.db3;*.sqlite;*.sqlite3|All files|*.*")
|
||||||
ret := dlg.Execute() // Fake blocking
|
ret := dlg.Execute() // Fake blocking
|
||||||
if ret {
|
if ret {
|
||||||
f.sqliteAddDatabaseFromFile(dlg.FileName())
|
f.sqliteAddDatabaseFromFile(dlg.FileName(), cliDriver)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,14 +309,177 @@ func (f *TMainForm) OnMnuFileBadgerOpenClick(sender vcl.IObject) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFileBadgerMemoryClick(sender vcl.IObject) {
|
||||||
|
f.badgerAddDatabaseFromMemory()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFilePebbleOpenClick(sender vcl.IObject) {
|
||||||
|
dlg := vcl.NewSelectDirectoryDialog(f)
|
||||||
|
dlg.SetTitle("Select a database directory...")
|
||||||
|
ret := dlg.Execute() // Fake blocking
|
||||||
|
if ret {
|
||||||
|
f.pebbleAddDatabaseFrom(dlg.FileName(), nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFilePebbleMemoryClick(sender vcl.IObject) {
|
||||||
|
f.pebbleAddDatabaseFromMemory()
|
||||||
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnMnuFileSqliteMemoryClick(sender vcl.IObject) {
|
func (f *TMainForm) OnMnuFileSqliteMemoryClick(sender vcl.IObject) {
|
||||||
f.sqliteAddDatabaseFromFile(`:memory:`)
|
cliDriver := f.SQLiteUseCliDriver.Checked()
|
||||||
|
|
||||||
|
f.sqliteAddDatabaseFromFile(`:memory:`, cliDriver)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuFileRedisConnectClick(sender vcl.IObject) {
|
||||||
|
|
||||||
|
var child *TRedisConnectionDialog
|
||||||
|
vcl.Application.CreateForm(&child)
|
||||||
|
defer child.Free()
|
||||||
|
|
||||||
|
var ret TRedisConnectionDialogResult
|
||||||
|
child.CustomReturn = &ret
|
||||||
|
|
||||||
|
mr := child.ShowModal() // Fake blocking
|
||||||
|
if mr != types.MrOk || ret == nil {
|
||||||
|
return // Cancelled
|
||||||
|
}
|
||||||
|
|
||||||
|
// Connect
|
||||||
|
f.redisConnect(ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnMnuFileExitClick(sender vcl.IObject) {
|
func (f *TMainForm) OnMnuFileExitClick(sender vcl.IObject) {
|
||||||
f.Close()
|
f.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMnuHelpHomepage(sender vcl.IObject) {
|
||||||
|
err := browser.OpenURL(HOMEPAGE_URL)
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage("Opening browser: " + err.Error())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnMenuHelpVersion(sender vcl.IObject) {
|
||||||
|
|
||||||
|
bi, ok := debug.ReadBuildInfo()
|
||||||
|
if !ok {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
info := "This version of " + APPNAME + " was compiled with:\n"
|
||||||
|
for _, dep := range bi.Deps {
|
||||||
|
|
||||||
|
// Filter to only interesting things
|
||||||
|
switch dep.Path {
|
||||||
|
case `github.com/cockroachdb/pebble`,
|
||||||
|
`github.com/dgraph-io/badger/v4`,
|
||||||
|
`github.com/mattn/go-sqlite3`,
|
||||||
|
`github.com/redis/go-redis/v9`,
|
||||||
|
`go.etcd.io/bbolt`,
|
||||||
|
`modernc.org/sqlite`:
|
||||||
|
info += fmt.Sprintf("- %s %s\n", dep.Path, dep.Version)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
vcl.ShowMessage(info)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnNavContextPopup(sender vcl.IObject, mousePos types.TPoint, handled *bool) {
|
||||||
|
*handled = true
|
||||||
|
|
||||||
|
curItem := f.Buckets.Selected()
|
||||||
|
if curItem == nil {
|
||||||
|
// Nothing is selected at all
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
ndata := (*navData)(curItem.Data())
|
||||||
|
|
||||||
|
mnu := vcl.NewPopupMenu(f.Buckets)
|
||||||
|
mnu.SetImages(f.ImageList)
|
||||||
|
|
||||||
|
mnuRefresh := vcl.NewMenuItem(mnu)
|
||||||
|
mnuRefresh.SetCaption("Refresh")
|
||||||
|
mnuRefresh.SetImageIndex(imgArrowRefresh)
|
||||||
|
mnuRefresh.SetOnClick(func(sender vcl.IObject) { f.OnNavContextRefresh(curItem, ndata) })
|
||||||
|
mnu.Items().Add(mnuRefresh)
|
||||||
|
|
||||||
|
// Check what custom actions the ndata->db itself wants to add
|
||||||
|
actions, err := ndata.ld.NavContext(ndata)
|
||||||
|
if err != nil {
|
||||||
|
vcl.ShowMessage(err.Error())
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(actions) > 0 {
|
||||||
|
mnuSep := vcl.NewMenuItem(mnu)
|
||||||
|
mnuSep.SetCaption("-")
|
||||||
|
mnu.Items().Add(mnuSep)
|
||||||
|
|
||||||
|
for _, action := range actions {
|
||||||
|
mnuAction := vcl.NewMenuItem(mnu)
|
||||||
|
mnuAction.SetCaption(action.Name)
|
||||||
|
cb := action.Callback // Copy to avoid reuse of loop variable
|
||||||
|
mnuAction.SetOnClick(func(sender vcl.IObject) {
|
||||||
|
cb(ndata)
|
||||||
|
f.OnNavContextRefresh(curItem, ndata)
|
||||||
|
})
|
||||||
|
mnu.Items().Add(mnuAction)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if curItem.Parent() == nil {
|
||||||
|
// Top-level item (database connection). Allow closing by right-click.
|
||||||
|
mnuSep := vcl.NewMenuItem(mnu)
|
||||||
|
mnuSep.SetCaption("-")
|
||||||
|
mnu.Items().Add(mnuSep)
|
||||||
|
|
||||||
|
mnuClose := vcl.NewMenuItem(mnu)
|
||||||
|
mnuClose.SetCaption("Close")
|
||||||
|
mnuClose.SetOnClick(f.OnNavContextClose)
|
||||||
|
mnuClose.SetImageIndex(imgDatabaseDelete)
|
||||||
|
mnu.Items().Add(mnuClose)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show popup
|
||||||
|
mnu.Popup2()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnNavContextRefresh(item *vcl.TTreeNode, ndata *navData) {
|
||||||
|
isExpanded := item.Expanded()
|
||||||
|
|
||||||
|
// Reset nav node to 'unloaded' state
|
||||||
|
item.Collapse(true)
|
||||||
|
item.DeleteChildren()
|
||||||
|
item.SetHasChildren(true)
|
||||||
|
ndata.childrenLoaded = false
|
||||||
|
|
||||||
|
// Trigger a virtual reload
|
||||||
|
item.Expand(false) // Calls OnNavExpanding to dynamically detect children
|
||||||
|
|
||||||
|
// Restore previous gui state
|
||||||
|
item.SetExpanded(isExpanded)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) OnNavContextClose(sender vcl.IObject) {
|
||||||
|
curItem := f.Buckets.Selected()
|
||||||
|
if curItem == nil {
|
||||||
|
return // Nothing selected (shouldn't happen)
|
||||||
|
}
|
||||||
|
if curItem.Parent() != nil {
|
||||||
|
return // Selection is not top-level DB connection (shouldn't happen)
|
||||||
|
}
|
||||||
|
|
||||||
|
ndata := (*navData)(curItem.Data())
|
||||||
|
|
||||||
|
ndata.ld.Close()
|
||||||
|
curItem.Delete()
|
||||||
|
|
||||||
|
// n.b. This triggers OnNavChange, which will then re-render from noLoadedDatabase{}
|
||||||
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
|
func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
|
||||||
// If query tab is not selected, switch to it, but do not exec
|
// If query tab is not selected, switch to it, but do not exec
|
||||||
if f.Tabs.ActivePageIndex() != 2 {
|
if f.Tabs.ActivePageIndex() != 2 {
|
||||||
@@ -245,6 +487,11 @@ func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
queryString := f.queryInput.Text()
|
||||||
|
if f.queryInput.SelLength() > 0 {
|
||||||
|
queryString = f.queryInput.SelText() // Just the selected text
|
||||||
|
}
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
node := f.Buckets.Selected()
|
node := f.Buckets.Selected()
|
||||||
if node == nil {
|
if node == nil {
|
||||||
@@ -253,22 +500,23 @@ func (f *TMainForm) OnQueryExecute(sender vcl.IObject) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ndata := (*navData)(node.Data())
|
ndata := (*navData)(node.Data())
|
||||||
ndata.ld.ExecQuery(f.queryInput.Text(), f.queryResult)
|
ndata.ld.ExecQuery(queryString, f.queryResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnNavChange(sender vcl.IObject, node *vcl.TTreeNode) {
|
func (f *TMainForm) OnNavChange(sender vcl.IObject, node *vcl.TTreeNode) {
|
||||||
|
|
||||||
if node.Data() == nil {
|
var ld loadedDatabase = f.none
|
||||||
vcl.ShowMessage("unexpected nil data")
|
var ndata *navData = nil
|
||||||
return
|
|
||||||
|
if node != nil && node.Data() != nil {
|
||||||
|
ndata = (*navData)(node.Data())
|
||||||
|
ld = ndata.ld
|
||||||
}
|
}
|
||||||
|
|
||||||
ndata := (*navData)(node.Data())
|
ld.RenderForNav(f, ndata) // Handover to the database type's own renderer function
|
||||||
|
|
||||||
ndata.ld.RenderForNav(f, ndata) // Handover to the database type's own renderer function
|
|
||||||
|
|
||||||
// We're in charge of common status bar text updates
|
// We're in charge of common status bar text updates
|
||||||
f.StatusBar.SetSimpleText(ndata.ld.DisplayName() + " | " + ndata.ld.DriverName())
|
f.StatusBar.SetSimpleText(ld.DisplayName() + " | " + ld.DriverName())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *TMainForm) OnNavExpanding(sender vcl.IObject, node *vcl.TTreeNode, allowExpansion *bool) {
|
func (f *TMainForm) OnNavExpanding(sender vcl.IObject, node *vcl.TTreeNode, allowExpansion *bool) {
|
||||||
@@ -281,25 +529,67 @@ func (f *TMainForm) OnNavExpanding(sender vcl.IObject, node *vcl.TTreeNode, allo
|
|||||||
|
|
||||||
ndata := (*navData)(node.Data())
|
ndata := (*navData)(node.Data())
|
||||||
|
|
||||||
if ndata.childrenLoaded {
|
err := f.NavLoadChildren(node, ndata)
|
||||||
|
if err != nil {
|
||||||
|
|
||||||
|
if errors.Is(err, ErrNavNotExist) {
|
||||||
|
// The nav entry has been deleted.
|
||||||
|
// This is a normal thing to happen when e.g. deleting a table
|
||||||
|
// f.StatusBar.SetSimpleText(err.Error()) // Just gets overridden when the selection changes
|
||||||
|
node.Delete()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
vcl.ShowMessage(err.Error())
|
||||||
|
*allowExpansion = false // Permanently block
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*allowExpansion = node.HasChildren()
|
||||||
|
|
||||||
|
// While we're here - preload one single level deep (not any deeper)
|
||||||
|
|
||||||
|
if node.HasChildren() {
|
||||||
|
|
||||||
|
// This node has children that we haven't processed. Process them now
|
||||||
|
cc := node.GetFirstChild()
|
||||||
|
|
||||||
|
for {
|
||||||
|
ndataChild := (*navData)(cc.Data())
|
||||||
|
if ndataChild.childrenLoaded {
|
||||||
|
break // We always do them together, so if one's done, no need to keep looking
|
||||||
|
}
|
||||||
|
|
||||||
|
f.NavLoadChildren(cc, ndataChild)
|
||||||
|
|
||||||
|
cc = cc.GetNextSibling()
|
||||||
|
if cc == nil {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TMainForm) NavLoadChildren(node *vcl.TTreeNode, ndata *navData) error {
|
||||||
|
|
||||||
|
if ndata.childrenLoaded {
|
||||||
|
return nil // Nothing to do
|
||||||
|
}
|
||||||
|
|
||||||
// Find the child buckets from this point under the element
|
// Find the child buckets from this point under the element
|
||||||
nextBucketNames, err := ndata.ld.NavChildren(ndata)
|
nextBucketNames, err := ndata.ld.NavChildren(ndata)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
vcl.ShowMessage(fmt.Sprintf("Failed to find child buckets under %q: %s", strings.Join(ndata.bucketPath, `/`), err.Error()))
|
return fmt.Errorf("Failed to find child buckets under %q: %w", strings.Join(ndata.bucketPath, `/`), err)
|
||||||
*allowExpansion = false
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ndata.childrenLoaded = true // don't repeat this work
|
ndata.childrenLoaded = true // don't repeat this work
|
||||||
|
|
||||||
if len(nextBucketNames) == 0 {
|
if len(nextBucketNames) == 0 {
|
||||||
node.SetHasChildren(false)
|
node.SetHasChildren(false)
|
||||||
*allowExpansion = false
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
node.SetHasChildren(true)
|
||||||
|
|
||||||
// Populate LCL child nodes
|
// Populate LCL child nodes
|
||||||
for _, bucketName := range nextBucketNames {
|
for _, bucketName := range nextBucketNames {
|
||||||
@@ -319,7 +609,7 @@ func (f *TMainForm) OnNavExpanding(sender vcl.IObject, node *vcl.TTreeNode, allo
|
|||||||
|
|
||||||
ndata.ld.Keepalive(navData)
|
ndata.ld.Keepalive(navData)
|
||||||
}
|
}
|
||||||
|
|
||||||
*allowExpansion = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
5
platform_windows.go
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
_ "github.com/ying32/govcl/pkgs/winappres" // Extra _syso files for Windows
|
||||||
|
)
|
||||||
130
redisConnectionDialog.go
Normal file
@@ -0,0 +1,130 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
|
||||||
|
"github.com/redis/go-redis/v9"
|
||||||
|
"github.com/ying32/govcl/vcl"
|
||||||
|
"github.com/ying32/govcl/vcl/types"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TRedisConnectionDialogResult = *redis.Options
|
||||||
|
|
||||||
|
type TRedisConnectionDialog struct {
|
||||||
|
*vcl.TForm
|
||||||
|
|
||||||
|
Address *vcl.TEdit
|
||||||
|
Port *vcl.TSpinEdit
|
||||||
|
Password *vcl.TEdit
|
||||||
|
IsResp3Protocol *vcl.TCheckBox
|
||||||
|
ConnectBtn *vcl.TButton
|
||||||
|
|
||||||
|
// CustomReturn must be set by the caller to a *redis.Options variable.
|
||||||
|
CustomReturn *TRedisConnectionDialogResult // nil = no CustomReturn/cancelled dialog
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TRedisConnectionDialog) OnFormCreate(sender vcl.IObject) {
|
||||||
|
|
||||||
|
f.SetCaption("Connect to Redis...")
|
||||||
|
f.ScreenCenter()
|
||||||
|
f.SetWidth(320)
|
||||||
|
f.SetHeight(160)
|
||||||
|
|
||||||
|
// row 1
|
||||||
|
|
||||||
|
row1 := vcl_row(f, 1)
|
||||||
|
|
||||||
|
lblAddress := vcl.NewLabel(row1)
|
||||||
|
lblAddress.SetParent(row1)
|
||||||
|
lblAddress.SetCaption("Address:")
|
||||||
|
lblAddress.SetAlign(types.AlLeft)
|
||||||
|
lblAddress.SetLayout(types.TlCenter)
|
||||||
|
lblAddress.SetLeft(1)
|
||||||
|
lblAddress.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
f.Address = vcl.NewEdit(row1)
|
||||||
|
f.Address.SetParent(row1)
|
||||||
|
f.Address.SetAlign(types.AlClient) // grow AlLeft)
|
||||||
|
f.Address.SetWidth(MY_WIDTH)
|
||||||
|
f.Address.SetLeft(2)
|
||||||
|
f.Address.SetText("127.0.0.1")
|
||||||
|
f.Address.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
lblPort := vcl.NewLabel(row1)
|
||||||
|
lblPort.SetParent(row1)
|
||||||
|
lblPort.SetCaption(":")
|
||||||
|
lblPort.SetAlign(types.AlRight)
|
||||||
|
lblPort.SetLayout(types.TlCenter)
|
||||||
|
lblPort.SetLeft(0)
|
||||||
|
lblPort.SetAutoSize(true)
|
||||||
|
lblPort.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
f.Port = vcl.NewSpinEdit(row1)
|
||||||
|
f.Port.SetParent(row1)
|
||||||
|
f.Port.SetMinValue(1)
|
||||||
|
f.Port.SetMaxValue(65535)
|
||||||
|
f.Port.SetValue(6379) // Redis default port
|
||||||
|
f.Port.SetAlign(types.AlRight)
|
||||||
|
f.Port.SetLeft(1000)
|
||||||
|
f.Port.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
// row 2
|
||||||
|
|
||||||
|
row2 := vcl_row(f, 2)
|
||||||
|
|
||||||
|
lblPassword := vcl.NewLabel(row2)
|
||||||
|
lblPassword.SetParent(row2)
|
||||||
|
lblPassword.SetCaption("Password:")
|
||||||
|
lblPassword.SetAlign(types.AlLeft)
|
||||||
|
lblPassword.SetLayout(types.TlCenter)
|
||||||
|
lblPassword.SetLeft(1)
|
||||||
|
lblPassword.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
f.Password = vcl.NewEdit(row2)
|
||||||
|
f.Password.SetParent(row2)
|
||||||
|
f.Password.SetAlign(types.AlClient) // grow
|
||||||
|
f.Password.SetLeft(2)
|
||||||
|
f.Password.SetWidth(MY_WIDTH)
|
||||||
|
f.Password.SetPasswordChar(uint16('*'))
|
||||||
|
f.Password.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
// row 3
|
||||||
|
|
||||||
|
f.IsResp3Protocol = vcl.NewCheckBox(f)
|
||||||
|
f.IsResp3Protocol.SetParent(f)
|
||||||
|
f.IsResp3Protocol.SetCaption("Use RESP v3 protocol")
|
||||||
|
f.IsResp3Protocol.SetChecked(true)
|
||||||
|
f.IsResp3Protocol.SetAlign(types.AlTop)
|
||||||
|
f.IsResp3Protocol.SetTop(3)
|
||||||
|
f.IsResp3Protocol.BorderSpacing().SetAround(MY_SPACING)
|
||||||
|
|
||||||
|
// buttons
|
||||||
|
|
||||||
|
row4 := vcl_row(f, 4)
|
||||||
|
row4.SetAlign(types.AlBottom)
|
||||||
|
|
||||||
|
f.ConnectBtn = vcl.NewButton(row4)
|
||||||
|
f.ConnectBtn.SetParent(row4)
|
||||||
|
f.ConnectBtn.SetAlign(types.AlRight)
|
||||||
|
f.ConnectBtn.SetCaption("Connect")
|
||||||
|
f.ConnectBtn.SetOnClick(f.OnConnectBtnClick)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f *TRedisConnectionDialog) OnConnectBtnClick(sender vcl.IObject) {
|
||||||
|
|
||||||
|
ret := &redis.Options{
|
||||||
|
Addr: fmt.Sprintf("%s:%d", f.Address.Text(), f.Port.Value()),
|
||||||
|
Password: f.Password.Text(),
|
||||||
|
DB: 0, // Start off with default DB, but, we will browse them ourselves
|
||||||
|
Protocol: 2, // RESP2
|
||||||
|
}
|
||||||
|
|
||||||
|
if f.IsResp3Protocol.Checked() {
|
||||||
|
ret.Protocol = 3 // RESP3
|
||||||
|
}
|
||||||
|
|
||||||
|
// Success.
|
||||||
|
// Fill in target pointer and close dialog with "MrOk" sentinel
|
||||||
|
*f.CustomReturn = ret
|
||||||
|
f.SetModalResult(types.MrOk)
|
||||||
|
}
|
||||||
314
sqliteclidriver/sqliteclidriver.go
Normal file
@@ -0,0 +1,314 @@
|
|||||||
|
// sqliteclidriver is a database/sql driver for SQLite implemented on top of
|
||||||
|
// the sqlite3 command-line tool. This allows it to be used over remote SSH
|
||||||
|
// connections.
|
||||||
|
//
|
||||||
|
// Functionality is limited.
|
||||||
|
//
|
||||||
|
// Known caveats:
|
||||||
|
// - Lexer only understands ? if it's separated by spaces
|
||||||
|
// - Bad error handling
|
||||||
|
// - Few supported types
|
||||||
|
// - Has to escape parameters for CLI instead of preparing them, so not safe for untrusted usage
|
||||||
|
// - No context handling
|
||||||
|
// - No way to configure sqlite3 command line path
|
||||||
|
package sqliteclidriver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bytes"
|
||||||
|
"context"
|
||||||
|
"database/sql"
|
||||||
|
"database/sql/driver"
|
||||||
|
"encoding/json"
|
||||||
|
"errors"
|
||||||
|
"fmt"
|
||||||
|
"io"
|
||||||
|
"os/exec"
|
||||||
|
"yvbolt/lexer"
|
||||||
|
)
|
||||||
|
|
||||||
|
var ErrNotSupported = errors.New("Not supported")
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCDriver struct{}
|
||||||
|
|
||||||
|
func (d *SCDriver) Open(connectionString string) (driver.Conn, error) {
|
||||||
|
// TODO support custom binpath from our connection string
|
||||||
|
|
||||||
|
cmd := exec.Command(`/usr/bin/sqlite3`, `-noheader`, `-json`, connectionString) // n.b. doesn't support `--`
|
||||||
|
|
||||||
|
pw, err := cmd.StdinPipe()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
pr, err := cmd.StdoutPipe()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
pe, err := cmd.StderrPipe()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
err = cmd.Start()
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return &SCConn{
|
||||||
|
stdout: pr,
|
||||||
|
stderr: pe,
|
||||||
|
w: pw,
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ driver.Driver = &SCDriver{} // interface assertion
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
sql.Register("sqliteclidriver", &SCDriver{})
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCConnector struct {
|
||||||
|
connectionString string
|
||||||
|
driver *SCDriver
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SCConnector) Connect(context.Context) (driver.Conn, error) {
|
||||||
|
return c.driver.Open(c.connectionString)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SCConnector) Driver() driver.Driver {
|
||||||
|
return c.driver
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ driver.Connector = &SCConnector{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCConn struct {
|
||||||
|
stdout io.Reader
|
||||||
|
stderr io.Reader
|
||||||
|
w io.WriteCloser
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SCConn) Prepare(query string) (driver.Stmt, error) {
|
||||||
|
f, err := lexer.Fields(query) // Rely on the query's escaping still being present
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(f) == 0 {
|
||||||
|
return nil, errors.New("Empty query")
|
||||||
|
}
|
||||||
|
|
||||||
|
return &SCStmt{
|
||||||
|
conn: c,
|
||||||
|
query: f,
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SCConn) Close() error {
|
||||||
|
return c.w.Close()
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c *SCConn) Begin() (driver.Tx, error) {
|
||||||
|
return nil, ErrNotSupported
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ driver.Conn = &SCConn{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCStmt struct {
|
||||||
|
conn *SCConn
|
||||||
|
query []string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *SCStmt) Close() error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *SCStmt) NumInput() int {
|
||||||
|
var ct int = 0
|
||||||
|
for _, token := range s.query {
|
||||||
|
if token == `?` {
|
||||||
|
ct++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ct
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *SCStmt) buildQuery(args []driver.Value) ([]byte, error) {
|
||||||
|
|
||||||
|
// Embed query params
|
||||||
|
// WARNING: Not secure against injection? That's not a security boundary
|
||||||
|
// for the purposes of yvbolt, but maybe for other package users
|
||||||
|
|
||||||
|
var querybuilder bytes.Buffer
|
||||||
|
|
||||||
|
for _, token := range s.query {
|
||||||
|
if token == `?` {
|
||||||
|
if len(args) == 0 {
|
||||||
|
return nil, errors.New("Not enough arguments")
|
||||||
|
}
|
||||||
|
|
||||||
|
arg := args[0]
|
||||||
|
args = args[1:]
|
||||||
|
|
||||||
|
// Format the argument
|
||||||
|
if szarg, ok := arg.(string); ok {
|
||||||
|
querybuilder.WriteString(lexer.Quote(szarg))
|
||||||
|
|
||||||
|
} else if intarg, ok := arg.(int64); ok {
|
||||||
|
querybuilder.WriteString(fmt.Sprintf("%d", intarg))
|
||||||
|
|
||||||
|
} else if flarg, ok := arg.(float64); ok {
|
||||||
|
querybuilder.WriteString(fmt.Sprintf("%f", flarg))
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return nil, fmt.Errorf("Parameter %v has unsupported type", arg)
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
// Normal token
|
||||||
|
querybuilder.WriteString(token)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Whitespace
|
||||||
|
querybuilder.WriteByte(' ')
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(args) != 0 {
|
||||||
|
return nil, errors.New("Too many arguments")
|
||||||
|
}
|
||||||
|
|
||||||
|
// Swap final whitespace for a \n
|
||||||
|
submit := querybuilder.Bytes()
|
||||||
|
submit[len(submit)-1] = '\n'
|
||||||
|
|
||||||
|
return submit, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *SCStmt) Exec(args []driver.Value) (driver.Result, error) {
|
||||||
|
|
||||||
|
submit, err := s.buildQuery(args)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = io.CopyN(s.conn.w, bytes.NewReader(submit), int64(len(submit)))
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("Write: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Drain stdout
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// Drain stderr
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
return &SCResult{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *SCStmt) Query(args []driver.Value) (driver.Rows, error) {
|
||||||
|
|
||||||
|
submit, err := s.buildQuery(args)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
_, err = io.CopyN(s.conn.w, bytes.NewReader(submit), int64(len(submit)))
|
||||||
|
if err != nil {
|
||||||
|
return nil, fmt.Errorf("Write: %w", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
// We expect some kind of thing on stdout
|
||||||
|
ret := []map[string]any{}
|
||||||
|
err = json.NewDecoder(s.conn.stdout).Decode(&ret)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
// Drain stderr
|
||||||
|
// TODO
|
||||||
|
|
||||||
|
// Come up with a canonical ordering for the columns after json.NewDecoder
|
||||||
|
// wiped it out for us
|
||||||
|
// FIXME use a different json parsing library
|
||||||
|
|
||||||
|
var columnNames []string
|
||||||
|
if len(ret) > 0 {
|
||||||
|
for k, _ := range ret[0] {
|
||||||
|
columnNames = append(columnNames, k)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
return &SCRows{
|
||||||
|
idx: 0,
|
||||||
|
columns: columnNames,
|
||||||
|
data: ret,
|
||||||
|
}, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ driver.Stmt = &SCStmt{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCResult struct{}
|
||||||
|
|
||||||
|
func (r *SCResult) LastInsertId() (int64, error) {
|
||||||
|
return 0, ErrNotSupported
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *SCResult) RowsAffected() (int64, error) {
|
||||||
|
return 0, ErrNotSupported
|
||||||
|
}
|
||||||
|
|
||||||
|
var _ driver.Result = &SCResult{} // interface assertion
|
||||||
|
|
||||||
|
//
|
||||||
|
|
||||||
|
type SCRows struct {
|
||||||
|
idx int
|
||||||
|
columns []string
|
||||||
|
data []map[string]any
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *SCRows) Columns() []string {
|
||||||
|
return r.columns
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *SCRows) Close() error {
|
||||||
|
r.idx = 0
|
||||||
|
r.data = nil
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r *SCRows) Next(dest []driver.Value) error {
|
||||||
|
if r.idx >= len(r.data) {
|
||||||
|
return io.EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
if len(dest) != len(r.data[r.idx]) {
|
||||||
|
return errors.New("Wrong number of arguments to Next()")
|
||||||
|
}
|
||||||
|
|
||||||
|
for i := 0; i < len(dest); i++ {
|
||||||
|
cell, ok := r.data[r.idx][r.columns[i]]
|
||||||
|
if !ok {
|
||||||
|
return fmt.Errorf("Result row %d is missing column #%d %q, unexpected", r.idx, i, r.columns[i])
|
||||||
|
}
|
||||||
|
|
||||||
|
dest[i] = cell
|
||||||
|
}
|
||||||
|
|
||||||
|
r.idx++
|
||||||
|
return nil
|
||||||
|
}
|
||||||
57
sqliteclidriver/sqliteclidriver_test.go
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
package sqliteclidriver
|
||||||
|
|
||||||
|
import (
|
||||||
|
"database/sql"
|
||||||
|
"testing"
|
||||||
|
|
||||||
|
"github.com/stretchr/testify/require"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestSqliteCliDriver(t *testing.T) {
|
||||||
|
db, err := sql.Open("sqliteclidriver", ":memory:")
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
_, err = db.Exec(`CREATE TABLE my_test_table ( id INTEGER PRIMARY KEY, extra TEXT NOT NULL );`)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
_, err = db.Exec(`INSERT INTO my_test_table (id, extra) VALUES ( ? , ? ), ( ? , ? );`, 1337, "abcdef", 9001, "whoop")
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
// Repeat this part to ensure we can make followup queries on the same connection
|
||||||
|
for i := 0; i < 3; i++ {
|
||||||
|
|
||||||
|
res, err := db.Query(`SELECT * FROM my_test_table ORDER BY id ASC;`)
|
||||||
|
require.NoError(t, err)
|
||||||
|
|
||||||
|
cols, err := res.Columns()
|
||||||
|
require.NoError(t, err)
|
||||||
|
require.EqualValues(t, cols, []string{"id", "extra"})
|
||||||
|
|
||||||
|
var rowCount int = 0
|
||||||
|
|
||||||
|
for res.Next() {
|
||||||
|
rowCount++
|
||||||
|
|
||||||
|
var idVal int
|
||||||
|
var extraVal string
|
||||||
|
err = res.Scan(&idVal, &extraVal)
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
|
||||||
|
switch rowCount {
|
||||||
|
case 1:
|
||||||
|
require.EqualValues(t, 1337, idVal)
|
||||||
|
require.EqualValues(t, "abcdef", extraVal)
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
require.EqualValues(t, 9001, idVal)
|
||||||
|
require.EqualValues(t, "whoop", extraVal)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
require.Equal(t, rowCount, 2)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
11
util_types.go
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
// box_interface creates a slice where all elements of the input slice are boxed
|
||||||
|
// in an interface{} type.
|
||||||
|
func box_interface[T any](input []T) []interface{} {
|
||||||
|
ret := make([]interface{}, 0, len(input))
|
||||||
|
for _, v := range input {
|
||||||
|
ret = append(ret, v)
|
||||||
|
}
|
||||||
|
return ret
|
||||||
|
}
|
||||||
51
util_vcl.go
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/ying32/govcl/vcl"
|
||||||
|
"github.com/ying32/govcl/vcl/types"
|
||||||
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
MY_SPACING = 6
|
||||||
|
MY_HEIGHT = 90
|
||||||
|
MY_WIDTH = 180
|
||||||
|
)
|
||||||
|
|
||||||
|
// vcl_row makes a TPanel row inside the target component.
|
||||||
|
func vcl_row(owner vcl.IWinControl, top int32) *vcl.TPanel {
|
||||||
|
|
||||||
|
r := vcl.NewPanel(owner)
|
||||||
|
r.SetParent(owner)
|
||||||
|
r.SetBorderStyle(types.BsNone)
|
||||||
|
r.SetBevelInner(types.BvNone)
|
||||||
|
r.SetBevelOuter(types.BvNone)
|
||||||
|
r.SetAlign(types.AlTop)
|
||||||
|
r.SetTop(top)
|
||||||
|
r.SetAutoSize(true)
|
||||||
|
|
||||||
|
return r
|
||||||
|
}
|
||||||
|
|
||||||
|
// vcl_menuitem makes a child TMenuItem inside the parent menu.
|
||||||
|
func vcl_menuitem(parent *vcl.TMenuItem, caption string, imageIndex int32, onClick vcl.TNotifyEvent) *vcl.TMenuItem {
|
||||||
|
m := vcl.NewMenuItem(parent)
|
||||||
|
m.SetCaption(caption)
|
||||||
|
if imageIndex != -1 {
|
||||||
|
m.SetImageIndex(imageIndex)
|
||||||
|
}
|
||||||
|
if onClick != nil {
|
||||||
|
m.SetOnClick(onClick)
|
||||||
|
}
|
||||||
|
parent.Add(m)
|
||||||
|
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
// vcl_menuseparator adds a separator to the parent TMenuItem.
|
||||||
|
func vcl_menuseparator(parent *vcl.TMenuItem) *vcl.TMenuItem {
|
||||||
|
s := vcl.NewMenuItem(parent)
|
||||||
|
s.SetCaption("-") // Creates separator
|
||||||
|
parent.Add(s)
|
||||||
|
|
||||||
|
return s
|
||||||
|
}
|
||||||
25
versions.go
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"runtime/debug"
|
||||||
|
)
|
||||||
|
|
||||||
|
var (
|
||||||
|
version_Pebble string
|
||||||
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
|
||||||
|
// ReadBuildInfo still works even with `-ldflags '-s -w'`.
|
||||||
|
mm, ok := debug.ReadBuildInfo()
|
||||||
|
if !ok {
|
||||||
|
panic("Missing build info")
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, dep := range mm.Deps {
|
||||||
|
switch dep.Path {
|
||||||
|
case "github.com/cockroachdb/pebble":
|
||||||
|
version_Pebble = dep.Version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||