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

Method Scan

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

Source from the content-addressed store, hash-verified

2111)
2112
2113func (e *LogLevel) Scan(src interface{}) error {
2114 switch s := src.(type) {
2115 case []byte:
2116 *e = LogLevel(s)
2117 case string:
2118 *e = LogLevel(s)
2119 default:
2120 return fmt.Errorf("unsupported scan type for LogLevel: %T", src)
2121 }
2122 return nil
2123}
2124
2125type NullLogLevel struct {
2126 LogLevel LogLevel `json:"log_level"`

Callers

nothing calls this directly

Calls 2

LogLevelTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected