controller

package
v0.1.9-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GameServerController

type GameServerController struct {
	manager.Manager
	// contains filtered or unexported fields
}

GameServerController watches Agones GameServer events and notify the event handlers

func NewGameServerController

func NewGameServerController(config *rest.Config, eventHandler handlers.EventHandler, options Options) (*GameServerController, error)

NewGameServerController returns a GameServer controller that uses the informed eventHandler to notify the Broadcaster about reconcile events for Agones GameServers

func (*GameServerController) Run

func (c *GameServerController) Run(stop <-chan struct{}) error

Run starts the GameServerController and watches reconcile events for Agones GameServers

type Options

type Options struct {
	SyncPeriod time.Duration
}

Jump to

Keyboard shortcuts

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