settings

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultResponseLimit = 100

DefaultResponseLimit is the default number of responses to return on requests that can be limited.

Variables

View Source
var UserAgent = "Drycc Client " + version.Version

UserAgent is the user agent used by the CLI

Functions

func Delete

func Delete(cf string) error

Delete user's settings file.

func FindHome

func FindHome() string

FindHome returns the HOME directory of the current user

func SetHome

func SetHome(path string)

SetHome sets the HOME directory of the current user

Types

type Settings

type Settings struct {
	Username string
	Limit    int
	Client   *drycc.Client
}

Settings is the settings object created from the settings file.

func Load

func Load(cf string) (*Settings, error)

Load loads a new client from a settings file.

func (*Settings) Save

func (s *Settings) Save(cf string) (string, error)

Save settings to a file

Jump to

Keyboard shortcuts

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