Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanLoadTicket ¶
CanLoadTicket returns a boolean indicating if a cached ticket is present and can be loaded. Returns an error if an unexpected error occurs.
Types ¶
type Ticket ¶
type Ticket struct {
Email *string `json:"email"`
Name string `json:"nameOnPlatform"`
ProfileID string `json:"profileId"`
SessionID string `json:"sessionId"`
Expiration time.Time `json:"expiration"`
Token string `json:"ticket"`
}
func LoadTicket ¶
LoadTicket deserializes the cached ticket file and returns it. Should be prefaced with calling CanLoadTicket().
Click to show internal directories.
Click to hide internal directories.