Documentation ¶
Index ¶
- func MustExistsEnv(key string) error
- func SetConfigFile(filename string)
- type BindingConfig
- type Config
- type Metadata
- func (m Metadata) Get(key string) string
- func (m Metadata) MustParseAddress(key, defaultValue string) (string, int, error)
- func (m Metadata) MustParseBool(key string) (bool, error)
- func (m Metadata) MustParseByteArray(key string) ([]byte, error)
- func (m Metadata) MustParseEnv(key, envVar, defaultValue string) (string, error)
- func (m Metadata) MustParseInt(key string) (int, error)
- func (m Metadata) MustParseIntWithRange(key string, min, max int) (int, error)
- func (m Metadata) MustParseJsonMap(key string) (map[string]string, error)
- func (m Metadata) MustParseString(key string) (string, error)
- func (m Metadata) MustParseStringList(key string) ([]string, error)
- func (m Metadata) ParseBool(key string, defaultValue bool) bool
- func (m Metadata) ParseInt(key string, defaultValue int) int
- func (m Metadata) ParseIntWithRange(key string, defaultValue, min, max int) (int, error)
- func (m Metadata) ParseString(key, defaultValue string) string
- func (m Metadata) ParseStringList(key string) []string
- func (m Metadata) ParseStringMap(key string, stringMap map[string]string) (string, error)
- func (m Metadata) Set(key, value string) Metadata
- func (m Metadata) String() string
- type Spec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustExistsEnv ¶
func SetConfigFile ¶
func SetConfigFile(filename string)
Types ¶
type BindingConfig ¶
type BindingConfig struct { Name string `json:"name"` Sources Spec `json:"sources"` Targets Spec `json:"targets"` Properties Metadata `json:"properties"` }
func (BindingConfig) Validate ¶
func (b BindingConfig) Validate() error
type Config ¶
type Config struct { Bindings []BindingConfig `json:"bindings" json:"bindings"` ApiPort int `json:"apiPort" yaml:"apiPort"` LogLevel string `json:"logLevel" yaml:"logLevel"` }
type Metadata ¶
func NewMetadata ¶
func NewMetadata() Metadata
func (Metadata) MustParseAddress ¶
func (Metadata) MustParseByteArray ¶
func (Metadata) MustParseEnv ¶
func (Metadata) MustParseIntWithRange ¶
func (Metadata) MustParseJsonMap ¶
func (Metadata) MustParseStringList ¶
func (Metadata) ParseIntWithRange ¶
func (Metadata) ParseString ¶
func (Metadata) ParseStringList ¶
func (Metadata) ParseStringMap ¶
Click to show internal directories.
Click to hide internal directories.