config

package
v0.0.0-...-d88ec87 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiClusterConfig

type MultiClusterConfig struct {
	// Domain name
	Cluster string `yaml:"Domain"`
	// Domain weight
	Weight float64 `yaml:"Weight"`
}

MultiClusterConfig defines region settings for multicluster

type RegionConfig

type RegionConfig struct {
	// Multi cluster config
	Clusters []MultiClusterConfig `yaml:"Clusters"`
	// Domains used for region matching
	Domains []string `yaml:"Domains"`
	// Default region will be applied if Host header would not match any other region
	Default bool `yaml:"Default,omitempty"`
}

RegionConfig region configuration

type YAMLUrl

type YAMLUrl = types.YAMLUrl

YAMLUrl is yaml deserializing wrapper for net/url.URL

Jump to

Keyboard shortcuts

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