Versions in this module Expand all Collapse all v1 v1.0.0 Nov 3, 2022 Changes in this version + func GenerateToken(opts *TokenProviderOptions, name string, expiresIn int64) (string, error) + func Login(opts *TokenProviderOptions, user, pass string) (string, error) + type TokenProvider interface + CreateSession func(username, password string) (string, error) + CreateTokenForAccount func(name string) (string, error) + SetAuthToken func(token string) + func NewTokenProvider(opts *TokenProviderOptions) (TokenProvider, error) + type TokenProviderOptions struct + AuthToken string + DebugClient bool + ServerUrl string + UserAgent string