config

package
v0.0.0-...-1537486 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PingBasedCleanup = CleanupMethod("ping based cleanup")
	TimeBasedCleanup = CleanupMethod("time based cleanup")
)
View Source
const (
	SOCK_PATH              = "/var/run/lsleasesd/lsleasesd.sock"
	PERSISTENT_LEASES_PATH = "/var/cache/lsleasesd/leases.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupMethod

type CleanupMethod string

type Config

type Config struct {
	CleanupLeasesInterval time.Duration
	CleanupMethod         CleanupMethod
	MissedPingsThreshold  int
	LeasesExpiryDuration  time.Duration
	PersistentLeases      bool
}

func NewDefaultConfig

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

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