client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package clients contains interfaces that tie in directly with your league client

Index

Constants

This section is empty.

Variables

This section is empty.

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 interface {
	NewRequest(string, url.URL, []byte) (*http.Request, error)
	URL(uri string) (url.URL, error)
	Get(url.URL) (*http.Response, error)
	Post(url.URL, []byte) (*http.Response, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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