Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateErrorFromContext(context UnmarshalContext) error
- func ProcessUnmarshalContext(context UnmarshalContext) error
- type AnnealerConfig
- type AnnealerType
- type EventNotifierType
- type FormatterType
- type HttpServerConfig
- type LoggerType
- type LoggingConfig
- type MetaDataConfig
- type ModelConfig
- type UnmarshalContext
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 ModelConfig ¶
type ModelConfig struct { Type string Parameters parameters.Map }
type UnmarshalContext ¶
Click to show internal directories.
Click to hide internal directories.