Versions in this module Expand all Collapse all v0 v0.0.1 Jan 17, 2018 Changes in this version + type Endpoints struct + func NewEndpoints(db *gorm.DB, redisClient *redis.Client) *Endpoints + func (e *Endpoints) ChangePassword(user *domain.User, oldPassword, newPassword string) error + func (e *Endpoints) GetUser(tokenId string) (*domain.User, error) + func (e *Endpoints) HasNick(tokenId, author string) error + func (e *Endpoints) Login(email, password string) (*domain.User, *domain.AccessToken, error) + func (e *Endpoints) OwnsProject(tokenId, projectId string) error + func (e *Endpoints) Register(email, name, password string) (*domain.User, *domain.AccessToken, error) + func (e *Endpoints) ResetPassword(secret, newPassword string) (*domain.AccessToken, error) + func (e *Endpoints) SendResetEmail(email string) error + func (e Endpoints) Charge(accessToken, paymentToken string, amount uint64) error + func (e Endpoints) CreateComment(iss *domain.Comment) error + func (e Endpoints) CreateIssue(iss *domain.Issue) error + func (e Endpoints) CreatePost(iss *domain.Post) error + func (e Endpoints) CreateProject(proj *domain.Project) error + func (e Endpoints) CreateToken(iss *domain.Token) error + func (e Endpoints) DeleteStar(userId, projectId string) error + func (e Endpoints) PutStar(userId, projectId string) error + func (e Endpoints) UpdateComment(iss *domain.Comment) error + func (e Endpoints) UpdateIssue(iss *domain.Issue) error + func (e Endpoints) UpdatePost(iss *domain.Post) error + func (e Endpoints) UpdateProject(proj *domain.Project) error