datatypes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2020 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 MirrorSettings

type MirrorSettings struct {
	PersistentFailureTimeout time.Duration
	RetryAfter               time.Duration
}

type MirrorTargets

type MirrorTargets struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

MirrorTargets has the set of target URLs to mirror to It protects these for multi threaded access

func NewMirrorTargets

func NewMirrorTargets(settings MirrorSettings) *MirrorTargets

func (*MirrorTargets) Add

func (mt *MirrorTargets) Add(targets []string)

func (*MirrorTargets) Delete

func (mt *MirrorTargets) Delete(targets []string)

func (*MirrorTargets) ForEach

func (mt *MirrorTargets) ForEach(f func(string, *gobreaker.CircuitBreaker))

func (*MirrorTargets) ListTargets

func (mt *MirrorTargets) ListTargets() []*Target

type Target

type Target struct {
	Name         string
	FailingSince time.Time
	State        string
}

Jump to

Keyboard shortcuts

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