state

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(
	path string,
	syncStartedAt time.Time,
	syncCompletedAt time.Time,
	repositories []Repository,
) error

Types

type Mirrors

type Mirrors struct {
	GeneratedAt     string       `json:"generated_at"`
	SyncStartedAt   string       `json:"sync_started_at,omitempty"`
	SyncCompletedAt string       `json:"sync_completed_at,omitempty"`
	Repositories    []Repository `json:"repositories"`
}

func Load

func Load(path string) (*Mirrors, error)

type Repository

type Repository struct {
	Name        string `json:"name"`
	LastSuccess bool   `json:"last_success"`
	Error       string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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