Documentation ¶
Index ¶
- type Endpoints
- func (e *Endpoints) ChangePassword(user *domain.User, oldPassword, newPassword 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) 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) PutStar(userId, 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) 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoints ¶
type Endpoints struct {
// contains filtered or unexported fields
}
Endpoints represents all endpoints of the http server
func NewEndpoints ¶
NewEndpoints is just below the http handlers
func (*Endpoints) ChangePassword ¶
func (Endpoints) DeleteStar ¶
func (*Endpoints) OwnsProject ¶
func (*Endpoints) ResetPassword ¶
func (e *Endpoints) ResetPassword(secret, newPassword string) (*domain.AccessToken, error)
func (*Endpoints) SendResetEmail ¶
Click to show internal directories.
Click to hide internal directories.