Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clrxbl/blockgametracker
/ functions
Functions
65 in github.com/clrxbl/blockgametracker
⨍
Functions
65
◇
Types & classes
11
↓ 5 callers
Function
GetEnv
(key, fallback string)
internal/config/config.go:96
↓ 5 callers
Method
List
List returns spooled file paths sorted oldest-first.
internal/queue/spool.go:48
↓ 5 callers
Method
Write
Write persists a batch atomically as <unix_nanos>-<rand>.fb. The filename timestamp is used to drain oldest-first.
internal/queue/spool.go:28
↓ 4 callers
Method
Load
(path string)
internal/config/config.go:36
↓ 3 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:35
↓ 3 callers
Function
NewSpool
(dir string)
internal/queue/spool.go:19
↓ 3 callers
Method
drain
(ctx context.Context)
internal/queue/loop.go:68
↓ 2 callers
Method
Init
(buf []byte, i flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:35
↓ 2 callers
Method
Push
Push sends a single message to the queue. The body is base64-encoded and sent with content_type=bytes so the consumer receives the raw flatbuffers pay
internal/queue/client.go:42
↓ 2 callers
Function
QueryAll
QueryAll pings every enabled server across both editions concurrently and returns all successful results. Failed pings are logged and omitted.
internal/ping/ping.go:116
↓ 2 callers
Method
Read
(path string)
internal/queue/spool.go:68
↓ 2 callers
Method
Snapshot
()
internal/config/config.go:30
↓ 2 callers
Method
tick
(ctx context.Context)
internal/queue/loop.go:45
↓ 1 callers
Function
ApplyToGauge
ApplyToGauge resets the gauge and writes one sample per result, matching the labels emitted by the original scrape-triggered exporter.
internal/ping/metrics.go:17
↓ 1 callers
Method
Delete
(path string)
internal/queue/spool.go:72
↓ 1 callers
Function
EncodeBatch
EncodeBatch builds a flatbuffers PingBatch root containing the given results.
internal/queue/encode.go:22
↓ 1 callers
Function
NewClient
(accountID, queueID, token string)
internal/queue/client.go:24
↓ 1 callers
Function
NewStore
()
internal/config/config.go:28
↓ 1 callers
Method
Run
Run blocks until ctx is cancelled. Each tick pings all enabled servers, pushes the batch, and (on success) drains up to DrainPerTick spooled batches i
internal/queue/loop.go:26
↓ 1 callers
Method
Watch
(path string)
internal/config/config.go:56
↓ 1 callers
Function
buildProducer
(store *config.Store)
main.go:72
↓ 1 callers
Function
platformFor
(edition string)
internal/queue/encode.go:10
↓ 1 callers
Function
queryOne
(edition, name, queryHostname string)
internal/ping/ping.go:44
Method
AsName
()
blockgametracker_protocol/ping/Ping.go:97
Method
AsNumber
()
blockgametracker_protocol/ping/Ping.go:84
Function
FinishPingBatchBuffer
(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:20
Function
FinishPingBuffer
(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:20
Function
FinishSizePrefixedPingBatchBuffer
(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:31
Function
FinishSizePrefixedPingBuffer
(builder *flatbuffers.Builder, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:31
Function
GetRootAsPing
(buf []byte, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:13
Function
GetRootAsPingBatch
(buf []byte, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:13
Function
GetSizePrefixedRootAsPing
(buf []byte, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:24
Function
GetSizePrefixedRootAsPingBatch
(buf []byte, offset flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:24
Method
MutateAsNumber
(n uint32)
blockgametracker_protocol/ping/Ping.go:93
Method
MutatePlatform
(n Platform)
blockgametracker_protocol/ping/Ping.go:80
Method
MutatePlayerCount
(n uint32)
blockgametracker_protocol/ping/Ping.go:114
Method
MutateTime
(n uint64)
blockgametracker_protocol/ping/Ping.go:52
Function
PingAddAsName
(builder *flatbuffers.Builder, asName flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:137
Function
PingAddAsNumber
(builder *flatbuffers.Builder, asNumber uint32)
blockgametracker_protocol/ping/Ping.go:133
Function
PingAddPlatform
(builder *flatbuffers.Builder, platform Platform)
blockgametracker_protocol/ping/Ping.go:130
Function
PingAddPlayerCount
(builder *flatbuffers.Builder, playerCount uint32)
blockgametracker_protocol/ping/Ping.go:140
Function
PingAddServer
(builder *flatbuffers.Builder, server flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:124
Function
PingAddServerAddress
(builder *flatbuffers.Builder, serverAddress flatbuffers.UOffsetT)
blockgametracker_protocol/ping/Ping.go:127
Function
PingAddTime
(builder *flatbuffers.Builder, time uint64)
blockgametracker_protocol/ping/Ping.go:121
Function
PingBatchAddPings
(builder *flatbuffers.Builder, pings flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:78
Function
PingBatchAddSource
(builder *flatbuffers.Builder, source flatbuffers.UOffsetT)
blockgametracker_protocol/ping/PingBatch.go:75
Function
PingBatchEnd
(builder *flatbuffers.Builder)
blockgametracker_protocol/ping/PingBatch.go:84
Function
PingBatchStart
(builder *flatbuffers.Builder)
blockgametracker_protocol/ping/PingBatch.go:72
Function
PingBatchStartPingsVector
(builder *flatbuffers.Builder, numElems int)
blockgametracker_protocol/ping/PingBatch.go:81
Function
PingEnd
(builder *flatbuffers.Builder)
blockgametracker_protocol/ping/Ping.go:144
Function
PingStart
(builder *flatbuffers.Builder)
blockgametracker_protocol/ping/Ping.go:118
Method
Pings
(obj *Ping, j int)
blockgametracker_protocol/ping/PingBatch.go:52
Method
PingsLength
()
blockgametracker_protocol/ping/PingBatch.go:64
Method
Platform
()
blockgametracker_protocol/ping/Ping.go:72
Method
PlayerCount
()
blockgametracker_protocol/ping/Ping.go:105
Method
Server
()
blockgametracker_protocol/ping/Ping.go:56
Method
ServerAddress
()
blockgametracker_protocol/ping/Ping.go:64
Method
Source
()
blockgametracker_protocol/ping/PingBatch.go:44
Method
String
()
blockgametracker_protocol/ping/Platform.go:27
Method
Table
()
blockgametracker_protocol/ping/Ping.go:40
Method
Table
()
blockgametracker_protocol/ping/PingBatch.go:40
Function
TestDrainAfterSuccessfulPush
(t *testing.T)
internal/queue/spool_drain_test.go:11
Function
TestDrainStopsOnFailureToPreserveOrder
(t *testing.T)
internal/queue/spool_drain_test.go:68
Method
Time
()
blockgametracker_protocol/ping/Ping.go:44
Function
main
()
main.go:22