spam

package
v0.5.11 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	List() ([]models.Spam, error)
	Name() string
}

type Spam

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

func NewSpam

func NewSpam(store data.SpamStore, hours int, logger logrus.FieldLogger, feedList []string) *Spam

func (*Spam) AddProvider

func (p *Spam) AddProvider(provider Provider)

func (*Spam) Get

func (p *Spam) Get() []string

func (*Spam) Run

func (p *Spam) Run(hours int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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