MCPcopy Create free account

hub / github.com/ThePrimeagen/vim-arcade / functions

Functions317 in github.com/ThePrimeagen/vim-arcade

↓ 52 callersFunctionNoError
(err error, msg string, data ...any)
pkg/assert/assert.go:98
↓ 40 callersFunctionAssert
TODO Think about passing around a context for debugging purposes
pkg/assert/assert.go:71
↓ 26 callersMethodEqual
(other *GameServerConfig)
pkg/game-server-stats/stats.go:52
↓ 20 callersMethodDone
()
pkg/cmd/cmd.go:104
↓ 16 callersMethodRun
(ctx context.Context)
pkg/game-server-stats/stats.go:86
↓ 16 callersMethodString
()
cmd/log-parser/main.go:58
↓ 15 callersMethodIntersect
(b AABB)
pkg/quick-math/AABB.go:7
↓ 15 callersMethodString
ListServers() []gameserverstats.GameServerConfig
pkg/am-proxy/game.go:17
↓ 13 callersMethodInto
(writer io.Writer)
pkg/packet/packet.go:172
↓ 12 callersMethodAdd
(other Vec2)
pkg/quick-math/Vec.go:13
↓ 12 callersMethodAddr
()
pkg/am-proxy/game.go:22
↓ 9 callersFunctionNever
(msg string, data ...any)
pkg/assert/assert.go:94
↓ 9 callersMethodremoveConnection
(w *AMConnectionWrapper, report error)
pkg/am-proxy/am-proxy.go:99
↓ 8 callersMethodType
()
pkg/packet/packet.go:59
↓ 7 callersMethodGetById
(string)
pkg/game-server-stats/stats.go:84
↓ 7 callersFunctionNewPacketFramer
()
pkg/packet/packet.go:213
↓ 6 callersMethodClose
()
pkg/cmd/cmd.go:85
↓ 6 callersMethodNew
()
e2e-tests/sim/connections.go:176
↓ 6 callersMethodUpdate
(stats GameServerConfig)
pkg/game-server-stats/stats.go:88
↓ 6 callersMethodWait
()
pkg/api/server.go:241
↓ 5 callersMethodClose
()
pkg/server-management/local.go:175
↓ 5 callersMethodData
()
pkg/packet/packet.go:180
↓ 5 callersFunctionFrameWithReader
(framer *PacketFramer, reader io.Reader)
pkg/packet/packet.go:271
↓ 5 callersMethodGetTotalConnectionCount
()
pkg/game-server-stats/stats.go:90
↓ 5 callersFunctionPacketFromParts
(t PacketType, enc Encoding, data []byte)
pkg/packet/packet.go:84
↓ 5 callersMethodSub
(other Vec2)
pkg/quick-math/Vec.go:25
↓ 5 callersMethodWrite
(data []byte)
pkg/api/client.go:115
↓ 5 callersFunctionrunAssert
(msg string, args ...interface{})
pkg/assert/assert.go:40
↓ 4 callersFunctionAssertConnectionCount
(state *ServerState, counts gameserverstats.GameServecConfigConnectionStats, dur time.Duration)
e2e-tests/sim/assert.go:60
↓ 4 callersMethodClose
()
pkg/api/server.go:234
↓ 4 callersMethodClose
()
pkg/am-proxy/am-proxy.go:191
↓ 4 callersFunctionCreateEnvironment
(ctx context.Context, path string, params servermanagement.ServerParams)
e2e-tests/sim/create_env.go:105
↓ 4 callersFunctionCreateLogger
(name string)
e2e-tests/sim/utils.go:20
↓ 4 callersMethodGetAllGameServerConfigs
()
pkg/game-server-stats/stats.go:85
↓ 4 callersFunctionKillContext
(cancel context.CancelFunc)
e2e-tests/sim/utils.go:12
↓ 4 callersFunctionNotNil
(item any, msg string, data ...any)
pkg/assert/assert.go:87
↓ 4 callersMethodRemove
(conns []*api.Client)
e2e-tests/sim/assert.go:97
↓ 4 callersMethodSetSqliteModes
()
pkg/game-server-stats/sqlite.go:102
↓ 4 callersMethodWaitForReady
(ctx context.Context, id string)
pkg/am-proxy/game.go:14
↓ 4 callersFunctionmachine
(machineId string)
pkg/server-management/flyio.go:30
↓ 3 callersFunctionAssertClient
(state *ServerState, client *api.Client)
e2e-tests/sim/assert.go:35
↓ 3 callersMethodClose
()
e2e-tests/sim/state.go:25
↓ 3 callersMethodConnect
(ctx context.Context)
pkg/api/client.go:122
↓ 3 callersMethodCreateBatchedConnections
(count int)
e2e-tests/sim/connections.go:161
↓ 3 callersFunctionHandleCtrlC
(cancel context.CancelFunc)
pkg/ctrlc/ctlrc.go:12
↓ 3 callersMethodId
()
pkg/api/client.go:107
↓ 3 callersMethodLen
()
pkg/quick-math/Vec.go:29
↓ 3 callersFunctionNewPacket
(encoder PacketEncoder)
pkg/packet/packet.go:153
↓ 3 callersMethodRead
(data []byte)
pkg/packet/packet.go:194
↓ 3 callersFunctioncopyFile
(from string, to string)
e2e-tests/sim/create_env.go:64
↓ 3 callersMethodnextInt
(min int, max int)
e2e-tests/sim/sim.go:59
↓ 3 callersFunctionsumConfigConns
(configs []gameserverstats.GameServerConfig)
e2e-tests/sim/assert.go:82
↓ 2 callersMethodAdd
()
e2e-tests/sim/connections.go:94
↓ 2 callersMethodAdd
(conn AMConnection)
pkg/am-proxy/am-proxy.go:74
↓ 2 callersFunctionAssertAllClientsSameServer
(state *ServerState, clients []*api.Client)
e2e-tests/sim/assert.go:23
↓ 2 callersFunctionAssertClients
(state *ServerState, clients []*api.Client)
e2e-tests/sim/assert.go:17
↓ 2 callersFunctionClientStateToString
(state ClientState)
pkg/api/client.go:28
↓ 2 callersMethodClose
()
pkg/game-server-stats/sqlite.go:90
↓ 2 callersMethodCreateBatchedConnectionsWithWait
(count int, wait *sync.WaitGroup)
e2e-tests/sim/connections.go:149
↓ 2 callersFunctionCreateClientAuth
(id []byte)
pkg/packet/packet.go:129
↓ 2 callersFunctionCreateErrorPacket
(err error)
pkg/packet/packet.go:107
↓ 2 callersMethodCreateGameServerConfigs
createTable creates the GameServerConfigs table
pkg/game-server-stats/sqlite.go:33
↓ 2 callersMethodCreateNewServer
(ctx context.Context)
pkg/am-proxy/game.go:13
↓ 2 callersFunctionCreateTypeAndEncodingByte
(t PacketType, enc Encoding)
pkg/packet/packet.go:80
↓ 2 callersMethodDisconnect
()
pkg/api/client.go:185
↓ 2 callersMethodFilter
(line LogLine)
cmd/log-parser/main.go:57
↓ 2 callersFunctionGetDBPath
(name string)
e2e-tests/sim/create_env.go:91
↓ 2 callersFunctionGetFreePort
GetFreePort asks the kernel for a free open port that is ready to use.
pkg/api/utils.go:8
↓ 2 callersMethodGetServersByUtilization
(maxLoad float64)
pkg/game-server-stats/stats.go:87
↓ 2 callersMethodLen
()
e2e-tests/sim/connections.go:46
↓ 2 callersMethodLenSq
()
pkg/quick-math/Vec.go:33
↓ 2 callersFunctionNewClient
(host string, port uint16, id [16]byte)
pkg/api/client.go:92
↓ 2 callersFunctionNewFilter
(line string)
cmd/log-parser/main.go:61
↓ 2 callersFunctionNewSuicedek
(ctx context.Context, cancel context.CancelFunc)
cmd/test/main.go:22
↓ 2 callersFunctionNewTestingClientFactory
(host string, port uint16, logger *slog.Logger)
e2e-tests/sim/connections.go:141
↓ 2 callersMethodNewWait
this is getting hacky...
e2e-tests/sim/connections.go:186
↓ 2 callersMethodNorm
()
pkg/quick-math/Vec.go:37
↓ 2 callersFunctionPacketFromBytes
(data []byte)
pkg/packet/packet.go:138
↓ 2 callersFunctionPrettyPrintBytes
(data []byte, printMax int)
pkg/utils/pretty.go:8
↓ 2 callersMethodPush
(data []byte)
pkg/packet/packet.go:220
↓ 2 callersMethodRead
(in io.Reader)
pkg/utils/context.go:43
↓ 2 callersMethodRun
(ctx context.Context)
pkg/game-server-stats/sqlite.go:154
↓ 2 callersMethodWaitForReady
()
pkg/api/client.go:177
↓ 2 callersMethodWrite
(b []byte)
pkg/cmd/cmd.go:19
↓ 2 callersFunctiongetClientLogger
(id []byte)
pkg/api/client.go:68
↓ 2 callersFunctiongetId
()
cmd/api-server/main.go:17
↓ 2 callersFunctiongetNextBatch
(s *Simulation, remaining int)
e2e-tests/sim/sim.go:53
↓ 2 callersFunctiongetNextId
()
e2e-tests/sim/connections.go:15
↓ 2 callersFunctiongetPacketLength
(data []byte)
pkg/packet/packet.go:134
↓ 2 callersMethodincConnections
this function is so bad that i need to see a doctor which also means i am ready to work at FAANG
pkg/api/server.go:67
↓ 2 callersFunctionp
(msg string, count int)
cmd/log-parser/main.go:167
↓ 2 callersMethodsetPragma
(name string, value string)
pkg/game-server-stats/sqlite.go:94
↓ 2 callersFunctiontoLog
(line string)
cmd/log-parser/main.go:138
↓ 1 callersMethodAdd
(conns []*api.Client)
e2e-tests/sim/assert.go:90
↓ 1 callersMethodAddBatch
(count int)
e2e-tests/sim/connections.go:82
↓ 1 callersMethodAddVArgv
(value []string)
pkg/cmd/cmd.go:53
↓ 1 callersMethodAddr
()
pkg/game-server-stats/stats.go:78
↓ 1 callersMethodAssertRound
(adds, removes []*api.Client)
e2e-tests/sim/state.go:98
↓ 1 callersFunctionAssertServerState
(before []gameserverstats.GameServerConfig, after []gameserverstats.GameServerConfig, adds []*api.Client, remo
e2e-tests/sim/assert.go:112
↓ 1 callersFunctionAssertServerStateCreation
(server *ServerState, configs []ServerCreationConfig)
e2e-tests/sim/assert.go:77
next →1–100 of 317, ranked by callers