userconfig

package
v0.4.40 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken() (string, error)

func GetAccountId

func GetAccountId() (string, error)

func GetOrCreateNeosyncFolder

func GetOrCreateNeosyncFolder() (string, error)

Get or Creates the Nucleus folder that lives and stores persisted settings.

1. Checks for directory specified by env var NEOSYNC_CONFIG_DIR 2. Checks for existence of XDG_CONFIG_HOME and append "neosync" to it, if exists 3. Use ~/.neosync

func GetRefreshToken

func GetRefreshToken() (string, error)

func RemoveAccessToken

func RemoveAccessToken() error

func RemoveRefreshToken

func RemoveRefreshToken() error

func SetAccessToken

func SetAccessToken(token string) error

func SetAccountId

func SetAccountId(id string) error

func SetRefreshToken

func SetRefreshToken(token string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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