Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorizationConfig ¶
type Config ¶
type Config struct { APIHost string `envconfig:"API_HOST" default:"http://localhost:8080/v1"` Port int `envconfig:"PORT" default:"8080"` Environment string `envconfig:"ENVIRONMENT" default:"dev"` EncryptionKey string `envconfig:"ENCRYPTION_KEY" required:"true"` MlflowConfig MlflowConfig DbConfig DatabaseConfig GitlabConfig GitlabConfig AuthorizationConfig AuthorizationConfig UI UIConfig OauthClientID string `envconfig:"OAUTH_CLIENT_ID"` SentryDSN string `envconfig:"SENTRY_DSN"` Teams []string `envconfig:"TEAM_LIST"` Streams []string `envconfig:"STREAM_LIST"` }
func InitConfigEnv ¶
func (*Config) ListenAddress ¶
type DatabaseConfig ¶
type DatabaseConfig struct { Host string `envconfig:"DATABASE_HOST" required:"true"` Port int `envconfig:"DATABASE_PORT" default:"5432"` User string `envconfig:"DATABASE_USER" required:"true"` Password string `envconfig:"DATABASE_PASSWORD" required:"true"` Database string `envconfig:"DATABASE_NAME" default:"mlp"` }
type GitlabConfig ¶
type GitlabConfig struct { Enabled bool `envconfig:"GITLAB_ENABLED" default:"false"` Host string `envconfig:"GITLAB_HOST"` ClientID string `envconfig:"GITLAB_CLIENT_ID"` ClientSecret string `envconfig:"GITLAB_CLIENT_SECRET"` RedirectURL string `envconfig:"GITLAB_REDIRECT_URL"` Scopes []string `envconfig:"GITLAB_OAUTH_SCOPES" default:"read_user"` }
func (*GitlabConfig) InitOauthConfig ¶
func (cfg *GitlabConfig) InitOauthConfig() (*oauth2.Config, error)
type MlflowConfig ¶
type MlflowConfig struct {
TrackingUrl string `envconfig:"MLFLOW_TRACKING_URL" required:"true"`
}
Click to show internal directories.
Click to hide internal directories.