healthcheck

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPath            = "/"
	DefaultPort            = "traffic-port"
	DefaultIntervalSeconds = 15
	DefaultTimeoutSeconds  = 5
)

Variables

This section is empty.

Functions

func NewParser

NewParser creates a new health check annotation parser

Types

type Config

type Config struct {
	Path            *string
	Port            *string
	Protocol        *string
	IntervalSeconds *int64
	TimeoutSeconds  *int64
}

Config returns the URL and method to use check the status of the upstream server/s

func (*Config) Merge

func (a *Config) Merge(b *Config, cfg *config.Configuration) *Config

Merge merge two config together according to default value in cfg

Jump to

Keyboard shortcuts

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