-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hcaptcha verification feature
- Loading branch information
iczc
committed
Sep 14, 2023
1 parent
20f049d
commit 6bbfaf7
Showing
9 changed files
with
138 additions
and
48 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
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,23 +1,27 @@ | ||
package server | ||
|
||
type Config struct { | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
queueCap int | ||
network string | ||
symbol string | ||
httpPort int | ||
interval int | ||
payout int | ||
proxyCount int | ||
queueCap int | ||
hcaptchaSiteKey string | ||
hcaptchaSecret string | ||
} | ||
|
||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount, queueCap int) *Config { | ||
func NewConfig(network, symbol string, httpPort, interval, payout, proxyCount, queueCap int, hcaptchaSiteKey, hcaptchaSecret string) *Config { | ||
return &Config{ | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
queueCap: queueCap, | ||
network: network, | ||
symbol: symbol, | ||
httpPort: httpPort, | ||
interval: interval, | ||
payout: payout, | ||
proxyCount: proxyCount, | ||
queueCap: queueCap, | ||
hcaptchaSiteKey: hcaptchaSiteKey, | ||
hcaptchaSecret: hcaptchaSecret, | ||
} | ||
} |
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