(src interface{})
| 2175 | ) |
| 2176 | |
| 2177 | func (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 | |
| 2189 | type NullLogSource struct { |
| 2190 | LogSource LogSource `json:"log_source"` |