config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteConfigFile

func DeleteConfigFile() error

func WriteConfigToFile

func WriteConfigToFile(config ConfigData) error

Types

type ConfigData

type ConfigData struct {
	User                string `toml:"user"`
	Token               string `toml:"token"`
	TokenExpiry         string `toml:"token_expiry"`
	RefreshToken        string `toml:"refresh_token"`
	OrigIAT             int64  `toml:"origIat"`
	RefreshTokenExpiry  int64  `toml:"refresh_token_expiry"`
	RefreshTokenSetTime int64  `toml:"refresh_token_set_time"`
}

func ReadConfig

func ReadConfig() (ConfigData, error)

Jump to

Keyboard shortcuts

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