api

package
v0.0.0-...-407d9d5 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuth

func CheckAuth(c *gin.Context, cfg conf.Config) (StatusCode int, err error)

func CleanURL

func CleanURL(url string) string

func Client

func Client(c *gin.Context, cfg conf.Config) (*gitlab.Client, error)

func GetCookiePack

func GetCookiePack(c *gin.Context, CSRFCookies []*http.Cookie) []*http.Cookie

func GetCtxBaseAPIURL

func GetCtxBaseAPIURL(c *gin.Context, config conf.Config) string

func GetCtxBaseURL

func GetCtxBaseURL(c *gin.Context, config conf.Config) string

func GetCtxCookieCheckURL

func GetCtxCookieCheckURL(c *gin.Context, config conf.Config) string

func GetCtxCookies

func GetCtxCookies(c *gin.Context) (GitlabCookies []*http.Cookie)

func GetCustomResponse

func GetCustomResponse(c *gin.Context, cfg conf.Config, method string, path string, body io.Reader) (*http.Response, error)

func GetHeaders

func GetHeaders(c *gin.Context)

func GetRedirectClient

func GetRedirectClient() *http.Client

func GetUserIP

func GetUserIP(c *gin.Context) string

func GetUserInfo

func GetUserInfo(c *gin.Context, cfg conf.Config) (*gitlab.User, *gitlab.Response, error)

func GetUserMemberShip

func GetUserMemberShip(c *gin.Context, cfg conf.Config, id int) (any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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