-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update clickhouse config storage and use (#40)
- Loading branch information
1 parent
011cae5
commit adce864
Showing
4 changed files
with
20 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,14 @@ | ||
package config | ||
|
||
import "github.com/DIMO-Network/clickhouse-infra/pkg/connect/config" | ||
|
||
// Settings contains the application config. | ||
type Settings struct { | ||
Port int `yaml:"PORT"` | ||
MonPort int `yaml:"MON_PORT"` | ||
ClickHouseHost string `yaml:"CLICKHOUSE_HOST"` | ||
ClickHouseTCPPort int `yaml:"CLICKHOUSE_TCP_PORT"` | ||
ClickHouseUser string `yaml:"CLICKHOUSE_USER"` | ||
ClickHousePassword string `yaml:"CLICKHOUSE_PASSWORD"` | ||
ClickHouseDatabase string `yaml:"CLICKHOUSE_DATABASE"` | ||
TokenExchangeJWTKeySetURL string `yaml:"TOKEN_EXCHANGE_JWK_KEY_SET_URL"` | ||
TokenExchangeIssuer string `yaml:"TOKEN_EXCHANGE_ISSUER_URL"` | ||
VehicleNFTAddress string `yaml:"VEHICLE_NFT_ADDRESS"` | ||
MaxRequestDuration string `yaml:"MAX_REQUEST_DURATION"` | ||
Port int `yaml:"PORT"` | ||
MonPort int `yaml:"MON_PORT"` | ||
CLickhouse config.Settings `yaml:",inline"` | ||
TokenExchangeJWTKeySetURL string `yaml:"TOKEN_EXCHANGE_JWK_KEY_SET_URL"` | ||
TokenExchangeIssuer string `yaml:"TOKEN_EXCHANGE_ISSUER_URL"` | ||
VehicleNFTAddress string `yaml:"VEHICLE_NFT_ADDRESS"` | ||
MaxRequestDuration string `yaml:"MAX_REQUEST_DURATION"` | ||
} |
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