client

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultBaseURL = "https://api.pushman.whitekiwi.link/v1"

Variables

This section is empty.

Functions

func CredentialServiceName

func CredentialServiceName(baseURL string) string

func ValidateBaseURL

func ValidateBaseURL(value string) (string, error)

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(baseURL string, credentials credential.Store, automationToken string, httpClient *http.Client) (*Service, error)

func (*Service) Devices

func (s *Service) Devices(ctx context.Context) ([]cli.Device, error)

func (*Service) Doctor

func (s *Service) Doctor(ctx context.Context) ([]cli.DoctorCheck, error)

func (*Service) History

func (s *Service) History(ctx context.Context) ([]cli.HistoryItem, error)

func (*Service) HistoryShow

func (s *Service) HistoryShow(ctx context.Context, messageID string) (cli.HistoryDetail, error)

func (*Service) Login

func (s *Service) Login(ctx context.Context, request cli.LoginRequest) (cli.PairResult, error)

func (*Service) Logout

func (s *Service) Logout(ctx context.Context) 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)

func (*Service) Rename

func (s *Service) Rename(ctx context.Context, name string) error

func (*Service) Status

func (s *Service) Status(ctx context.Context) (cli.StatusResult, error)

func (*Service) Usage

func (s *Service) Usage(ctx context.Context) (cli.UsageResult, error)

type WaitFunc

type WaitFunc func(context.Context, time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL