Documentation ¶
Overview ¶
Package config contains utilities for reading and parsing service configuration files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SanitForYAML ¶
type SanitForYAML map[string]interface{}
SanitForYAML a map to be embedded within a parent object for YAML marshalling.
type Sanitised ¶
type Sanitised map[string]interface{}
Sanitised is a general map[string]interface{} type that tries to marshal into both YAML and JSON in a way that ensure the 'type' field is always first.
func (Sanitised) MarshalJSON ¶
MarshalJSON return the config as a JSON blob with the 'type' field first.
func (Sanitised) MarshalYAML ¶
MarshalYAML return the config as YAML with the 'type' field first.
Click to show internal directories.
Click to hide internal directories.