Help us shape the future of Go! Take the 2026 Go Developer Survey

crawler

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2017 License: MIT Imports: 4 Imported by: 0

README

dmm-crawler-go

CircleCI Go Report Card

dmm crawler go

$ go get github.com/ushios/dmm-crawler-go

Development

Runnning test

Set environments.

TEST_DMM_API_ID=xxxxxxxxx
TEST_DMM_AFFILIATE_ID=xxx-xxx

Running go test command.

$ go test ./...

Documentation

Index

Constants

View Source
const (
	// APILengthMax is max size of length
	APILengthMax = 100
)

Variables

This section is empty.

Functions

func ActressResponse

func ActressResponse(c *dmm.Client, page int64) (*api.ActressResponse, error)

ActressResponse get api response.

func AdultVideoItemResponse

func AdultVideoItemResponse(c *dmm.Client, page int64) (*api.ProductResponse, error)

AdultVideoItemResponse get adult video items.

func AllActresses

func AllActresses(
	c *dmm.Client, o Option,
	fn func(*dmm.Client, int64) (*api.ActressResponse, error),
) (chan api.Actress, chan struct{}, chan error)

AllActresses _ TODO: using context.Context

func AllItems

func AllItems(
	c *dmm.Client, o Option,
	fn func(*dmm.Client, int64) (*api.ProductResponse, error),
) (chan api.Item, chan struct{}, chan error)

AllItems _ TODO: using context.Context

Types

type Option

type Option struct {
	Interval  time.Duration
	MaxRepeat int
}

Option is crawler options

Jump to

Keyboard shortcuts

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