kat

package module
v0.0.0-...-4d5673d Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: BSD-3-Clause Imports: 9 Imported by: 0

README

kat Build Status

Package kat provides access to kickass: https://godoc.org/github.com/daaku/kat

Documentation

Overview

Package kat provides access to kickass.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides access to kickass.

func NewClient

func NewClient(options ...ClientOption) (*Client, error)

NewClient creates a new client with the given options.

func (*Client) Search

func (c *Client) Search(q string) ([]Result, error)

Search performs a search query.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows configuring various aspects of the Client.

func ClientRawURL

func ClientRawURL(u string) ClientOption

ClientRawURL configures the base Client URL. All API requests are made relative to this URL.

func ClientTransport

func ClientTransport(t http.RoundTripper) ClientOption

ClientTransport configures the Transport for the Client. If not specified http.DefaultTransport is used.

func ClientURL

func ClientURL(u *url.URL) ClientOption

ClientURL configures the base Client URL. All requests are made relative to this URL.

type Result

type Result struct {
	Name     string
	Magnet   string
	Verified bool
	Size     string
	Age      string
	Seed     int
	Leech    int
}

Result is an individual search result.

Jump to

Keyboard shortcuts

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