lcutil

package module
v0.0.0-...-606886a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 10 Imported by: 0

README

Bastion

interact with replay, live game, or the client api for league of legends

Getting Started

Game Config

The game.cfg file is located in

  • MacOS /Applications/League\ of\ Legends.app/Contents/LoL/Config/game.cfg

  • Windows C:\Riot Games\League Of Legends\Config\game.cfg

Note: You must have played a game once before its created.

Enabling TLS

Attempt to look at two places when your app first launches.

  1. Looks for the environmental LCU_SSH to be set to an absolute path
  2. Checks if its in a default spot -- windows C:\Documents\riotgames.pem -- unix/darwin ~/Documents/riotgames.pem

The pem file is located in Riots Documentation under root certificate link.

Useful Documentation

Some information that will help you with your journey

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DownloadFailedErr error = fmt.Errorf("Failed to download file.")
	NotRunningErr     error = errors.New("League of legends is not currently running!")
)
View Source
var (
	INVALID_CERT_ERR error = errors.New("Failed to load in the riot cert")
	HTTP_CLIENT_ERR  error = errors.New("Failed to create an http client")
)

Functions

func DefaultNewRequest

func DefaultNewRequest(req_type string, u url.URL, data []byte) (req *http.Request, err error)

Basic way to create a request to most APIs

Types

type Client

type Client struct {
	Port string
	Path string
	// contains filtered or unexported fields
}

func (*Client) Do

func (c *Client) Do(req *http.Request) (*http.Response, error)

func (*Client) Get

func (c *Client) Get(u url.URL) (*http.Response, error)

func (*Client) NewRequest

func (c *Client) NewRequest(req_type string, u url.URL, form []byte) (*http.Request, error)

func (*Client) Post

func (c *Client) Post(u url.URL, data []byte) (*http.Response, error)

func (*Client) URL

func (c *Client) URL(uri string) (u url.URL, err error)

URL returns a url.URL that you can edit further.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL