-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f3c7197
commit 484bdc8
Showing
8 changed files
with
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
package model | ||
|
||
import "golang.org/x/time/rate" | ||
import ( | ||
mapset "github.com/deckarep/golang-set/v2" | ||
"golang.org/x/time/rate" | ||
) | ||
|
||
type ApiKeyModel struct { | ||
Disable bool `json:"disable"` | ||
ApiKey string `json:"api_key"` | ||
RateLimit rate.Limit `json:"rate_limit"` | ||
UserId int64 `json:"user_id"` | ||
NetWorkLimitEnable bool `json:"network_limit_enable"` | ||
DomainWhitelist []string `json:"domain_whitelist"` | ||
IPWhiteList []string `json:"ip_white_list"` | ||
PaymasterEnable bool `json:"paymaster_enable"` | ||
Erc20PaymasterEnable bool `json:"erc20_paymaster_enable"` | ||
ProjectSponsorPaymasterEnable bool `json:"project_sponsor_paymaster_enable"` | ||
UserPayPaymasterEnable bool `json:"user_pay_paymaster_enable"` | ||
Disable bool `json:"disable"` | ||
ApiKey string `json:"api_key"` | ||
RateLimit rate.Limit `json:"rate_limit"` | ||
UserId int64 `json:"user_id"` | ||
NetWorkLimitEnable bool `json:"network_limit_enable"` | ||
DomainWhitelist mapset.Set[string] `json:"domain_whitelist"` | ||
IPWhiteList mapset.Set[string] `json:"ip_white_list"` | ||
PaymasterEnable bool `json:"paymaster_enable"` | ||
Erc20PaymasterEnable bool `json:"erc20_paymaster_enable"` | ||
ProjectSponsorPaymasterEnable bool `json:"project_sponsor_paymaster_enable"` | ||
UserPayPaymasterEnable bool `json:"user_pay_paymaster_enable"` | ||
} |
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