html

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToContext

func ToContext(ctx context.Context, name DriverName, drv Driver) context.Context

func WithDynamicDriver

func WithDynamicDriver(ctx context.Context) context.Context

func WithStaticDriver

func WithStaticDriver(ctx context.Context) context.Context

Types

type Driver

type Driver interface {
	GetDocument(ctx context.Context, url values.String) (values.HTMLNode, error)
	Close() error
}

func FromContext

func FromContext(ctx context.Context, name DriverName) (Driver, error)

type DriverName

type DriverName string
const (
	Dynamic DriverName = "dynamic"
	Static  DriverName = "static"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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