mocks

package
v0.0.0-...-d1236c8 Latest Latest
Warning

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

Go to latest
Published: May 7, 2016 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

func (*API) Accounts

func (_m *API) Accounts() (*model.Accounts, error)

func (*API) Me

func (_m *API) Me() (*model.User, error)

func (*API) Page

func (_m *API) Page(pageID string) (*model.Page, error)

func (*API) PagePhotoCreate

func (_m *API) PagePhotoCreate(pageAccessToken string, pageID string, photo *model.Photo) (*model.PhotoResponse, error)

func (*API) PagePublish

func (_m *API) PagePublish(pageAccessToken string, pageID string, post *model.Post) (*model.PostResponse, error)

func (*API) Post

func (_m *API) Post(pageAccessToken string, postID string) (*model.PostResponse, error)

func (*API) PostDelete

func (_m *API) PostDelete(pageAccessToken string, postID string) error

func (*API) PostUpdate

func (_m *API) PostUpdate(pageAccessToken string, postID string, post *model.Post) error

type Authenticator

type Authenticator struct {
	mock.Mock
}

func (*Authenticator) APIConnection

func (m *Authenticator) APIConnection(tok *oauth2.Token) facebook.API

func (*Authenticator) AuthURL

func (m *Authenticator) AuthURL(state string) string

func (*Authenticator) PageAccessToken

func (m *Authenticator) PageAccessToken(tok *oauth2.Token, pageID string) (string, error)

func (*Authenticator) Token

func (m *Authenticator) Token(state string, r *http.Request) (*oauth2.Token, error)

type Images

type Images struct {
	mock.Mock
}

func (*Images) ChecksumDataURL

func (_m *Images) ChecksumDataURL(_a0 string) (string, error)

func (*Images) GetOriginal

func (_m *Images) GetOriginal(checksum string) (image.Image, error)

func (*Images) HasChecksum

func (_m *Images) HasChecksum(checksum string) (bool, error)

func (*Images) PathsFor

func (_m *Images) PathsFor(checksum string) (*model.OfferImagePaths, error)

func (*Images) StoreDataURL

func (_m *Images) StoreDataURL(_a0 string) error

type Layout

type Layout struct {
	mock.Mock
}

func (*Layout) Compose

func (_m *Layout) Compose(_a0 []image.Image) picasso.Node

type Node

type Node struct {
	mock.Mock
}

func (*Node) Draw

func (_m *Node) Draw(width int, height int) image.Image

func (*Node) DrawWithBorder

func (_m *Node) DrawWithBorder(width int, height int, borderColor color.Color, borderWidth int) image.Image

type OfferGroupPosts

type OfferGroupPosts struct {
	mock.Mock
}

func (*OfferGroupPosts) GetByDate

func (*OfferGroupPosts) GetByID

func (_m *OfferGroupPosts) GetByID(_a0 bson.ObjectId) (*model.OfferGroupPost, error)

func (*OfferGroupPosts) Insert

func (_m *OfferGroupPosts) Insert(_a0 ...*model.OfferGroupPost) ([]*model.OfferGroupPost, error)

func (*OfferGroupPosts) UpdateByID

func (_m *OfferGroupPosts) UpdateByID(_a0 bson.ObjectId, _a1 *model.OfferGroupPost) error

type Offers

type Offers struct {
	mock.Mock
}

func (*Offers) GetForRegion

func (_m *Offers) GetForRegion(region string, startTime time.Time, endTime time.Time) ([]*model.Offer, error)

func (*Offers) GetForRestaurant

func (_m *Offers) GetForRestaurant(restaurantID bson.ObjectId, startTime time.Time) ([]*model.Offer, error)

func (*Offers) GetForRestaurantByTitle

func (_m *Offers) GetForRestaurantByTitle(restaurantID bson.ObjectId, title string) (*model.Offer, error)

func (*Offers) GetForRestaurantWithinTimeBounds

func (_m *Offers) GetForRestaurantWithinTimeBounds(restaurantID bson.ObjectId, startTime time.Time, endTime time.Time) ([]*model.Offer, error)

func (*Offers) GetID

func (_m *Offers) GetID(_a0 bson.ObjectId) (*model.Offer, error)

func (*Offers) GetNear

func (_m *Offers) GetNear(loc geo.Location, startTime time.Time, endTime time.Time) ([]*model.OfferWithDistance, error)

func (*Offers) GetSimilarTitlesForRestaurant

func (_m *Offers) GetSimilarTitlesForRestaurant(restaurantID bson.ObjectId, partialTitle string) ([]string, error)

func (*Offers) Insert

func (_m *Offers) Insert(_a0 ...*model.Offer) ([]*model.Offer, error)

func (*Offers) RemoveID

func (_m *Offers) RemoveID(_a0 bson.ObjectId) error

func (*Offers) UpdateID

func (_m *Offers) UpdateID(_a0 bson.ObjectId, _a1 *model.Offer) error

type Regions

type Regions struct {
	mock.Mock
}

func (*Regions) GetAll

func (_m *Regions) GetAll() db.RegionIter

func (*Regions) GetName

func (_m *Regions) GetName(_a0 string) (*model.Region, error)

func (*Regions) Insert

func (_m *Regions) Insert(_a0 ...*model.Region) error

func (*Regions) UpdateName

func (_m *Regions) UpdateName(_a0 string, _a1 *model.Region) error

Jump to

Keyboard shortcuts

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