Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePrimeagen/vim-arcade
/ functions
Functions
317 in github.com/ThePrimeagen/vim-arcade
⨍
Functions
317
◇
Types & classes
60
↓ 52 callers
Function
NoError
(err error, msg string, data ...any)
pkg/assert/assert.go:98
↓ 40 callers
Function
Assert
TODO Think about passing around a context for debugging purposes
pkg/assert/assert.go:71
↓ 26 callers
Method
Equal
(other *GameServerConfig)
pkg/game-server-stats/stats.go:52
↓ 20 callers
Method
Done
()
pkg/cmd/cmd.go:104
↓ 16 callers
Method
Run
(ctx context.Context)
pkg/game-server-stats/stats.go:86
↓ 16 callers
Method
String
()
cmd/log-parser/main.go:58
↓ 15 callers
Method
Intersect
(b AABB)
pkg/quick-math/AABB.go:7
↓ 15 callers
Method
String
ListServers() []gameserverstats.GameServerConfig
pkg/am-proxy/game.go:17
↓ 13 callers
Method
Into
(writer io.Writer)
pkg/packet/packet.go:172
↓ 12 callers
Method
Add
(other Vec2)
pkg/quick-math/Vec.go:13
↓ 12 callers
Method
Addr
()
pkg/am-proxy/game.go:22
↓ 9 callers
Function
Never
(msg string, data ...any)
pkg/assert/assert.go:94
↓ 9 callers
Method
removeConnection
(w *AMConnectionWrapper, report error)
pkg/am-proxy/am-proxy.go:99
↓ 8 callers
Method
Type
()
pkg/packet/packet.go:59
↓ 7 callers
Method
GetById
(string)
pkg/game-server-stats/stats.go:84
↓ 7 callers
Function
NewPacketFramer
()
pkg/packet/packet.go:213
↓ 6 callers
Method
Close
()
pkg/cmd/cmd.go:85
↓ 6 callers
Method
New
()
e2e-tests/sim/connections.go:176
↓ 6 callers
Method
Update
(stats GameServerConfig)
pkg/game-server-stats/stats.go:88
↓ 6 callers
Method
Wait
()
pkg/api/server.go:241
↓ 5 callers
Method
Close
()
pkg/server-management/local.go:175
↓ 5 callers
Method
Data
()
pkg/packet/packet.go:180
↓ 5 callers
Function
FrameWithReader
(framer *PacketFramer, reader io.Reader)
pkg/packet/packet.go:271
↓ 5 callers
Method
GetTotalConnectionCount
()
pkg/game-server-stats/stats.go:90
↓ 5 callers
Function
PacketFromParts
(t PacketType, enc Encoding, data []byte)
pkg/packet/packet.go:84
↓ 5 callers
Method
Sub
(other Vec2)
pkg/quick-math/Vec.go:25
↓ 5 callers
Method
Write
(data []byte)
pkg/api/client.go:115
↓ 5 callers
Function
runAssert
(msg string, args ...interface{})
pkg/assert/assert.go:40
↓ 4 callers
Function
AssertConnectionCount
(state *ServerState, counts gameserverstats.GameServecConfigConnectionStats, dur time.Duration)
e2e-tests/sim/assert.go:60
↓ 4 callers
Method
Close
()
pkg/api/server.go:234
↓ 4 callers
Method
Close
()
pkg/am-proxy/am-proxy.go:191
↓ 4 callers
Function
CreateEnvironment
(ctx context.Context, path string, params servermanagement.ServerParams)
e2e-tests/sim/create_env.go:105
↓ 4 callers
Function
CreateLogger
(name string)
e2e-tests/sim/utils.go:20
↓ 4 callers
Method
GetAllGameServerConfigs
()
pkg/game-server-stats/stats.go:85
↓ 4 callers
Function
KillContext
(cancel context.CancelFunc)
e2e-tests/sim/utils.go:12
↓ 4 callers
Function
NotNil
(item any, msg string, data ...any)
pkg/assert/assert.go:87
↓ 4 callers
Method
Remove
(conns []*api.Client)
e2e-tests/sim/assert.go:97
↓ 4 callers
Method
SetSqliteModes
()
pkg/game-server-stats/sqlite.go:102
↓ 4 callers
Method
WaitForReady
(ctx context.Context, id string)
pkg/am-proxy/game.go:14
↓ 4 callers
Function
machine
(machineId string)
pkg/server-management/flyio.go:30
↓ 3 callers
Function
AssertClient
(state *ServerState, client *api.Client)
e2e-tests/sim/assert.go:35
↓ 3 callers
Method
Close
()
e2e-tests/sim/state.go:25
↓ 3 callers
Method
Connect
(ctx context.Context)
pkg/api/client.go:122
↓ 3 callers
Method
CreateBatchedConnections
(count int)
e2e-tests/sim/connections.go:161
↓ 3 callers
Function
HandleCtrlC
(cancel context.CancelFunc)
pkg/ctrlc/ctlrc.go:12
↓ 3 callers
Method
Id
()
pkg/api/client.go:107
↓ 3 callers
Method
Len
()
pkg/quick-math/Vec.go:29
↓ 3 callers
Function
NewPacket
(encoder PacketEncoder)
pkg/packet/packet.go:153
↓ 3 callers
Method
Read
(data []byte)
pkg/packet/packet.go:194
↓ 3 callers
Function
copyFile
(from string, to string)
e2e-tests/sim/create_env.go:64
↓ 3 callers
Method
nextInt
(min int, max int)
e2e-tests/sim/sim.go:59
↓ 3 callers
Function
sumConfigConns
(configs []gameserverstats.GameServerConfig)
e2e-tests/sim/assert.go:82
↓ 2 callers
Method
Add
()
e2e-tests/sim/connections.go:94
↓ 2 callers
Method
Add
(conn AMConnection)
pkg/am-proxy/am-proxy.go:74
↓ 2 callers
Function
AssertAllClientsSameServer
(state *ServerState, clients []*api.Client)
e2e-tests/sim/assert.go:23
↓ 2 callers
Function
AssertClients
(state *ServerState, clients []*api.Client)
e2e-tests/sim/assert.go:17
↓ 2 callers
Function
ClientStateToString
(state ClientState)
pkg/api/client.go:28
↓ 2 callers
Method
Close
()
pkg/game-server-stats/sqlite.go:90
↓ 2 callers
Method
CreateBatchedConnectionsWithWait
(count int, wait *sync.WaitGroup)
e2e-tests/sim/connections.go:149
↓ 2 callers
Function
CreateClientAuth
(id []byte)
pkg/packet/packet.go:129
↓ 2 callers
Function
CreateErrorPacket
(err error)
pkg/packet/packet.go:107
↓ 2 callers
Method
CreateGameServerConfigs
createTable creates the GameServerConfigs table
pkg/game-server-stats/sqlite.go:33
↓ 2 callers
Method
CreateNewServer
(ctx context.Context)
pkg/am-proxy/game.go:13
↓ 2 callers
Function
CreateTypeAndEncodingByte
(t PacketType, enc Encoding)
pkg/packet/packet.go:80
↓ 2 callers
Method
Disconnect
()
pkg/api/client.go:185
↓ 2 callers
Method
Filter
(line LogLine)
cmd/log-parser/main.go:57
↓ 2 callers
Function
GetDBPath
(name string)
e2e-tests/sim/create_env.go:91
↓ 2 callers
Function
GetFreePort
GetFreePort asks the kernel for a free open port that is ready to use.
pkg/api/utils.go:8
↓ 2 callers
Method
GetServersByUtilization
(maxLoad float64)
pkg/game-server-stats/stats.go:87
↓ 2 callers
Method
Len
()
e2e-tests/sim/connections.go:46
↓ 2 callers
Method
LenSq
()
pkg/quick-math/Vec.go:33
↓ 2 callers
Function
NewClient
(host string, port uint16, id [16]byte)
pkg/api/client.go:92
↓ 2 callers
Function
NewFilter
(line string)
cmd/log-parser/main.go:61
↓ 2 callers
Function
NewSuicedek
(ctx context.Context, cancel context.CancelFunc)
cmd/test/main.go:22
↓ 2 callers
Function
NewTestingClientFactory
(host string, port uint16, logger *slog.Logger)
e2e-tests/sim/connections.go:141
↓ 2 callers
Method
NewWait
this is getting hacky...
e2e-tests/sim/connections.go:186
↓ 2 callers
Method
Norm
()
pkg/quick-math/Vec.go:37
↓ 2 callers
Function
PacketFromBytes
(data []byte)
pkg/packet/packet.go:138
↓ 2 callers
Function
PrettyPrintBytes
(data []byte, printMax int)
pkg/utils/pretty.go:8
↓ 2 callers
Method
Push
(data []byte)
pkg/packet/packet.go:220
↓ 2 callers
Method
Read
(in io.Reader)
pkg/utils/context.go:43
↓ 2 callers
Method
Run
(ctx context.Context)
pkg/game-server-stats/sqlite.go:154
↓ 2 callers
Method
WaitForReady
()
pkg/api/client.go:177
↓ 2 callers
Method
Write
(b []byte)
pkg/cmd/cmd.go:19
↓ 2 callers
Function
getClientLogger
(id []byte)
pkg/api/client.go:68
↓ 2 callers
Function
getId
()
cmd/api-server/main.go:17
↓ 2 callers
Function
getNextBatch
(s *Simulation, remaining int)
e2e-tests/sim/sim.go:53
↓ 2 callers
Function
getNextId
()
e2e-tests/sim/connections.go:15
↓ 2 callers
Function
getPacketLength
(data []byte)
pkg/packet/packet.go:134
↓ 2 callers
Method
incConnections
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 callers
Function
p
(msg string, count int)
cmd/log-parser/main.go:167
↓ 2 callers
Method
setPragma
(name string, value string)
pkg/game-server-stats/sqlite.go:94
↓ 2 callers
Function
toLog
(line string)
cmd/log-parser/main.go:138
↓ 1 callers
Method
Add
(conns []*api.Client)
e2e-tests/sim/assert.go:90
↓ 1 callers
Method
AddBatch
(count int)
e2e-tests/sim/connections.go:82
↓ 1 callers
Method
AddVArgv
(value []string)
pkg/cmd/cmd.go:53
↓ 1 callers
Method
Addr
()
pkg/game-server-stats/stats.go:78
↓ 1 callers
Method
AssertRound
(adds, removes []*api.Client)
e2e-tests/sim/state.go:98
↓ 1 callers
Function
AssertServerState
(before []gameserverstats.GameServerConfig, after []gameserverstats.GameServerConfig, adds []*api.Client, remo
e2e-tests/sim/assert.go:112
↓ 1 callers
Function
AssertServerStateCreation
(server *ServerState, configs []ServerCreationConfig)
e2e-tests/sim/assert.go:77
next →
1–100 of 317, ranked by callers