scrape

package
v0.0.0-...-474d2f3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(app *app.App) app.Config

func NewResponseError

func NewResponseError(r *http.Response) error

Types

type Character

type Character struct {
	Name string
	Path string
	Note string
}

type CharacterPage

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

func NewCharacterPage

func NewCharacterPage(r io.Reader) *CharacterPage

func (*CharacterPage) Collect

func (p *CharacterPage) Collect(ctx context.Context) ([]Character, error)

func (*CharacterPage) Next

func (p *CharacterPage) Next(ctx context.Context) (c Character, err error)

type Config

type Config struct {
	*app.App `flag:"-"`
	Output   string `flag:"output o" desc:"Where the output is written"`
}

func (*Config) Args

func (c *Config) Args(cmd *cobra.Command, args []string) error

func (*Config) Run

func (c *Config) Run(cmd *cobra.Command, args []string) error

func (*Config) Use

func (c *Config) Use() string

type ResponseError

type ResponseError struct {
	StatusCode int
	Status     string
	Body       []byte
}

func (ResponseError) Error

func (r ResponseError) Error() string

Jump to

Keyboard shortcuts

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