Documentation ¶
Index ¶
- func AgreementHash(ctx context.Context) (string, error)
- func DownloadDevice(ctx context.Context, device DeviceInfo) (io.ReadCloser, error)
- func DownloadFont(ctx context.Context, fontFilename string) (io.ReadCloser, error)
- func DownloadSDK(ctx context.Context, sdk SDK) (io.ReadCloser, error)
- func ExchangeTicket(ctx context.Context, ticket, serviceURL string) (connectiq.Token, error)
- func Login(ctx context.Context, username, password string) (connectiq.Token, error)
- func RefreshToken(ctx context.Context, rToken string) (connectiq.Token, error)
- type DeviceInfo
- type SDK
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgreementHash ¶ added in v0.6.0
AgreementHash returns the MD5 hash of the agreement the same way the GUI does it
func DownloadDevice ¶
func DownloadDevice(ctx context.Context, device DeviceInfo) (io.ReadCloser, error)
func DownloadFont ¶ added in v0.6.0
func DownloadSDK ¶ added in v0.4.0
func ExchangeTicket ¶ added in v0.4.0
ExchangeTicket takes a ticket from the Oauth flow, and exhanges it for a token to be used in with the API
Types ¶
type DeviceInfo ¶
type DeviceInfo struct { DeviceUUID string `json:"deviceUuid"` PartNumber string `json:"partNumber"` Name string `json:"name"` ProductInfoFileExists bool `json:"productInfoFileExists"` CiqInfoFileExists bool `json:"ciqInfoFileExists"` Upcoming bool `json:"upcoming"` ProductInfoHash string `json:"productInfoHash"` CiqInfoHash string `json:"ciqInfoHash"` Group string `json:"group"` DisplayName string `json:"displayName"` LastUpdateTime datetime.DateTime `json:"lastUpdateTime"` Hidden bool `json:"hidden"` Faceit2Capable bool `json:"faceit2Capable"` }
func GetDeviceInfo ¶
func GetDeviceInfo(ctx context.Context) ([]DeviceInfo, error)
Click to show internal directories.
Click to hide internal directories.