Documentation ¶
Index ¶
- type API
- func (_m *API) Accounts() (*model.Accounts, error)
- func (_m *API) Me() (*model.User, error)
- func (_m *API) Page(pageID string) (*model.Page, error)
- func (_m *API) PagePhotoCreate(pageAccessToken string, pageID string, photo *model.Photo) (*model.PhotoResponse, error)
- func (_m *API) PagePublish(pageAccessToken string, pageID string, post *model.Post) (*model.PostResponse, error)
- func (_m *API) Post(pageAccessToken string, postID string) (*model.PostResponse, error)
- func (_m *API) PostDelete(pageAccessToken string, postID string) error
- func (_m *API) PostUpdate(pageAccessToken string, postID string, post *model.Post) error
- type Authenticator
- type Images
- func (_m *Images) ChecksumDataURL(_a0 string) (string, error)
- func (_m *Images) GetOriginal(checksum string) (image.Image, error)
- func (_m *Images) HasChecksum(checksum string) (bool, error)
- func (_m *Images) PathsFor(checksum string) (*model.OfferImagePaths, error)
- func (_m *Images) StoreDataURL(_a0 string) error
- type Layout
- type Node
- type OfferGroupPosts
- func (_m *OfferGroupPosts) GetByDate(_a0 model.DateWithoutTime, _a1 bson.ObjectId) (*model.OfferGroupPost, error)
- func (_m *OfferGroupPosts) GetByID(_a0 bson.ObjectId) (*model.OfferGroupPost, error)
- func (_m *OfferGroupPosts) Insert(_a0 ...*model.OfferGroupPost) ([]*model.OfferGroupPost, error)
- func (_m *OfferGroupPosts) UpdateByID(_a0 bson.ObjectId, _a1 *model.OfferGroupPost) error
- type Offers
- func (_m *Offers) GetForRegion(region string, startTime time.Time, endTime time.Time) ([]*model.Offer, error)
- func (_m *Offers) GetForRestaurant(restaurantID bson.ObjectId, startTime time.Time) ([]*model.Offer, error)
- func (_m *Offers) GetForRestaurantByTitle(restaurantID bson.ObjectId, title string) (*model.Offer, error)
- func (_m *Offers) GetForRestaurantWithinTimeBounds(restaurantID bson.ObjectId, startTime time.Time, endTime time.Time) ([]*model.Offer, error)
- func (_m *Offers) GetID(_a0 bson.ObjectId) (*model.Offer, error)
- func (_m *Offers) GetNear(loc geo.Location, startTime time.Time, endTime time.Time) ([]*model.OfferWithDistance, error)
- func (_m *Offers) GetSimilarTitlesForRestaurant(restaurantID bson.ObjectId, partialTitle string) ([]string, error)
- func (_m *Offers) Insert(_a0 ...*model.Offer) ([]*model.Offer, error)
- func (_m *Offers) RemoveID(_a0 bson.ObjectId) error
- func (_m *Offers) UpdateID(_a0 bson.ObjectId, _a1 *model.Offer) error
- type Regions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
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 ¶
type Images ¶
func (*Images) PathsFor ¶
func (_m *Images) PathsFor(checksum string) (*model.OfferImagePaths, error)
func (*Images) StoreDataURL ¶
type OfferGroupPosts ¶
func (*OfferGroupPosts) GetByDate ¶
func (_m *OfferGroupPosts) GetByDate(_a0 model.DateWithoutTime, _a1 bson.ObjectId) (*model.OfferGroupPost, error)
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 ¶
func (*Offers) GetForRegion ¶
func (*Offers) GetForRestaurant ¶
func (*Offers) GetForRestaurantByTitle ¶
func (*Offers) GetForRestaurantWithinTimeBounds ¶
func (*Offers) GetSimilarTitlesForRestaurant ¶
Click to show internal directories.
Click to hide internal directories.