String returns the string representation of the connection status.
()
| 35 | |
| 36 | // String returns the string representation of the connection status. |
| 37 | func (s ProfileConnectionStatus) String() string { |
| 38 | switch s { |
| 39 | case ProfileStatusConnected: |
| 40 | return "connected" |
| 41 | case ProfileStatusDisconnected: |
| 42 | return "disconnected" |
| 43 | case ProfileStatusError: |
| 44 | return "error" |
| 45 | default: |
| 46 | return "unknown" |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // SetStatus safely updates the profile's connection status. |
| 51 | func (pc *ProfileClient) SetStatus(status ProfileConnectionStatus, err error) { |
no outgoing calls
no test coverage detected