repoapi

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL