gh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionInfo

type VersionInfo struct {
	SemVerVersion *semver.Version
	Name          string
}

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{})

Jump to

Keyboard shortcuts

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