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

Method Scan

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

Source from the content-addressed store, hash-verified

2820)
2821
2822func (e *PortShareProtocol) Scan(src interface{}) error {
2823 switch s := src.(type) {
2824 case []byte:
2825 *e = PortShareProtocol(s)
2826 case string:
2827 *e = PortShareProtocol(s)
2828 default:
2829 return fmt.Errorf("unsupported scan type for PortShareProtocol: %T", src)
2830 }
2831 return nil
2832}
2833
2834type NullPortShareProtocol struct {
2835 PortShareProtocol PortShareProtocol `json:"port_share_protocol"`

Callers

nothing calls this directly

Calls 2

PortShareProtocolTypeAlias · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected