Documentation
¶
Index ¶
- type VersionInfo
- type VersionService
- func (v *VersionService) GetVersion(ctx context.Context, ver *semver.Version) (*VersionInfo, bool)
- func (v *VersionService) GetVersions(ctx context.Context) (map[string]*VersionInfo, error)
- func (v *VersionService) RefreshVersions(ctx context.Context) error
- func (v *VersionService) StartRefresh(interval time.Duration, exit chan struct{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VersionInfo ¶
type VersionService ¶
type VersionService struct {
// contains filtered or unexported fields
}
func NewVersionService ¶
func NewVersionService(logger *zap.Logger, owner, repo string) (*VersionService, error)
func (*VersionService) GetVersion ¶
func (v *VersionService) GetVersion(ctx context.Context, ver *semver.Version) (*VersionInfo, bool)
func (*VersionService) GetVersions ¶
func (v *VersionService) GetVersions(ctx context.Context) (map[string]*VersionInfo, error)
func (*VersionService) RefreshVersions ¶
func (v *VersionService) RefreshVersions(ctx context.Context) error
func (*VersionService) StartRefresh ¶
func (v *VersionService) StartRefresh(interval time.Duration, exit chan struct{})
Click to show internal directories.
Click to hide internal directories.