logic

package
v0.0.0-...-843db3f Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartSync

func StartSync(s *AppState, sync *config.SyncConfig, logOut chan string)

StartSync starts a sync. This function blocks until the sync is complete.

Types

type AppState

type AppState struct {
	Config     *config.Config
	ConfigDir  string
	ConfigFile string
	Locale     lang.Locale
	Progress   struct {
		Sync      atomic.Pointer[config.SyncConfig]
		Completed atomic.Int64
		Failed    atomic.Int64
		Total     atomic.Int64
	}
}

AppState is the state of the application.

func Init

func Init() (*AppState, error)

Init initializes the application and returns the state.

func (*AppState) Save

func (s *AppState) Save() error

Save saves the application state to disk, including configuration.

Jump to

Keyboard shortcuts

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