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

Method Scan

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

Source from the content-addressed store, hash-verified

4291)
4292
4293func (e *WorkspaceTransition) Scan(src interface{}) error {
4294 switch s := src.(type) {
4295 case []byte:
4296 *e = WorkspaceTransition(s)
4297 case string:
4298 *e = WorkspaceTransition(s)
4299 default:
4300 return fmt.Errorf("unsupported scan type for WorkspaceTransition: %T", src)
4301 }
4302 return nil
4303}
4304
4305type NullWorkspaceTransition struct {
4306 WorkspaceTransition WorkspaceTransition `json:"workspace_transition"`

Callers

nothing calls this directly

Calls 2

WorkspaceTransitionTypeAlias · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected