e62881b30ac3ee8e932190f2dfbb4eda4e5c69e9
remark 
Comment engine
API
Authorization
GET /login/{provider}?from=http://url- perform "social" login with one of supported providers and redirect tourlGET /logout- logoutGET /user- get user info, auth required
type User struct {
Name string `json:"name"`
ID string `json:"id"`
Picture string `json:"picture"`
Profile string `json:"profile"`
Admin bool `json:"admin"`
}
currently supported providers are google and github
Commenting
POST /comment- add a comment. auth required
type Comment struct {
ID int64 `json:"id"` // read only
ParentID int64 `json:"pid"`
Text string `json:"text"`
User User `json:"user"` // read only
Locator Locator `json:"locator"`
Score int `json:"score"` // read only
Votes map[string]bool `json:"votes"` // read only
Timestamp time.Time `json:"time"` // read only
}
type Locator struct {
SiteID string `json:"site"`
URL string `json:"url"`
}
GET /find?url=post-url- find all comments for given post returns list ofCommentGET /last/{max}- get last{max}commentsGET /id/{id}- get comment byidPUT /vote/{id}?url=post-url&vote=1- vote for comment.vote=1 will increase score, -1 decreases. auth requiredDELETE /comment/{id}- delete comment byid. auth and admin required
Languages
Go
69.4%
TypeScript
22.8%
CSS
3.2%
HTML
1.3%
JavaScript
1.3%
Other
2%