mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
feat: add stackdriver and json log options to coder server
(#5682)
This commit is contained in:
@ -45,6 +45,7 @@ type DeploymentConfig struct {
|
||||
UpdateCheck *DeploymentConfigField[bool] `json:"update_check" typescript:",notnull"`
|
||||
MaxTokenLifetime *DeploymentConfigField[time.Duration] `json:"max_token_lifetime" typescript:",notnull"`
|
||||
Swagger *SwaggerConfig `json:"swagger" typescript:",notnull"`
|
||||
Logging *LoggingConfig `json:"logging" typescript:",notnull"`
|
||||
}
|
||||
|
||||
type DERP struct {
|
||||
@ -155,6 +156,12 @@ type SwaggerConfig struct {
|
||||
Enable *DeploymentConfigField[bool] `json:"enable" typescript:",notnull"`
|
||||
}
|
||||
|
||||
type LoggingConfig struct {
|
||||
Human *DeploymentConfigField[string] `json:"human" typescript:",notnull"`
|
||||
JSON *DeploymentConfigField[string] `json:"json" typescript:",notnull"`
|
||||
Stackdriver *DeploymentConfigField[string] `json:"stackdriver" typescript:",notnull"`
|
||||
}
|
||||
|
||||
type Flaggable interface {
|
||||
string | time.Duration | bool | int | []string | []GitAuthConfig
|
||||
}
|
||||
|
Reference in New Issue
Block a user