blog

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BLOG_POSTS_FILTERS = map[int64]BlogPostFilter{
	1: &LaitmanRuFilter{},
}
View Source
var CLIP_RE = regexp.MustCompile("клип")
View Source
var DECLAMATION_RE = regexp.MustCompile("Радио-версия")
View Source
var LESSON_RE = regexp.MustCompile("(Уроки и лекции|Утренний урок|Вечерний урок|Урок по Книге Зоар)")
View Source
var TWITTER_RE = regexp.MustCompile("Мои мысли в Twitter")

Functions

func Analyze

func Analyze()

func Download

func Download()

func Import

func Import()

func ImportLatest

func ImportLatest()

func Init

func Init() time.Time

func NewWordpressClient

func NewWordpressClient(wpUrl, username, password string) (*wordpress.Client, error)

func Shutdown

func Shutdown()

Types

type BlogPostFilter

type BlogPostFilter interface {
	IsPass(*wordpress.Post) bool
}

type BucketHistorgram

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

func NewBucketHistorgram

func NewBucketHistorgram(bucketSize int) *BucketHistorgram

func (*BucketHistorgram) Add

func (h *BucketHistorgram) Add(val int)

func (*BucketHistorgram) Dump

func (h *BucketHistorgram) Dump()

type LaitmanRuFilter

type LaitmanRuFilter struct{}

func (*LaitmanRuFilter) IsPass

func (f *LaitmanRuFilter) IsPass(post *wordpress.Post) bool

type PassFilter

type PassFilter struct{}

func (*PassFilter) IsPass

func (f *PassFilter) IsPass(*wordpress.Post) bool

Jump to

Keyboard shortcuts

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