league

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MIT Imports: 11 Imported by: 0

README

League of Legends Client

I originally envisioned making all the calls into a wrapper but as I look into more and more of these; not a good idea. Bastion will wrap the ones that I (or those of you that want it) deem important. You can call any of these endpoints once a session is made at your own risk.

I'm not sure what ones are accessable to you for sure or ones that you're allowed to access even. Refer to the league client api or their discord for more information.

Custom Requests

Look at or run the get_selected_region example

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!")
)

Functions

func CreateFromUnix

func CreateFromUnix() (client.Client, error)

Create From Unix

Creates a new client from an already open league of legends client using commands that are related to a unix based system

func CreateFromWindows

func CreateFromWindows() (client.Client, error)

Create From Windows

Creates a new client from an already open league of legends client using commands that are related to a windows based system

Types

type Client

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

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.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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