Documentation
¶
Index ¶
- Constants
- func CredentialServiceName(baseURL string) string
- func ValidateBaseURL(value string) (string, error)
- type Service
- func (s *Service) Devices(ctx context.Context) ([]cli.Device, error)
- func (s *Service) Doctor(ctx context.Context) ([]cli.DoctorCheck, error)
- func (s *Service) History(ctx context.Context) ([]cli.HistoryItem, error)
- func (s *Service) HistoryShow(ctx context.Context, messageID string) (cli.HistoryDetail, error)
- func (s *Service) Login(ctx context.Context, request cli.LoginRequest) (cli.PairResult, error)
- func (s *Service) Logout(ctx context.Context) error
- func (s *Service) Pair(ctx context.Context, request cli.PairRequest) (cli.PairResult, error)
- func (s *Service) Push(ctx context.Context, request cli.PushRequest) (cli.PushResult, error)
- func (s *Service) Rename(ctx context.Context, name string) error
- func (s *Service) Status(ctx context.Context) (cli.StatusResult, error)
- func (s *Service) Usage(ctx context.Context) (cli.UsageResult, error)
- type WaitFunc
Constants ¶
View Source
const DefaultBaseURL = "https://api.pushman.io/v1"
Variables ¶
This section is empty.
Functions ¶
func CredentialServiceName ¶
func ValidateBaseURL ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) HistoryShow ¶
func (*Service) Login ¶
func (s *Service) Login(ctx context.Context, request cli.LoginRequest) (cli.PairResult, error)
func (*Service) Pair ¶
func (s *Service) Pair(ctx context.Context, request cli.PairRequest) (cli.PairResult, error)
func (*Service) Push ¶
func (s *Service) Push(ctx context.Context, request cli.PushRequest) (cli.PushResult, error)
Click to show internal directories.
Click to hide internal directories.