rebuild

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnqueueRoutesRebuild

func EnqueueRoutesRebuild(appName string)

func Initialize

func Initialize(finder func(string) (RebuildApp, error)) error

func LockedRoutesRebuildOrEnqueue

func LockedRoutesRebuildOrEnqueue(appName string)

func RebuildRoutes

func RebuildRoutes(app RebuildApp, dry bool) (map[string]RebuildRoutesResult, error)

func RoutesRebuildOrEnqueue

func RoutesRebuildOrEnqueue(appName string)

func Shutdown

func Shutdown(ctx context.Context) error

Types

type RebuildApp

type RebuildApp interface {
	router.App
	GetCname() []string
	GetRouters() []appTypes.AppRouter
	GetHealthcheckData() (routerTypes.HealthcheckData, error)
	RoutableAddresses() ([]url.URL, error)
	InternalLock(string) (bool, error)
	Unlock()
}

type RebuildRoutesResult

type RebuildRoutesResult struct {
	Added   []string
	Removed []string
}

Jump to

Keyboard shortcuts

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