api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(r *gin.Engine, h *Handler)

Types

type FileURI

type FileURI struct {
	RepoURI
	Path string `json:"path" uri:"path,default=/"`
}

type GetRepositoriesURI

type GetRepositoriesURI struct {
	Hosting string `json:"hosting" uri:"hosting"`
	Owner   string `json:"owner" uri:"owner"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(c *config.Config, e *gin.Engine) *Handler

func (*Handler) GetBranches

func (h *Handler) GetBranches(c *gin.Context)

Get branches list @Summary Get branches list.

func (*Handler) GetCommits

func (h *Handler) GetCommits(c *gin.Context)

Get commits list @Summary Get commits list.

func (*Handler) GetFiles

func (h *Handler) GetFiles(c *gin.Context)

Get files list @Summary Get files list.

func (*Handler) GetRepositories

func (h *Handler) GetRepositories(c *gin.Context)

Get repositories list @Summary Get repositories list.

func (*Handler) GetRepository

func (h *Handler) GetRepository(c *gin.Context)

Get repository details. @Summary Get repository details.

type RepoURI

type RepoURI struct {
	Hosting string `json:"hosting" uri:"hosting"`
	Owner   string `json:"owner" uri:"owner"`
	Repo    string `json:"repo" uri:"repo"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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