Documentation
¶
Index ¶
- Constants
- func Routes(r *gin.Engine, h *Handler)
- type CommitForm
- type CreateBranchForm
- type DeleteBranchUri
- type FileContentForm
- type FileURI
- type Handler
- func (h *Handler) CreateBranch(ctx *gin.Context)
- func (h *Handler) CreateFile(ctx *gin.Context)
- func (h *Handler) DeleteBranch(ctx *gin.Context)
- func (h *Handler) DeleteFile(ctx *gin.Context)
- func (h *Handler) GetBranches(ctx *gin.Context)
- func (h *Handler) GetCommits(ctx *gin.Context)
- func (h *Handler) GetFiles(ctx *gin.Context)
- func (h *Handler) GetRepositories(ctx *gin.Context)
- func (h *Handler) GetRepository(ctx *gin.Context)
- func (h *Handler) UpdateFile(ctx *gin.Context)
- type OwnerUri
- type RefForm
- type RepoURI
Constants ¶
View Source
const (
RawMimeTypes string = "application/vnd.giteway.raw"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitForm ¶ added in v0.1.0
type CommitForm struct {
Message *string `form:"message,omitempty" json:"message,omitempty"`
}
type CreateBranchForm ¶ added in v0.1.0
type CreateBranchForm struct {
Name string `uri:"name" binding:"required"`
}
type DeleteBranchUri ¶ added in v0.1.0
type FileContentForm ¶ added in v0.1.0
type FileContentForm struct { Encoding string `form:"encoding,default=text" json:"encoding"` Content string `form:"content" json:"content" binding:"required"` Commit CommitForm `form:"commit,omitempty" json:"commit,omitempty"` }
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateBranch ¶ added in v0.1.0
Create a branch with name @Summary Create a branch with name.
func (*Handler) CreateFile ¶ added in v0.1.0
Create file @Summary Create file.
func (*Handler) DeleteBranch ¶ added in v0.1.0
Delete a branch by name @Summary Delete a branch by name.
func (*Handler) DeleteFile ¶ added in v0.1.0
Delete file @Summary Delete file.
func (*Handler) GetBranches ¶
Get branches list @Summary Get branches list.
func (*Handler) GetCommits ¶
Get commits list @Summary Get commits list.
func (*Handler) GetRepositories ¶
Get repositories list @Summary Get repositories list.
func (*Handler) GetRepository ¶
Get repository details. @Summary Get repository details.
func (*Handler) UpdateFile ¶ added in v0.1.0
Update file @Summary Update file.
Click to show internal directories.
Click to hide internal directories.