Documentation
¶
Index ¶
Constants ¶
View Source
const GITLAB_OPENAPI_DEFINITION_LOCATION = "https://gitlab.com/gitlab-org/gitlab/-/raw/master/doc/api/openapi/openapi.yaml"
View Source
const OUTPUT_FILEPATH = "mock/endpointpattern.go"
View Source
const OUTPUT_FILE_HEADER = `package mock
// Code generated; DO NOT EDIT.
`
Variables ¶
This section is empty.
Functions ¶
func FetchAPIDefinition ¶
func FormatToGolangVarName ¶
func FormatToGolangVarName(l log.Logger, sr ScrapeResult) string
FormatToGolangVarName generated the proper golang variable name given a endpoint format from the API
func FormatToGolangVarNameAndValue ¶
func FormatToGolangVarNameAndValue(l log.Logger, sr ScrapeResult) string
Types ¶
type ScrapeResult ¶
Click to show internal directories.
Click to hide internal directories.