mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 23:57:50 -05:00
16 lines
224 B
Go
16 lines
224 B
Go
package proton
|
|
|
|
import "context"
|
|
|
|
func (m *Manager) Ping(ctx context.Context) error {
|
|
if res, err := m.r(ctx).Get("/tests/ping"); err != nil {
|
|
if res.RawResponse != nil {
|
|
return nil
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
return nil
|
|
}
|