data

package
v0.0.0-...-c864ae1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: BSD-2-Clause, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultApiPort   = uint64(8080)
	DefaultAdminPort = uint64(8081)
)

Variables

View Source
var (
	UnspecifiedAnnealerType = AnnealerType{""}
	Kirkpatrick             = AnnealerType{"Kirkpatrick"}
	Suppapitnarm            = AnnealerType{"Suppapitnarm"}
	AveragedSuppapitnarm    = AnnealerType{"AveragedSuppapitnarm"}
)
View Source
var (
	UnspecifiedEventNotifierType = EventNotifierType{""}
	Sequential                   = EventNotifierType{"Sequential"}
	Concurrent                   = EventNotifierType{"Concurrent"}
)
View Source
var (
	UnspecifiedLoggerType = LoggerType{""}
	NativeLibrary         = LoggerType{"NativeLibrary"}
	BareBones             = LoggerType{"BareBones"}
)
View Source
var (
	UnspecifiedFormatterType = FormatterType{""}
	RawMessage               = FormatterType{"RawMessage"}
	Json                     = FormatterType{"JSON"}
	NameValuePair            = FormatterType{"NameValuePair"}
)

Functions

func GenerateErrorFromContext

func GenerateErrorFromContext(context UnmarshalContext) error

func ProcessUnmarshalContext

func ProcessUnmarshalContext(context UnmarshalContext) error

Types

type AnnealerConfig

type AnnealerConfig struct {
	Type          AnnealerType
	EventNotifier EventNotifierType
	Parameters    parameters.Map
}

type AnnealerType

type AnnealerType struct {
	Value string
}

func (AnnealerType) String

func (at AnnealerType) String() string

func (*AnnealerType) UnmarshalText

func (at *AnnealerType) UnmarshalText(text []byte) error

type EventNotifierType

type EventNotifierType struct {
	// contains filtered or unexported fields
}

func (*EventNotifierType) UnmarshalText

func (ent *EventNotifierType) UnmarshalText(text []byte) error

type FormatterType

type FormatterType struct {
	Value string
}

func (*FormatterType) UnmarshalText

func (ft *FormatterType) UnmarshalText(text []byte) error

type HttpServerConfig

type HttpServerConfig struct {
	AdminPort                uint64
	ApiPort                  uint64
	CacheMaximumAgeInSeconds uint64
	JobQueueLength           uint64

	Logger LoggingConfig
}

func RetrieveHttpServer

func RetrieveHttpServer(configFilePath string) (*HttpServerConfig, error)

type LoggerType

type LoggerType struct {
	Value string
}

func (*LoggerType) UnmarshalText

func (lt *LoggerType) UnmarshalText(text []byte) error

type LoggingConfig

type LoggingConfig struct {
	Type                 LoggerType
	Formatter            FormatterType
	LogLevelDestinations map[string]string
}

type MetaDataConfig

type MetaDataConfig struct {
	FilePath          string
	ExecutableName    string
	ExecutableVersion string
}

type ModelConfig

type ModelConfig struct {
	Type       string
	Parameters parameters.Map
}

type UnmarshalContext

type UnmarshalContext struct {
	ConfigKey          string
	ValidValues        []string
	TextToValidate     string
	AssignmentFunction func()
}

Jump to

Keyboard shortcuts

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