Help us shape the future of Go! Take the 2026 Go Developer Survey

app

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Config             *config.Config
	MainPool           pond.Pool
	DownloadPool       pond.ResultPool[common.Result]
	CompressionPool    pond.ResultPool[common.Result]
	Downloader         *common.Downloader
	DeCompressor       *common.DeCompressor
	Storage            *common.Storage
	DownloadCache      *cache.Cache
	GitHubClient       *github.Client
	HTTPClient         *http.Client
	Signer             pgp.Signer
	PublicKeyASCII     []byte // ASCII-armored public key
	PublicKeyBinary    []byte // Binary (dearmored) public key
	PreparedPublicKey  string // Path to prepared public key file
	PreparedPrivateKey string // Path to prepared private key file
	KeyCleanup         func() // Cleanup function for temporary key files
}

Application holds the initialized runtime components and configuration

func New

func New(ctx context.Context, cfg *config.Config) (*Application, error)

New creates and initializes a new Application from configuration

func (*Application) Fetch

func (a *Application) Fetch(ctx context.Context, repoNames []string) error

Fetch downloads and verifies packages from configured feeds for specified repositories

func (*Application) Generate

func (a *Application) Generate(ctx context.Context, repoNames []string) (err error)

Generate generates APT repository structures and web page for specified repositories

func (*Application) Publish

func (a *Application) Publish(ctx context.Context) error

Publish uploads generated repository to configured hosting provider

func (*Application) Serve

func (a *Application) Serve(ctx context.Context) error

Serve starts an HTTP server to serve the public directory

func (*Application) Shutdown

func (a *Application) Shutdown()

Shutdown gracefully stops all application components

Jump to

Keyboard shortcuts

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