settings

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCA

func LoadCA() (cert []byte, pk []byte, err error)

func RegenerateCA

func RegenerateCA() (cert []byte, pk []byte, err error)

func Save

func Save(s *Settings) error

Types

type Provider

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

func Load

func Load() (*Provider, error)

func (*Provider) Get

func (p *Provider) Get() Settings

func (*Provider) Modify

func (p *Provider) Modify(modifier func(s *Settings)) error

type Settings

type Settings struct {
	CACert    []byte
	CAKey     []byte
	ProxyPort int
	ProxyHost string
	LogLevel  log.Level
	DarkMode  bool
}

func (Settings) WithCA

func (s Settings) WithCA(cert []byte, key []byte) Settings

Jump to

Keyboard shortcuts

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