Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRepoRequest ¶
type AddRepoRequest struct {
FullName string `json:"full_name"`
}
AddRepoRequest is the request body for adding a repo.
func (AddRepoRequest) Validate ¶
func (r AddRepoRequest) Validate() error
type HTTPHandler ¶
type HTTPHandler struct {
// contains filtered or unexported fields
}
HTTPHandler handles repo HTTP requests.
func NewHTTPHandler ¶
func NewHTTPHandler(repoStore *repo.Store, githubTokenService *githubtoken.Service) *HTTPHandler
NewHTTPHandler creates a new HTTPHandler.
func (*HTTPHandler) AddRepo ¶
func (h *HTTPHandler) AddRepo(c echo.Context) error
AddRepo handles POST /repos
func (*HTTPHandler) ListAvailableRepos ¶
func (h *HTTPHandler) ListAvailableRepos(c echo.Context) error
ListAvailableRepos handles GET /repos/available
func (*HTTPHandler) ListRepos ¶
func (h *HTTPHandler) ListRepos(c echo.Context) error
ListRepos handles GET /repos
func (*HTTPHandler) Register ¶
func (h *HTTPHandler) Register(g *echo.Group)
Register adds the endpoints to the provided Echo router group.
func (*HTTPHandler) RemoveRepo ¶
func (h *HTTPHandler) RemoveRepo(c echo.Context) error
RemoveRepo handles DELETE /repos/:repo_id
type RemoveRepoRequest ¶
type RemoveRepoRequest struct {
RepoID string `param:"repo_id" json:"-"`
}
RemoveRepoRequest captures the repo_id path parameter.
func (RemoveRepoRequest) Validate ¶
func (r RemoveRepoRequest) Validate() error
Click to show internal directories.
Click to hide internal directories.