updater

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUpdateService

type IUpdateService interface {
	CheckNewVersion(ctx context.Context) (*responses.GetNewVersionResponse, error)
	Update(ctx context.Context) error
}

type Option

type Option func(c *Service)

type Service

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

func NewService

func NewService(_ context.Context, log logger.Logger, conf *config.Config, opts ...Option) (*Service, error)

func (*Service) CheckNewVersion

func (u *Service) CheckNewVersion(ctx context.Context) (*responses.GetNewVersionResponse, error)

func (*Service) UpdateToNewVersion

func (u *Service) UpdateToNewVersion(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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