(src interface{})
| 83 | type ChatACL map[string]ChatACLEntry |
| 84 | |
| 85 | func (c *ChatACL) Scan(src interface{}) error { |
| 86 | switch v := src.(type) { |
| 87 | case string: |
| 88 | return json.Unmarshal([]byte(v), &c) |
| 89 | case []byte: |
| 90 | return json.Unmarshal(v, &c) |
| 91 | case json.RawMessage: |
| 92 | return json.Unmarshal(v, &c) |
| 93 | } |
| 94 | |
| 95 | return xerrors.Errorf("unexpected type %T", src) |
| 96 | } |
| 97 | |
| 98 | //nolint:revive |
| 99 | func (c ChatACL) RBACACL() map[string][]policy.Action { |
no test coverage detected