Tie together the database-driven session handling with the worker and add relevant CLI comands (#370)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-09-19 00:18:17 -04:00
1 parent fd8ceb6cc4
commit 07a7e9750a
57 files changed
+2548 -826

No files matched your search

+3 -3
View File
@@ -14,7 +14,7 @@ const (
Delete Type = 5
Authenticate Type = 6
All Type = 7
Connect Type = 8
Authorize Type = 8
AddGrants Type = 9
RemoveGrants Type = 10
SetGrants Type = 11
@@ -43,7 +43,7 @@ var Map = map[string]Type{
Delete.String(): Delete,
Authenticate.String(): Authenticate,
All.String(): All,
Connect.String(): Connect,
Authorize.String(): Authorize,
AddGrants.String(): AddGrants,
RemoveGrants.String(): RemoveGrants,
SetGrants.String(): SetGrants,
@@ -74,7 +74,7 @@ func (a Type) String() string {
"delete",
"authenticate",
"*",
"connect",
"authorize",
"add-grants",
"remove-grants",
"set-grants",
+2 -2
View File
@@ -44,8 +44,8 @@ func TestAction(t *testing.T) {
want: "*",
},
{
action: Connect,
want: "connect",
action: Authorize,
want: "authorize",
},
{
action: AddGrants,