Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Octops/agones-discover-openmatch
/ functions
Functions
106 in github.com/Octops/agones-discover-openmatch
⨍
Functions
106
◇
Types & classes
45
↓ 13 callers
Function
Logger
()
internal/runtime/log.go:27
↓ 11 callers
Method
Run
(*pb.RunRequest, pb.MatchFunction_RunServer)
pkg/matchfunction/server.go:19
↓ 7 callers
Function
NewLogger
(verbose bool)
internal/runtime/log.go:10
↓ 6 callers
Function
OpenMatch
()
pkg/config/grpc_conn.go:16
↓ 4 callers
Method
Allocate
(ctx context.Context, req *pb.AssignTicketsRequest)
pkg/allocator/types.go:21
↓ 4 callers
Method
Any
()
pkg/extensions/allocator_filter.go:18
↓ 4 callers
Method
Map
()
pkg/extensions/allocator_filter.go:24
↓ 4 callers
Function
ValueIsEmpty
(value string, err error)
pkg/allocator/agones_allocator.go:71
↓ 3 callers
Method
FindGameServers
(ctx context.Context, filters map[string]string)
pkg/allocator/agones_discover.go:87
↓ 3 callers
Function
SetupSignal
(cancel context.CancelFunc)
internal/runtime/signal.go:10
↓ 2 callers
Method
Allocate
Allocate will only assign a GameServer to an Assignment if the Capacity (Players.Status.Capacity - Players.Stats.Count) is <= the number of the Ticket
pkg/allocator/agones_discover.go:28
↓ 2 callers
Function
CleanUpAssignmentsWithoutConnection
(group []*pb.AssignmentGroup)
pkg/director/openmatch/openmatch.go:176
↓ 2 callers
Method
CreateMatchmakingRequests
()
pkg/simulators/players/time_interval.go:147
↓ 2 callers
Method
CreatePlayers
(count int)
pkg/simulators/players/time_interval.go:95
↓ 2 callers
Function
DoubleRangeFilterFromSlice
(tags []*pb.DoubleRangeFilter)
pkg/director/openmatch/openmatch.go:283
↓ 2 callers
Function
EncodeFilter
(filter map[string]string)
pkg/allocator/agones_discover_client.go:63
↓ 2 callers
Function
ExtractFilterFromExtensions
(extension map[string]*any.Any)
pkg/extensions/allocator_filter.go:32
↓ 2 callers
Function
MatchByGamePlayersCapacity
* Criteria for Matches - Number or tickets should not exceed the PlayerCapacity set by the Status.Players.Capacity field from the GS */
pkg/matchfunction/functions/player_capacity.go:26
↓ 2 callers
Function
NewAgonesDiscoverClientHTTP
(serverURI string)
pkg/allocator/agones_discover_client.go:22
↓ 2 callers
Function
NewAllocatorService
(service GameServerAllocator)
pkg/allocator/types.go:48
↓ 2 callers
Method
RequestMatchForPlayers
(players []*Player)
pkg/simulators/players/time_interval.go:115
↓ 2 callers
Function
TagFromFloatSlice
(tags []float64)
pkg/simulators/players/time_interval.go:205
↓ 2 callers
Function
TagFromStringSlice
(tags []string)
pkg/simulators/players/time_interval.go:198
↓ 2 callers
Function
assignTickets
(ctx context.Context, req *pb.AssignTicketsRequest, assigner Assigner)
pkg/director/openmatch/openmatch.go:152
↓ 2 callers
Function
createGameServersResponse
(gameservers []*GameServer)
pkg/allocator/agones_discover_test.go:304
↓ 2 callers
Function
createGameServersWithCapacity
(count, playerCapacity, playerCount int, labels map[string]string)
pkg/allocator/agones_discover_test.go:317
↓ 2 callers
Function
joinMapValues
(list map[string]string)
pkg/extensions/allocator_filter.go:62
↓ 1 callers
Method
AddPlayers
(players []*Player)
pkg/simulators/players/time_interval.go:140
↓ 1 callers
Function
AssignTickets
(client pb.BackendServiceClient, allocatorService *allocator.AllocatorService)
pkg/director/openmatch/openmatch.go:122
↓ 1 callers
Method
AssignTickets
(ctx context.Context, in *pb.AssignTicketsRequest, opts ...grpc.CallOption)
pkg/director/openmatch/openmatch.go:22
↓ 1 callers
Function
BuildAgonesAllocatorService
(mode string)
cmd/director.go:73
↓ 1 callers
Function
BuildQueryParams
(path string, filter map[string]string)
pkg/allocator/agones_discover_client.go:55
↓ 1 callers
Function
CreateAssignTicketRequestForMatch
(match *pb.Match)
pkg/director/openmatch/openmatch.go:189
↓ 1 callers
Function
CreateDoubleArgs
()
pkg/simulators/players/time_interval.go:163
↓ 1 callers
Function
CreateMatchForTickets
(matchID, profileName string, extensions map[string]*any.Any, tickets ...*pb.Ticket)
pkg/matchfunction/functions/player_capacity.go:82
↓ 1 callers
Function
CreateStringArgs
()
pkg/simulators/players/time_interval.go:175
↓ 1 callers
Method
DialQueryService
(addr string)
pkg/matchfunction/server.go:37
↓ 1 callers
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
cmd/root.go:49
↓ 1 callers
Method
Extensions
()
pkg/extensions/extension.go:49
↓ 1 callers
Function
FetchMatches
(client pb.BackendServiceClient, matchFunctionServer MatchFunctionServer)
pkg/director/openmatch/openmatch.go:62
↓ 1 callers
Method
Finalizer
()
pkg/matchfunction/server.go:91
↓ 1 callers
Function
FrontEndConn
()
pkg/frontend/conn.go:9
↓ 1 callers
Function
GenerateProfiles
generateProfiles generates profiles for every world assigning region, latency and skill randomly
pkg/director/openmatch/openmatch.go:211
↓ 1 callers
Function
HasCapacity
(group *pb.AssignmentGroup, gs *GameServer)
pkg/allocator/agones_discover.go:103
↓ 1 callers
Function
Info
()
internal/version/version.go:30
↓ 1 callers
Function
IsAssignmentGroupValidForAllocation
(group *pb.AssignmentGroup)
pkg/allocator/agones_discover.go:91
↓ 1 callers
Method
ListGameServers
(ctx context.Context, filter map[string]string)
pkg/allocator/agones_discover_client.go:36
↓ 1 callers
Method
ListGameServers
(ctx context.Context, filter map[string]string)
pkg/allocator/agones_discover.go:15
↓ 1 callers
Method
ListGameServers
(ctx context.Context, filter *extensions.AllocatorFilterExtension)
pkg/allocator/agones_discover.go:68
↓ 1 callers
Function
NewAgonesAllocatorClient
(config *AgonesAllocatorClientConfig)
pkg/allocator/agones_allocator_client.go:40
↓ 1 callers
Function
NewFrontEndService
(conn *grpc.ClientConn)
pkg/frontend/frontend.go:17
↓ 1 callers
Function
NewServer
()
pkg/matchfunction/server.go:29
↓ 1 callers
Function
NewTimeIntervalPlayerSimulator
(interval string, playersPool int, requestMatchFunc RequestMatchFunc)
pkg/simulators/players/time_interval.go:47
↓ 1 callers
Function
ParseGameServersResponse
(resp []byte)
pkg/allocator/agones_discover.go:114
↓ 1 callers
Method
RegisterMatchFunction
(factory func(client pb.QueryServiceClient, makeMatchesFunc functions.MakeMatchesFunc) pb.MatchFunctionServer,
pkg/matchfunction/server.go:53
↓ 1 callers
Function
Run
(interval string)
pkg/director/director.go:20
↓ 1 callers
Method
Run
(ctx context.Context)
pkg/simulators/players/time_interval.go:63
↓ 1 callers
Function
RunDirector
(ctx context.Context, logger *logrus.Entry, dial ConnFunc, interval string, allocatorService *allocator.Alloca
pkg/director/openmatch/openmatch.go:37
↓ 1 callers
Function
RunPlayerSimulator
(logger *logrus.Entry, ctx context.Context, interval string, playersPool int)
pkg/app/simulate.go:11
↓ 1 callers
Method
Serve
(ctx context.Context, port int32)
pkg/matchfunction/server.go:58
↓ 1 callers
Function
ToAny
Reference: https://stackoverflow.com/a/62585911
pkg/extensions/extension.go:15
↓ 1 callers
Function
ToFilter
(obj *any.Any)
pkg/extensions/allocator_filter.go:45
↓ 1 callers
Function
ValidateMatchFunArguments
(playerCapacity int, profile *pb.MatchProfile, poolTickets map[string][]*pb.Ticket)
pkg/matchfunction/functions/player_capacity.go:92
↓ 1 callers
Function
WithAny
(anyMap map[string]*any.Any)
pkg/extensions/extension.go:33
↓ 1 callers
Function
createRawGameServersWithLabels
(count int, labels map[string]string)
pkg/allocator/agones_discover_test.go:334
↓ 1 callers
Function
createRemoteClusterDialOption
createRemoteClusterDialOption creates a grpc client dial option with TLS configuration.
pkg/allocator/agones_allocator_client.go:129
↓ 1 callers
Function
fetchMatches
(ctx context.Context, client pb.BackendServiceClient, profile *pb.MatchProfile, matchFunctionServer MatchFunct
pkg/director/openmatch/openmatch.go:84
↓ 1 callers
Function
generateAddress
()
pkg/allocator/agones_discover_test.go:373
↓ 1 callers
Function
generateAssignments
(count int, tickets []string, filter *extensions.AllocatorFilterExtension)
pkg/allocator/agones_discover_test.go:280
↓ 1 callers
Function
generateTicketsIds
(count int)
pkg/allocator/agones_discover_test.go:364
↓ 1 callers
Function
loadCertificates
(config *AgonesAllocatorClientConfig)
pkg/allocator/agones_allocator_client.go:107
↓ 1 callers
Function
validateClientConfig
(config *AgonesAllocatorClientConfig)
pkg/allocator/agones_allocator_client.go:77
↓ 1 callers
Function
validateInterval
(interval string)
pkg/director/director.go:69
Method
Allocate
(ctx context.Context, req *pb.AssignTicketsRequest)
pkg/allocator/types.go:39
Method
Allocate
(ctx context.Context, req *pb.AssignTicketsRequest)
pkg/allocator/types.go:55
Method
Allocate
(ctx context.Context, request *pb.AllocationRequest)
pkg/allocator/agones_allocator_client.go:61
Method
Allocate
(ctx context.Context, req *pb.AssignTicketsRequest)
pkg/allocator/agones_allocator.go:28
Method
AssignTickets
(ctx context.Context, in *pb.AssignTicketsRequest, opts ...grpc.CallOption)
pkg/director/openmatch/openmatch_test.go:232
Function
ConnFuncInsecure
()
pkg/director/openmatch/conn.go:8
Function
ConnFuncSecure
TODO: Implement secure dialer
pkg/director/openmatch/conn.go:18
Method
CreateTicket
(ctx context.Context, ticket *pb.CreateTicketRequest, opts ...grpc.CallOption)
pkg/frontend/frontend.go:28
Method
FindGameServers
(ctx context.Context, filters map[string]string)
pkg/allocator/types.go:45
Method
ListGameServers
(ctx context.Context, filter map[string]string)
pkg/allocator/agones_discover_test.go:299
Function
NewAgonesAllocator
(client *AgonesAllocatorClient)
pkg/allocator/agones_allocator.go:24
Function
NewMatchFunctionService
(queryServiceClient pb.QueryServiceClient, makeMatchesFunc functions.MakeMatchesFunc)
pkg/matchfunction/service/service.go:18
Method
Run
(req *pb.RunRequest, stream pb.MatchFunction_RunServer)
pkg/matchfunction/service/service.go:26
Function
TagFromStringSlice
(tags []string)
pkg/director/openmatch/openmatch.go:276
Function
TestAgonesDiscoverAllocator_Allocate
(t *testing.T)
pkg/allocator/agones_discover_test.go:134
Function
TestAgonesDiscoverAllocator_Call_FindGameServer
(t *testing.T)
pkg/allocator/agones_discover_test.go:106
Function
TestAgonesDiscoverAllocator_SetConnection
(t *testing.T)
pkg/allocator/agones_discover_test.go:19
Function
TestAgonesDiscoverClientHTTP_ListGameServers_Filters
(t *testing.T)
pkg/allocator/agones_discover_client_test.go:11
Function
TestAssignTickets_assignTickets
(t *testing.T)
pkg/director/openmatch/openmatch_test.go:117
Function
TestCleanUpAssignmentsWithoutConnection
(t *testing.T)
pkg/director/openmatch/openmatch_test.go:13
Function
TestEncodeFilter
(t *testing.T)
pkg/allocator/agones_discover_client_test.go:81
Function
TestMatchByGamePlayersCapacity
* - PlayerCapacity <= 0 return error PlayerCapacity can't be lower than zero - Profile == nil return error Profile is nil - PoolTickets == nil return
pkg/matchfunction/functions/player_capacity_test.go:20
Function
TestTimeIntervalPlayerSimulator_CreatePlayers
(t *testing.T)
pkg/simulators/players/time_interval_test.go:14
Function
TestTimeIntervalPlayerSimulator_RequestMatchForPlayers
(t *testing.T)
pkg/simulators/players/time_interval_test.go:63
Method
WithAny
(anyMap map[string]*any.Any)
pkg/extensions/extension.go:37
Function
init
()
cmd/director.go:108
Function
init
()
cmd/function.go:49
next →
1–100 of 106, ranked by callers