config

package
v0.0.0-...-9c84b05 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Services []Service `yaml:"services"`
	Strategy string    `yaml:"strategy"`
	// Ports to which Mizan will listen on
	// TODO (Mo-Fatah): Should deal with distributed ports across multiple nodes
	Ports          []int  `yaml:"ports"`
	MaxConnections uint32 `yaml:"max_connections"`
}

func LoadConfig

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

type Replica

type Replica struct {
	Url      string            `yaml:"url"`
	MetaData map[string]string `yaml:"metadata"`
}

type Service

type Service struct {
	Name     string     `yaml:"name"`
	Matcher  string     `yaml:"matcher"`
	Replicas []*Replica `yaml:"replicas"`
}

Jump to

Keyboard shortcuts

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