app

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OptimizedFor = "develop"

	Name = "Vega Wallet Dev"
)

Variables

View Source
var (
	// VersionHash specifies the git commit used to build the application.
	// See VERSION_HASH in Makefile for details.
	VersionHash = "unknown"

	// Version specifies the version used to build the application.
	// See VERSION in Makefile for details.
	Version = "v0.14.0"

	About = fmt.Sprintf(aboutAppTemplate, Version, VersionHash)
)
View Source
var ErrLogLevelIsRequired = errors.New("the log level is required")

Functions

func StartupLogFilePath

func StartupLogFilePath() (string, error)

Types

type AppFilesLocation

type AppFilesLocation struct {
	ConfigFile     string `json:"applicationConfigFile"`
	StartupLogFile string `json:"startupLogFile"`
	BackendLogFile string `json:"backendLogFile"`
}

type Config

type Config struct {
	LogLevel       string          `json:"logLevel"`
	VegaHome       string          `json:"vegaHome"`
	DefaultNetwork string          `json:"defaultNetwork"`
	Telemetry      TelemetryConfig `json:"telemetry"`
}

func (*Config) EnsureIsValid

func (c *Config) EnsureIsValid() error

type ConfigLoader

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

func NewConfigLoader

func NewConfigLoader() (*ConfigLoader, error)

func (*ConfigLoader) GetConfig

func (l *ConfigLoader) GetConfig() (Config, error)

func (*ConfigLoader) IsConfigInitialised

func (l *ConfigLoader) IsConfigInitialised() (bool, error)

func (*ConfigLoader) MarkOnBoardingAsDone added in v0.11.2

func (l *ConfigLoader) MarkOnBoardingAsDone() error

func (*ConfigLoader) SaveConfig

func (l *ConfigLoader) SaveConfig(config Config) error

type FilesLocation

type FilesLocation struct {
	AppFiles  AppFilesLocation  `json:"appFiles"`
	HomeFiles HomeFilesLocation `json:"homeFiles"`
}

type HomeFilesLocation

type HomeFilesLocation struct {
	ServiceLogsDirectory string `json:"serviceLogsFolder"`
	WalletsFolder        string `json:"walletsFolder"`
	NetworksFolder       string `json:"networksFolder"`
}

type TelemetryConfig

type TelemetryConfig struct {
	// ConsentAsked is used to determine if the user has been asked for his
	// consent for telemetry collection.
	ConsentAsked bool `json:"consentAsked"`

	// Enabled is used to enable or disable the collection of errors on the
	// software.
	Enabled bool `json:"enabled"`
}

TelemetryConfig is used to configure the telemetry collection on the client.

Jump to

Keyboard shortcuts

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