config

package
v0.0.0-...-0b98263 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

package config exposes application specific configurations and sessions. Sessions store ephemeral things such as last window position, last view, and recent file list, etc. Configurations store more long lasting things such as user preferences.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemons

type Daemons struct {
	Freshen bool `json:"freshen"`
	Scraper bool `json:"scraper"`
	Ipfs    bool `json:"ipfs"`
}

type Session

type Session struct {
	X           int     `json:"x"`
	Y           int     `json:"y"`
	Width       int     `json:"width"`
	Height      int     `json:"height"`
	Title       string  `json:"title"`
	LastRoute   string  `json:"lastRoute"`
	LastTab     string  `json:"lastTab"`
	LastAddress string  `json:"lastAddress"`
	LastSeries  string  `json:"lastSeries"`
	LastHelp    string  `json:"lastHelp"`
	Daemons     Daemons `json:"daemons"`
}

Session stores ephemeral things such as last window position, last view, and recent file

func NewSession

func NewSession() Session

func (*Session) Load

func (s *Session) Load() bool

Load loads the session from the configuration folder. If the file contains data, we return true. False otherwise.

func (*Session) Save

func (s *Session) Save()

Save saves the session to the configuration folder.

Jump to

Keyboard shortcuts

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