ttl

package
v0.0.0-...-856de4a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 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 Check

type Check struct {
	// contains filtered or unexported fields
}

func NewTTLCheck

func NewTTLCheck(hc *rpcapi.HealthCheck, onDead, onRemove func()) (*Check, error)

func (*Check) Update

func (t *Check) Update()

type ChecksMap

type ChecksMap struct {
	// contains filtered or unexported fields
}

func NewChecksMap

func NewChecksMap() *ChecksMap

func (*ChecksMap) Delete

func (cm *ChecksMap) Delete(name string)

func (*ChecksMap) Get

func (cm *ChecksMap) Get(name string) (*Check, bool)

func (*ChecksMap) Store

func (cm *ChecksMap) Store(name string, check *Check)

func (*ChecksMap) Update

func (cm *ChecksMap) Update(name string) bool

Jump to

Keyboard shortcuts

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