Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenExpired = errors.New("token is expired, please login")
)
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { URI string `json:"uri"` ExpiresAt int64 `json:"expires_at"` AccessToken string `json:"access_token"` // contains filtered or unexported fields }
func LoadFromPath ¶
LoadFromPath loads an existing session from a file.
func (Session) SetAccessToken ¶
func (Session) SetExpiresAt ¶
Click to show internal directories.
Click to hide internal directories.