MCPcopy Index your code
hub / github.com/coder/coder / Scan

Method Scan

coderd/database/models.go:325–335  ·  view source on GitHub ↗
(src interface{})

Source from the content-addressed store, hash-verified

323)
324
325func (e *APIKeyScope) Scan(src interface{}) error {
326 switch s := src.(type) {
327 case []byte:
328 *e = APIKeyScope(s)
329 case string:
330 *e = APIKeyScope(s)
331 default:
332 return fmt.Errorf("unsupported scan type for APIKeyScope: %T", src)
333 }
334 return nil
335}
336
337type NullAPIKeyScope struct {
338 APIKeyScope APIKeyScope `json:"api_key_scope"`

Callers

nothing calls this directly

Calls 2

APIKeyScopeTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected