hooks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hooks

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

func New

func New() *Hooks

func (*Hooks) AddPreShutdownHook

func (h *Hooks) AddPreShutdownHook(name string, hook ShutdownHook)

func (*Hooks) RunPreShutdownHooks

func (h *Hooks) RunPreShutdownHooks() error

RunPreShutdownHooks runs the PreShutdownHooks for the server

type ShutdownHook

type ShutdownHook func() error

Jump to

Keyboard shortcuts

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