Versions in this module Expand all Collapse all v1 v1.0.2 Dec 25, 2022 v1.0.1 Sep 8, 2022 Changes in this version + var NotAvailableErr = errors.New("No update available") + func CheckRequestParam(appID string, opts *Options) (payload []byte, err error) + type Options struct + Arch string + Channel string + CheckURL string + CurrentVersion string + GoARM string + HTTPClient *http.Client + OS string + PublicKey crypto.PublicKey + TargetMode os.FileMode + TargetPath string + Version string + func (o *Options) SetPublicKeyPEM(pembytes []byte) error + type Response struct + ReleaseDate time.Time + ReleaseDescription string + ReleaseTitle string + ReleaseVersion string + func Check(appID string, opts Options) (Response, error) + func CheckContext(ctx context.Context, appID string, opts Options) (Response, error) + func CheckForData(data string, opts Options) (r Response, err error) + func (r Response) Apply() error + func (r Response) ApplyContext(ctx context.Context) error