config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker struct {
	Sort string `json:"sort" yaml:"sort"`
	Host string `json:"host" yaml:"host"`
}

type Config

type Config struct {
	Db       string `yaml:"db"`
	Notifier string `yaml:"notifier"`
	Port     string `yaml:"port,omitempty"`

	JobParams JobParams `yaml:"jobParams"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type JobParams

type JobParams struct {
	Brokers  []Broker `yaml:"brokers"`
	Registry Registry `yaml:"registry,omitempty"`
	Image    string   `yaml:"image"`
}

type Registry

type Registry struct {
	Sort string `json:"sort" yaml:"sort"`
	Uri  string `json:"uri" yaml:"uri"`
}

Jump to

Keyboard shortcuts

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