Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsProcessNotFoundError ¶
IsProcessNotFoundError checks if the specified error is occurred because the LeagueClient process could not be found.
Types ¶
type ConnectInfo ¶
type ConnectInfo struct { // Indicates the port of the LCU Port string // Indicates the authentication token of the LCU AuthToken string }
ConnectInfo represents information to connect to the lcu. Please keep in mind that these information can change when the LCU is restarted or closed.
func FindLCUConnectInfo ¶
func FindLCUConnectInfo() (*ConnectInfo, error)
FindLCUConnectInfo searches over all processes to find the LeagueClient process (LeagueClientUx.exe) Then it checks the full commandline of the process to find the program arguments for the port and the auth-token
If the process could not be found a dedicated error is thrown. You can check this error with the function IsProcessNotFoundError
Click to show internal directories.
Click to hide internal directories.