MCPcopy Create free account
hub / github.com/and3rson/raid / APIServer

Struct APIServer

raid/api.go:61–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61type APIServer struct {
62 port uint16
63 apiKeys []string
64 apiKeysMap map[string]bool
65 updaterState *UpdaterState
66 updates *Topic[Update]
67 mapData *MapData
68 listRecordsFunc func() ([]Record, error)
69 addrRateLimiter throttled.RateLimiter
70 apiKeyRateLimiter throttled.RateLimiter
71 staticDirFS fs.FS
72}
73
74func CreateRateLimiter(perSec int, burst int) throttled.RateLimiter {
75 store, err := memstore.New(16384)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected