config

package
v0.0.0-...-0d370bc Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: Apache-2.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 ApplicationConfig

type ApplicationConfig = string

ApplicationConfig represents config for application

func ParseArgs

func ParseArgs() *ApplicationConfig

ParseArgs parses arguments from command line

type Config

type Config struct {
	Port      string `json:"port"`
	TestDir   string `json:"testDir"`
	TestsInfo map[string]struct {
		Path       string `json:"path"`
		TestsCount int    `json:"count"`
	} `json:"tests"`
	CompileFiles map[string]string `json:"compileFiles"`
}

Config contains configuration for the remote worker

var MyConfig *Config

func ParseConfig

func ParseConfig(path string) (*Config, error)

ParseConfig parses configuration from the specified path

Jump to

Keyboard shortcuts

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