solid

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootURL     string `mapstructure:"root_url"`
	FrontendURL string `mapstructure:"frontend_url"`
	Prod        bool   `mapstructure:"prod"`

	APIKeyAccess         bool     `mapstructure:"api_key_access"`
	GoogleClientID       string   `mapstructure:"google_client_id"`
	GoogleSecretID       string   `mapstructure:"google_secret_id"`
	GoogleAllowedDomains []string `mapstructure:"google_allowed_domains"`

	APIPort  string `mapstructure:"api_port"`
	GrpcPort string `mapstructure:"grpc_port"`

	RedisAddr     string `mapstructure:"redis_addr"`
	RedisPassword string `mapstructure:"redis_password"`
	RedisDB       int    `mapstructure:"redis_db"`

	S3Endpoint string `mapstructure:"s3_endpoint"`
	S3Key      string `mapstructure:"s3_key"`
	S3Secret   string `mapstructure:"s3_secret"`
	S3Bucket   string `mapstructure:"s3_bucket"`
	S3Region   string `mapstructure:"s3_region"`
	S3Prefix   string `mapstructure:"s3_prefix"`

	EnableBEngine          bool   `mapstructure:"enable_bengine"`
	DockerRegistryUsername string `mapstructure:"docker_registry_username"`
	DockerRegistryPassword string `mapstructure:"docker_registry_password"`
	HostSourceVolume       string `mapstructure:"host_source_volume"`
}

Config configuration struct.

func LoadConfig

func LoadConfig(path string) (Config, error)

LoadConfig loads mlsolid's configuration file from the path specified. It also checks for any configuration file under /etc/mlsolid.

Directories

Path Synopsis
api
v1
Package bengine handles running benchmarks.
Package bengine handles running benchmarks.
Package grpcservice implements the grpc server methods
Package grpcservice implements the grpc server methods
Package oauth inits oauth providers using goth.
Package oauth inits oauth providers using goth.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL