(src interface{})
| 2820 | ) |
| 2821 | |
| 2822 | func (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 | |
| 2834 | type NullPortShareProtocol struct { |
| 2835 | PortShareProtocol PortShareProtocol `json:"port_share_protocol"` |
nothing calls this directly
no test coverage detected