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

Method Scan

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

Source from the content-addressed store, hash-verified

1013)
1014
1015func (e *AuditAction) Scan(src interface{}) error {
1016 switch s := src.(type) {
1017 case []byte:
1018 *e = AuditAction(s)
1019 case string:
1020 *e = AuditAction(s)
1021 default:
1022 return fmt.Errorf("unsupported scan type for AuditAction: %T", src)
1023 }
1024 return nil
1025}
1026
1027type NullAuditAction struct {
1028 AuditAction AuditAction `json:"audit_action"`

Callers

nothing calls this directly

Calls 2

AuditActionTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected