resources

package
v0.0.0-...-1485983 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StoryResource

type StoryResource struct {
	MC *memcache.Client
	MG *mgo.Session
}

func (*StoryResource) CacheStoryIds

func (r *StoryResource) CacheStoryIds(storyType string, ids []int) error

func (*StoryResource) FindById

func (r *StoryResource) FindById(id int) hn.Item

func (*StoryResource) FindByIds

func (r *StoryResource) FindByIds(ids []int) ([]hn.Item, error)

func (*StoryResource) FindCacheStoryIds

func (r *StoryResource) FindCacheStoryIds(storyType string) ([]int, error)

func (*StoryResource) SaveStory

func (r *StoryResource) SaveStory(id int, item *hn.Item) error

Jump to

Keyboard shortcuts

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