cmd

package
v0.0.0-...-d2d5683 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.1"

Functions

This section is empty.

Types

type BodyPlugin

type BodyPlugin struct {
}

func (BodyPlugin) Do

func (p BodyPlugin) Do(env *Environment) error

type Client

type Client struct {
	*http.Client
}

func (*Client) Do

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

type Cmd

type Cmd struct {
	*cli.App
}

func New

func New() *Cmd

type CookiePlugin

type CookiePlugin struct {
}

func (CookiePlugin) Do

func (p CookiePlugin) Do(env *Environment) error

type Environment

type Environment struct {
	URL    *url.URL
	Client Client // *http.Client

	Method string
}

type FormPlugin

type FormPlugin struct {
}

func (FormPlugin) Do

func (p FormPlugin) Do(env *Environment) error

type HeadersPlugin

type HeadersPlugin struct {
}

func (HeadersPlugin) Do

func (p HeadersPlugin) Do(env *Environment) error

type LinksPlugin

type LinksPlugin struct {
}

func (LinksPlugin) Do

func (p LinksPlugin) Do(env *Environment) error

type Plugin

type Plugin interface {
	Do(*Environment) error
}

func Register

func Register(name string, plugin Plugin) Plugin

type Plugins

type Plugins map[string]Plugin

type TitlePlugin

type TitlePlugin struct {
}

func (TitlePlugin) Do

func (p TitlePlugin) Do(env *Environment) error

Jump to

Keyboard shortcuts

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