Documentation ¶
Overview ¶
Package abelana is a set of utilities to validate our GitKit and Access Tokens. For now, we are providing our own Access Tokens, later, we will use GitKit's tokens when they become available.
Index ¶
- Variables
- func Aauth(c martini.Context, cx appengine.Context, p martini.Params, ...)
- func FProfile(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Flag(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Follow(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func FollowByID(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func GetFollowing(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func GetMyProfile(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func GetPerson(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func GetPhotoComments(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func GetSecretKey(w http.ResponseWriter)
- func GetTimeLine(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Import(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Like(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Login(cx appengine.Context, p martini.Params, w http.ResponseWriter)
- func PostPhoto(cx appengine.Context, p martini.Params, w http.ResponseWriter, ...) string
- func Refresh(cx appengine.Context, p martini.Params, w http.ResponseWriter)
- func Register(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func SetPhotoComments(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Statistics(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Unlike(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Unregister(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- func Wipeout(cx appengine.Context, at Access, p martini.Params, w http.ResponseWriter)
- type ATOKJson
- type AbelanaConfig
- type AccToken
- type Access
- type Comment
- type Comments
- type Person
- type Persons
- type Photo
- type Stats
- type Status
- type TLEntry
- type Timeline
- type ToLike
- type User
Constants ¶
This section is empty.
Variables ¶
var DEBUG = true
Functions ¶
func FollowByID ¶
FollowByID - will tell us about a new possible follower (FrReq) : Status
func GetFollowing ¶
GetFollowing - A list of those I follow (AToken) :
func GetMyProfile ¶
GetMyProfile - Get my entries only (token) : TlResp
func GetPhotoComments ¶
GetPhotoComments will get the comments given a photoid
func GetSecretKey ¶
func GetSecretKey(w http.ResponseWriter)
GetSecretKey will send our key in a way that we should only be called once.
func GetTimeLine ¶
GetTimeLine - get the timeline for the user (token) : TlResp
func PostPhoto ¶
func PostPhoto(cx appengine.Context, p martini.Params, w http.ResponseWriter, rq *http.Request) string
PostPhoto lets us know that we have a photo, we then tell both DataStore and Redis What is sent is just the id, either uuuuu.rrrrr or uuuuu where u=userID, and rrrrr is random photoID
func SetPhotoComments ¶
SetPhotoComments allows the users voice to be heard (PhotoComment) : Status
func Statistics ¶
Statistics will tell you about a user
func Unregister ¶
Unregister will stop GCM messages from going to your device (GCMReq) : Status
Types ¶
type ATOKJson ¶
ATOKJson is the json message for an Access Token (TEMPORARY - Until GitKit supports this)
type AbelanaConfig ¶
type AbelanaConfig struct { AuthEmail string ProjectID string Bucket string RedisPW string Redis string ServerKey string AutoFollowers []string Silhouette string TimelineBatchSize int UploadRetries int EnableBackdoor bool }
AbelanaConfig contains all the information we need to run Abelana
type AccToken ¶
AccToken is what we pass to our client, would rather not have the password here as it will go away when Idenitty Toolkit supports access tokens.
type Comment ¶
type Comment struct { PersonID string `json:"personid"` Text string `json:"text"` Time int64 `json:"time"` }
Comment holds all comments
type Person ¶
type Person struct { Kind string `json:"kind,omitempty"` PersonID string `json:"personid"` Email string `json:"email,omitempty"` Name string `json:"name"` }
Person holds information about our followers
type TLEntry ¶
type TLEntry struct { Created int64 `json:"created"` UserID string `json:"userid"` Name string `json:"name"` PhotoID string `json:"photoid"` Likes int `json:"likes"` ILike bool `json:"ilike"` }
TLEntry holds timeline entries