segment

package
v0.0.0-...-eb64f0e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSegmentCrawler

func NewSegmentCrawler(dataCh chan crawler.Data, finishCh chan struct{}) crawler.Crawler

NewSegmentCrawler generates a crawler for Segment blogs.

Types

type SegmentData

type SegmentData struct {
	// Source -
	Source string
	// Date -
	Date string
	// Title -
	Title string
	// Tag -
	Tag string
	// URL -
	URL string
	// Text -
	Text string
	// FileType -
	FileType string
}

SegmentData -

func (*SegmentData) File

func (data *SegmentData) File() (title, filetype, content string)

File return title, filetype and content.

func (*SegmentData) IsFile

func (data *SegmentData) IsFile() bool

IsFile return true.

func (*SegmentData) String

func (data *SegmentData) String() string

Jump to

Keyboard shortcuts

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