testing

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFrontend

type FakeFrontend struct {
}

FakeFrontend with empty method impl used for testing

func (*FakeFrontend) CreatePlayer

CreatePlayer is this service's implementation of the CreatePlayer gRPC method defined in frontend.proto

func (*FakeFrontend) DeletePlayer

DeletePlayer is this service's implementation of the DeletePlayer gRPC method defined in frontend.proto

func (*FakeFrontend) GetUpdates

func (s *FakeFrontend) GetUpdates(p *pb.GetUpdatesRequest, assignmentStream pb.Frontend_GetUpdatesServer) error

GetUpdates is this service's implementation of the GetUpdates gRPC method defined in frontend.proto

type MiniMatchServer

type MiniMatchServer struct {
	*serving.OpenMatchServer
	// contains filtered or unexported fields
}

MiniMatchServer is an OpenMatchServer with additional context for testing.

func MustMiniMatch

func MustMiniMatch(params []*serving.ServerParams) (*MiniMatchServer, func())

MustMiniMatch requires Mini Match to be created successfully.

func NewMiniMatch

func NewMiniMatch(params []*serving.ServerParams) (*MiniMatchServer, func(), error)

NewMiniMatch creates and starts an OpenMatchServer context for testing.

func (*MiniMatchServer) GetBackendClient

func (mm *MiniMatchServer) GetBackendClient() (pb.BackendClient, error)

GetBackendClient gets the backend client.

func (*MiniMatchServer) GetBackendProxyClient added in v0.5.1

func (mm *MiniMatchServer) GetBackendProxyClient() (*http.Client, string)

GetBackendProxyClient gets the REST proxy of the backend client

func (*MiniMatchServer) GetFrontendClient

func (mm *MiniMatchServer) GetFrontendClient() (pb.FrontendClient, error)

GetFrontendClient gets the frontend client.

func (*MiniMatchServer) GetFrontendProxyClient added in v0.5.1

func (mm *MiniMatchServer) GetFrontendProxyClient() (*http.Client, string)

GetFrontendProxyClient gets the REST proxy of the frontend client

func (*MiniMatchServer) Stop

func (mm *MiniMatchServer) Stop()

Stop shuts down Mini Match

Jump to

Keyboard shortcuts

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