Documentation ¶
Index ¶
Constants ¶
View Source
const USER_AGENT = "User-Agent"
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(opts *config.TokenOptions) []error
func Fetch(ztsUrl, domain string, svcs []string, tokens []ac.AccessToken) []error {
func ToBeRefreshed ¶
func ToBeRefreshed(tokenDir string, tokens []config.AccessToken) ([]config.AccessToken, []error)
ToBeRefreshed looks into /var/lib/sia/tokens folder and returns the list of tokens whose age is half of their validity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.