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

Method Scan

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

Source from the content-addressed store, hash-verified

2175)
2176
2177func (e *LogSource) Scan(src interface{}) error {
2178 switch s := src.(type) {
2179 case []byte:
2180 *e = LogSource(s)
2181 case string:
2182 *e = LogSource(s)
2183 default:
2184 return fmt.Errorf("unsupported scan type for LogSource: %T", src)
2185 }
2186 return nil
2187}
2188
2189type NullLogSource struct {
2190 LogSource LogSource `json:"log_source"`

Callers

nothing calls this directly

Calls 2

LogSourceTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected