providers

package
v0.0.0-...-bbdca4e Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2017 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Stories []*story.Story
}

func (*Fake) GetStories

func (f *Fake) GetStories(storyType, limit int) (<-chan chan *StoryRequest, error)

func (*Fake) Name

func (f *Fake) Name() string

type Provider

type Provider interface {
	Name() string
	GetStories(int, int) (<-chan chan *StoryRequest, error)
}

func NewFake

func NewFake() Provider

type StoryRequest

type StoryRequest struct {
	Story *story.Story
	Err   error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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