handler_ctrl

package
v0.22.35 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBindHandler

func NewBindHandler(routerEnv env.RouterEnv, forwarder *forwarder.Forwarder, ctrlAddressChanger CtrlAddressChanger, ctrlAddressUpdater CtrlAddressUpdater) (channel.BindHandler, error)

Types

type CtrlAddressChanger added in v0.17.26

type CtrlAddressChanger interface {
	CreateBackup() (string, error)
	UpdateControllerEndpoint(address string) error
	Save() error
	CurrentCtrlAddress() string
}

CtrlAddressChanger provides indirect access to underlying configuration without creating import loops w/ *router.Config.

type CtrlAddressUpdater added in v0.22.15

type CtrlAddressUpdater interface {
	UpdateCtrlEndpoints(endpoints []string) error
}

Jump to

Keyboard shortcuts

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