Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Load will load all saved Locators from blueprint and create background connections to them. // Meant to be called at service startup. Load() // AddLocator will start a background connection to the given Locator and will serve up connection // information to locate requests from that Locator on all interfaces. The Locator connection // can be killed by calling RemoveLocator or RemoveAll AddLocator(ctx context.Context, locatorAddress string) (locator *sv1.Locator, err error) // RemoveLocator will remove a background Locator connection that was started through Load or // AddLocator and will delete it from blueprint. RemoveLocator(ctx context.Context, locatorAddress string) error // Disable will remove all background Locator connections and delete them from blueprint. Disable(ctx context.Context) error }
func NewController ¶
func NewController(logger chassis.Logger) Controller
Click to show internal directories.
Click to hide internal directories.