config

package
v0.0.0-...-6a8b8c3 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StateDirectory

func StateDirectory() (v string, err error)

Types

type BrowserId

type BrowserId struct {
	Browser browser.Browser `json:"browser"`
	Id      string          `json:"id"`
}

func (BrowserId) IsEmpty

func (bi BrowserId) IsEmpty() bool

func (*BrowserId) Set

func (bi *BrowserId) Set(v string) (err error)

func (BrowserId) String

func (bi BrowserId) String() string

type Config

type Config struct {
	DefaultBrowser BrowserId   `json:"default-browser"`
	LoadedBrowsers []BrowserId `json:"-"`
	Home           string      `json:"-"`
}

func Default

func Default() (c Config, err error)

func (Config) Directory

func (c Config) Directory() (v string)

func (Config) GetAllSockets

func (c Config) GetAllSockets() (socks []string, err error)

func (Config) GetSocketPathForBrowserId

func (c Config) GetSocketPathForBrowserId(
	id BrowserId,
) (sock string, err error)

func (*Config) Read

func (c *Config) Read() (err error)

func (Config) ServerPath

func (c Config) ServerPath() string

func (*Config) Write

func (c *Config) Write() (err error)

Jump to

Keyboard shortcuts

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