internal

package
v0.0.0-...-8a99b67 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	func(
		logger *zap.Logger,
		setting mmfx.MatchmakingSettingParams,
		agonesClient agonesfx.AllocateParams,
		awsConfig cloudfx.AWSConfigParams,
	) (out sfx.GrpcServiceResult, err error) {

		if svc, e := CreateService(
			logger,
			setting.OMFrontendUrl,
			setting.OMBackendUrl,
			setting.OMFuncUrl,
			setting.OMFuncPort,
			agonesClient.AllocateClient,
			globalaccelerator.NewFromConfig(awsConfig.Config),
			setting.AWSVPCSubnets,
		); e != nil {
			err = e
		} else {
			out.GrpcService = svc
		}
		return
	})

Functions

This section is empty.

Types

type Director

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

func CreateDirector

func CreateDirector(
	logger *zap.Logger,
	backendUrl string,
	funcHost string,
	funcPort int32,
	aCli *agones.Allocator,
) *Director

func (*Director) FetchMatch

func (d *Director) FetchMatch(game string, mode string) error

type Service

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

func CreateService

func CreateService(
	logger *zap.Logger,
	omFrontend, omBackend string,
	funcUrl string,
	funcPort int32,
	agonesClient allocation.AllocationServiceClient,
	accCli *globalaccelerator.Client,
	subNet string,
) (*Service, error)

func (*Service) Match

func (*Service) RegisterWithGrpcServer

func (s *Service) RegisterWithGrpcServer(server siface.IGrpcServer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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