drain

package
v0.0.0-...-3d1c38f Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Undrain

func Undrain(filename string) bool

Undrain checks the existence of a undrain file

Types

type Drain

type Drain interface {
	// Check returns true if the service needs to be drained
	Check() bool
}

Drain is a drain check interface

type FileDrain

type FileDrain struct {
	FileName string
}

FileDrain implements the check interface

func (*FileDrain) Check

func (f *FileDrain) Check() bool

Check checks the existence of a file

Jump to

Keyboard shortcuts

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