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

Method Scan

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

Source from the content-addressed store, hash-verified

2378)
2379
2380func (e *NotificationMethod) Scan(src interface{}) error {
2381 switch s := src.(type) {
2382 case []byte:
2383 *e = NotificationMethod(s)
2384 case string:
2385 *e = NotificationMethod(s)
2386 default:
2387 return fmt.Errorf("unsupported scan type for NotificationMethod: %T", src)
2388 }
2389 return nil
2390}
2391
2392type NullNotificationMethod struct {
2393 NotificationMethod NotificationMethod `json:"notification_method"`

Callers 2

NewStoreEnqueuerFunction · 0.95
NewManagerFunction · 0.95

Calls 2

NotificationMethodTypeAlias · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected