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 Manager
- 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 Post
- type Regions
- type RegistrationAccessTokens
- type Restaurants
- func (_m *Restaurants) Exists(name string) (bool, error)
- func (_m *Restaurants) GetAll() db.RestaurantIter
- func (_m *Restaurants) GetByFacebookPageIDs(_a0 []string) ([]*model.Restaurant, error)
- func (_m *Restaurants) GetByIDs(_a0 []bson.ObjectId) ([]*model.Restaurant, error)
- func (_m *Restaurants) GetID(_a0 bson.ObjectId) (*model.Restaurant, error)
- func (_m *Restaurants) Insert(_a0 ...*model.Restaurant) ([]*model.Restaurant, error)
- func (_m *Restaurants) UpdateID(_a0 bson.ObjectId, _a1 *model.Restaurant) error
- type Users
- func (_m *Users) GetAll() db.UserIter
- func (_m *Users) GetFbID(_a0 string) (*model.User, error)
- func (_m *Users) GetSessionID(_a0 string) (*model.User, error)
- func (_m *Users) Insert(_a0 ...*model.User) error
- func (_m *Users) SetAccessToken(_a0 string, _a1 oauth2.Token) error
- func (_m *Users) SetPageAccessTokens(_a0 string, _a1 []model.FacebookPageToken) error
- func (_m *Users) SetSessionID(_a0 bson.ObjectId, _a1 string) error
- func (_m *Users) UnsetSessionID(_a0 bson.ObjectId) error
- func (_m *Users) Update(_a0 string, _a1 *model.User) error
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 ¶
type Post ¶
func (*Post) Update ¶
func (_m *Post) Update(_a0 model.DateWithoutTime, _a1 *model.User, _a2 *model.Restaurant) *router.HandlerError
type RegistrationAccessTokens ¶
func (*RegistrationAccessTokens) Exists ¶
func (_m *RegistrationAccessTokens) Exists(_a0 model.Token) (bool, error)
func (*RegistrationAccessTokens) Insert ¶
func (_m *RegistrationAccessTokens) Insert(_a0 *model.RegistrationAccessToken) (*model.RegistrationAccessToken, error)
type Restaurants ¶
func (*Restaurants) GetAll ¶
func (_m *Restaurants) GetAll() db.RestaurantIter
func (*Restaurants) GetByFacebookPageIDs ¶
func (_m *Restaurants) GetByFacebookPageIDs(_a0 []string) ([]*model.Restaurant, error)
func (*Restaurants) GetByIDs ¶
func (_m *Restaurants) GetByIDs(_a0 []bson.ObjectId) ([]*model.Restaurant, error)
func (*Restaurants) GetID ¶
func (_m *Restaurants) GetID(_a0 bson.ObjectId) (*model.Restaurant, error)
func (*Restaurants) Insert ¶
func (_m *Restaurants) Insert(_a0 ...*model.Restaurant) ([]*model.Restaurant, error)
func (*Restaurants) UpdateID ¶
func (_m *Restaurants) UpdateID(_a0 bson.ObjectId, _a1 *model.Restaurant) error
type Users ¶
func (*Users) SetPageAccessTokens ¶
func (_m *Users) SetPageAccessTokens(_a0 string, _a1 []model.FacebookPageToken) error
Click to show internal directories.
Click to hide internal directories.