http

package
v0.0.0-...-ef787ec Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApiServer

func NewApiServer(mgr ctrl.Manager, crt, key []byte) error

NewApiServer creates a new ApiServer and initializes the crd/key variables (can be nil)

Types

type AllocateArgs

type AllocateArgs struct {
	SessionID      string   `json:"sessionID"`
	BuildID        string   `json:"buildID"`
	SessionCookie  string   `json:"sessionCookie"`
	InitialPlayers []string `json:"initialPlayers"`
}

AllocateArgs contains information necessary to allocate a GameServer

type ApiServer

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

ApiServer is a helper struct that implements manager.Runnable interface so it can be added to our Manager

func (*ApiServer) NeedLeaderElection

func (s *ApiServer) NeedLeaderElection() bool

NeedLeaderElection returns false since we need the allocation API service to run all on controller Pods

func (*ApiServer) Start

func (s *ApiServer) Start(ctx context.Context) error

Start starts the HTTP(S) allocation API service if user has provided public/private cert details, it will create a TLS-auth HTTPS server otherwise it will create a HTTP server with no auth

type RequestMultiplayerServerResponse

type RequestMultiplayerServerResponse struct {
	IPV4Address string
	Ports       string
	SessionID   string
}

RequestMultiplayerServerResponse contains details that are returned on a successful GameServer allocation call

Jump to

Keyboard shortcuts

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