Versions in this module Expand all Collapse all v0 v0.1.0 Sep 24, 2024 Changes in this version + var ErrBundleNotFound = errors.New("bundle is not found") + var ErrCacheInvalid = errors.New("unexpected error (cache issue)") + var ErrGetLatestQueryInvalid = errors.New("GetLatest information is incompleted, cannot find the latest release") + var ErrInvalidBundleForRelease = errors.New("release contains invalid bundle id") + var ErrReleaseNotFound = errors.New("release is found") + var NilLatestResult = GetLatestResult + type GetLatestQuery struct + AppID string + Platform db.Platform + VersionCode string + VersionName string + func (c GetLatestQuery) IsValid() bool + type GetLatestResult struct + Builtin bool + Bundle db.Bundle + func (r GetLatestResult) Checksum() string + func (r GetLatestResult) PublicDownloadURL() string + func (r GetLatestResult) Signature() string + func (r GetLatestResult) VersionName() string + type UpdateService struct + func (svc *UpdateService) CreateBundleDownloadURL(ctx context.Context, bundleID primitive.ObjectID) (*url.URL, error) + func (svc *UpdateService) GetLatest(ctx context.Context, query GetLatestQuery) (GetLatestResult, error)