config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDuration = errors.New("invalid duration")

Functions

This section is empty.

Types

type Config

type Config struct {
	Address               string                 `json:"address"`
	DefaultArtifactRoot   string                 `json:"default_artifact_root"`
	LogLevel              string                 `json:"log_level"`
	ModelRegistryStoreURI string                 `json:"model_registry_store_uri"`
	PythonEnv             []string               `json:"python_env"`
	PythonAddress         string                 `json:"python_address"`
	PythonCommand         []string               `json:"python_command"`
	PythonTestsENV        map[string]interface{} `json:"python_tests_env"`
	ShutdownTimeout       Duration               `json:"shutdown_timeout"`
	StaticFolder          string                 `json:"static_folder"`
	TrackingStoreURI      string                 `json:"tracking_store_uri"`
	Version               string                 `json:"version"`
}

func NewConfigFromBytes

func NewConfigFromBytes(cfgBytes []byte) (*Config, error)

func NewConfigFromString

func NewConfigFromString(s string) (*Config, error)

type Duration

type Duration struct {
	time.Duration
}

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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