events

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EventLeaseExpired is emitted when a client address lease expired
	EventLeaseExpired caddy.EventName = "lease-expired"

	// EventLeaseCreated is emitted when an address has been bound
	// to a client
	EventLeaseCreated = "lease-created"
)

Variables

This section is empty.

Functions

func EmitLeaseEvent

func EmitLeaseEvent(event caddy.EventName, l *lease.Lease)

EmitLeaseEvent emits a lease-based event

func RegisterLeaseEventHook

func RegisterLeaseEventHook(name string, event caddy.EventName, hook LeaseEventHook)

RegisterLeaseEventHook registers a new lease event hook

Types

type LeaseEventHook

type LeaseEventHook func(event caddy.EventName, l *lease.Lease) error

LeaseEventHook is the function type that can receive lease-based events

Jump to

Keyboard shortcuts

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