blackhogz
54fa5fb65a
Docker image use database location in WORKDIR.
...
Passes `--db ./data.db` to entrypoint `bashhub-server` as default
arguments to persist database files in docker volume /data.
2020-05-23 20:56:57 -07:00
Nick Sherron
23be9550f4
Merge pull request #14 from exic/patch-1
...
Add missing 'c' to .zshrc
2020-02-25 09:07:50 -05:00
Jonas
0a194fd475
Add missing 'c' to .zshrc
2020-02-25 14:54:58 +01:00
nicksherron
3c02bb5e70
internal/server: comment refactoring
2020-02-21 00:07:56 -05:00
nicksherron
bc3a02bd06
internal/server: fix null search response error
...
A command search with 0 results would return null and cause the client to throw an error because of invalid json.
For example, "bh 'some non-existent-command'" would respond with
"Sorry, an error occurred communicating with Bashhub. Response Code: 200"
A zero result response now returns {} which the bashhub-client doesn't complain about.
2020-02-19 14:48:27 -05:00
nicksherron
703567f19c
cmd/root: add runtime profiling
...
This adds trace, cpu and memory profiling to the root command. To use, set any of the environment variables BH_SERVER_DEBUG_TRACE, BH_SERVER_DEBUG_CPU, BH_SERVER_DEBUG_MEM to a file name and the coinciding profile will run until you interrupt or terminate the process. Use the go tool pprof to analyse the output file you set in the environment variable.
2020-02-19 14:30:19 -05:00
nicksherron
276abf37b0
Revert "internal/db: #9 add case insensitive search"
...
This reverts commit eeb43dfb
. While this change did successfully allow case insensitive searching, it also made regex matching of upper case letters not possible such as '^[A-Z]+$'.
This would have defeated the purpose of having regex in the first place so only an implementation of case insensitive searching that doesn't sacrifice regex functionality should be added.
2020-02-19 13:01:34 -05:00
nicksherron
eeb43dfbbe
internal/db: #9 add case insensitive search
2020-02-19 12:32:10 -05:00
nicksherron
66a5dc578c
remove AUTHORS.md since github already tracks contribs
2020-02-19 17:22:52 +00:00
nicksherron
c0674948e9
cmd/transfer_test: add postgres to transfer tests
...
Also converted function commandLookup in cmd/transfer to method
2020-02-19 04:02:58 -05:00
Nick Sherron
4f89182f85
Update issue templates
2020-02-19 00:27:59 -05:00
Nick Sherron
4e2476554e
Merge pull request #13 from machawk1/patch-1
...
Fix spelling in README
2020-02-17 07:49:02 -05:00
nicksherron
bfc9179729
cmd/transfer,cmd/server: make SessionID pointer so sql null doesn't panic and improve transfer performance
2020-02-17 07:00:20 -05:00
Mat Kelly
2db28195e2
Fix spelling in README
2020-02-16 21:26:21 -05:00
nicksherron
bc7aebe6a6
Merge branch 'tests'
2020-02-16 12:51:02 -05:00
nicksherron
88a7202807
travis fix
2020-02-16 12:37:58 -05:00
nicksherron
67cc6016ea
cmd,internal: add tests, remove unnecessary exports, transfer password prompt
2020-02-16 12:35:28 -05:00
nicksherron
27c57b37a9
server_test: status added; db: query refactor
2020-02-14 15:23:36 -05:00
nicksherron
629475e08f
added server_test helpers
2020-02-14 12:43:54 -05:00
nicksherron
14bae98d19
test/server_test: addes postgres tests
2020-02-14 08:54:32 -05:00
nicksherron
8ee357e2e7
test/server_test: addes postgres tests
2020-02-14 08:53:40 -05:00
nicksherron
ce4313b18e
test/server_test: first tests
2020-02-14 04:21:34 -05:00
Nick Sherron
79de0d7d49
Update README.md
2020-02-12 04:16:48 -05:00
nicksherron
1af500af14
README add gitter
2020-02-12 03:20:39 -05:00
nicksherron
7611c65454
README add gitter
2020-02-12 03:20:14 -05:00
Nick Sherron
7b7c65290b
Update README.md
2020-02-12 02:42:31 -05:00
nicksherron
5a15be867d
cmd/transfer: progress bar flag bool was setup wrong
2020-02-12 01:53:24 -05:00
Nick Sherron
7e04081402
Update README.md
2020-02-12 01:45:34 -05:00
Nick Sherron
b57df9dc45
Update README.md
2020-02-12 01:31:26 -05:00
Nick Sherron
28644d9360
Update README.md
2020-02-12 01:30:31 -05:00
nicksherron
8039a455b7
update README
2020-02-12 01:28:33 -05:00
nicksherron
b5381b2eab
cmd/transfer: recovery and retries for http requests
2020-02-12 00:50:21 -05:00
nicksherron
3d026eb239
internal/db: systemUpdate query fix
2020-02-11 23:09:36 -05:00
nicksherron
997806afc9
internal/db: use local time
2020-02-11 22:28:20 -05:00
nicksherron
ee1b0e183f
cmd/transfer: higher worker transfer error
2020-02-11 22:21:14 -05:00
nicksherron
a606897f71
added system patch endpoint and cmd/transfer: passes http.client to goroutines
2020-02-11 22:13:37 -05:00
nicksherron
980a975b63
internal/server and internal/db: if query fails return status with error
2020-02-11 20:27:43 -05:00
nicksherron
1bcb4147fa
internal/server: store user_id in jwt token
2020-02-11 20:22:42 -05:00
nicksherron
7fbf6026a4
merge feature-bhdownload
2020-02-11 19:57:13 -05:00
nicksherron
9f5b50eb87
merge feature-bhdownload
2020-02-11 19:39:33 -05:00
nicksherron
58c935f910
internal/db: import query fix
2020-02-11 18:34:13 -05:00
nicksherron
df7bc934d7
cmd/transfer: login logic figured out
2020-02-11 18:20:19 -05:00
nicksherron
6c2d854ee2
internal/db: reformat sql queries
2020-02-11 16:39:48 -05:00
nicksherron
4ce3705242
jwt secret refactor
2020-02-11 04:18:07 -05:00
nicksherron
21537c1d0b
jwt secret refactor
2020-02-11 04:07:59 -05:00
nicksherron
e01de338d8
working poc
2020-02-11 03:15:13 -05:00
nicksherron
88d920cd35
working poc
2020-02-11 01:30:34 -05:00
nicksherron
af61b5d388
requests working but query needs fixed
2020-02-11 00:15:11 -05:00
nicksherron
21351444c8
internal/db: don't filter bh commands
2020-02-10 17:36:08 -05:00
nicksherron
ae839c1ec4
status endpoint added
2020-02-10 17:05:55 -05:00