# Functions
DisableWorker disable a worker.
FormString return a string.
InitRouterMetrics initialize prometheus metrics.
LoadWorkflowHooksWithModelUpdate hookRequest contains all updated model from analysis.
LoadWorkflowHooksWithRepositoryWebHooks If event && workflow declaration are on the same repo : get only the hook defined on the current branch Else get all ( analyse process insert only 1 hook for the default branch.
LoadWorkflowHooksWithWorkflowUpdate hookRequest contains all updated workflow from analysis.
MaintenanceAware route need CDS maintenance off.
New instanciates a new API object.
QueryBool return a boolean from a query parameter.
QuerySort returns the a of key found in sort query param or nil if sort param not found.
QueryString return a string from a query parameter.
QueryStrings returns the list of values for given query param key or nil if key no values.
Scope set for handler.
Scopes set for handler.
SortCompareInt returns the result of the right compare equation depending of given sort order.
# Constants
SortOrders.
SortOrders.
# Structs
API is a struct containing the configuration, the router, the database connection factory and so on.
Configuration is the configuration structure for CDS API.
DefaultValues is the struc for API Default configuration default values.
Router is a wrapper around mux.Router.
# Type aliases
HandlerConfigFunc is a type used in the router configuration fonction "Handle".
PermCheckFunc defines func call to check permission.
SortOrder constant.