Documentation ¶
Index ¶
- func CheckOut(repository *git.Repository, option *git.CheckoutOptions) error
- func CheckOutHash(repository *git.Repository, hash string) error
- func ClearToken(c *gin.Context, doman ...string) error
- func CloneRepo(path string, option *git.CloneOptions, ctx context.Context) (*git.Repository, error)
- func CreateToken(claims jwt.MapClaims, key string, tmout time.Duration) (string, error)
- func GetLogs(repository *git.Repository, option *git.LogOptions) (object.CommitIter, error)
- func GetLogsHash(repository *git.Repository, hash string) (object.CommitIter, error)
- func GetToken(c *gin.Context, key string) jwt.MapClaims
- func GetTokens(s string, key string) jwt.MapClaims
- func GinRegController(g *gin.Engine, gc GinController)
- func GinReqParseJson(fn interface{}) gin.HandlerFunc
- func MidAccessAllowFun(c *gin.Context)
- func SetToken(c *gin.Context, p jwt.MapClaims, key string, rem bool, doman ...string) (string, error)
- type GinController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckOutHash ¶
func CreateToken ¶
func GetLogs ¶
func GetLogs(repository *git.Repository, option *git.LogOptions) (object.CommitIter, error)
func GetLogsHash ¶
func GetLogsHash(repository *git.Repository, hash string) (object.CommitIter, error)
func GinRegController ¶
func GinRegController(g *gin.Engine, gc GinController)
func GinReqParseJson ¶
func GinReqParseJson(fn interface{}) gin.HandlerFunc
func MidAccessAllowFun ¶
Types ¶
type GinController ¶
Click to show internal directories.
Click to hide internal directories.