MCPcopy Create free account
hub / github.com/tbphp/gpt-load / pluckIDs

Function pluckIDs

internal/keypool/provider.go:644–650  ·  view source on GitHub ↗

pluckIDs extracts IDs from a slice of APIKey.

(keys []models.APIKey)

Source from the content-addressed store, hash-verified

642
643// pluckIDs extracts IDs from a slice of APIKey.
644func pluckIDs(keys []models.APIKey) []uint {
645 ids := make([]uint, len(keys))
646 for i, key := range keys {
647 ids[i] = key.ID
648 }
649 return ids
650}

Callers 2

RemoveKeysMethod · 0.85
RestoreMultipleKeysMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected