-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(underattack): custom datastore (#49)
* feat(underattack): custom datastore as part of migrating captcha-lite functionality to captcha * fix: mismatched swarm group id comparator * chore: rename DATABASE_URL to POSTGRES_URL for testing * test: pre set data for under attack
- Loading branch information
Showing
32 changed files
with
1,110 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ ENVIRONMENT= | |
BOT_TOKEN= | ||
SENTRY_DSN= | ||
REDIS_URL= | ||
DATABASE_URL= | ||
POSTGRES_URL= | ||
MONGO_URL= | ||
TZ= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
package captcha | ||
|
||
import ( | ||
"github.com/teknologi-umum/captcha/analytics" | ||
|
||
"github.com/allegro/bigcache/v3" | ||
tb "gopkg.in/telebot.v3" | ||
) | ||
|
||
// Dependencies contains the dependency injection struct for | ||
// methods in the captcha package. | ||
type Dependencies struct { | ||
Memory *bigcache.BigCache | ||
Bot *tb.Bot | ||
Analytics *analytics.Dependency | ||
TeknumID string | ||
Memory *bigcache.BigCache | ||
Bot *tb.Bot | ||
TeknumGroupID int64 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.