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

Method isValidKeyFormat

internal/services/key_service.go:197–199  ·  view source on GitHub ↗

isValidKeyFormat performs basic validation on key format

(key string)

Source from the content-addressed store, hash-verified

195
196// isValidKeyFormat performs basic validation on key format
197func (s *KeyService) isValidKeyFormat(key string) bool {
198 return strings.TrimSpace(key) != ""
199}
200
201// RestoreMultipleKeys handles the business logic of restoring keys from a text block.
202func (s *KeyService) RestoreMultipleKeys(groupID uint, keysText string) (*RestoreKeysResult, error) {

Callers 2

processAndCreateKeysMethod · 0.95
filterValidKeysMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected