config

package
v0.0.0-...-e6f4ba9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 2 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 {
	// Cluster name
	Cluster string `yaml:"Cluster"`
	// Cluster 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 SyncLogMethod

type SyncLogMethod struct {
	Method string
}

SyncLogMethod type fields in yaml configuration will parse list of HTTP methods

func (*SyncLogMethod) UnmarshalYAML

func (slm *SyncLogMethod) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML for SyncLogMethod

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