Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBStore ¶
type DBStore struct{}
DBStore can be used to store app state items in local filesystem
type RuntimeState ¶
type RuntimeState struct { LastAppPath string `json:"last_app_path"` LastCustomConf string `json:"last_custom_conf"` }
RuntimeState contains app state for runtime, and we can save remote version for update checker here in future
type StateItem ¶
type StateItem interface {
Name() string
}
StateItem provides the name for a state item. the name will be used to generate filenames, etc
type StateStore ¶
StateStore is the interface to get/set app state items
var AppState StateStore
AppState contains the state items for the app
Click to show internal directories.
Click to hide internal directories.