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

Method Scan

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

Source from the content-addressed store, hash-verified

2238)
2239
2240func (e *LoginType) Scan(src interface{}) error {
2241 switch s := src.(type) {
2242 case []byte:
2243 *e = LoginType(s)
2244 case string:
2245 *e = LoginType(s)
2246 default:
2247 return fmt.Errorf("unsupported scan type for LoginType: %T", src)
2248 }
2249 return nil
2250}
2251
2252type NullLoginType struct {
2253 LoginType LoginType `json:"login_type"`

Callers

nothing calls this directly

Calls 2

LoginTypeTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected