package
2.14.1+incompatible
Repository: https://github.com/moira-alert/moira.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
nolint.
No description provided by the author
No description provided by the author
# Functions
ErrorForbidden return 403 with given error text.
ErrorInternalServer returns error response with status=500 and given error.
ErrorInvalidRequest return error response with status = 400 and given error.
ErrorNotFound return 404 with given error text.
ErrorRemoteServerUnavailable return 503 when remote trigger check failed.
ErrorRender return 422 render error and used for response rendering errors.
GetTestLimitsConfig is used for testing.
IsAvailableCelebrationMode return is mode available or not.
# Constants
AscSortOrder means that entities should be ordered ascending (example: from 1 to 9).
No description provided by the author
No description provided by the author
DefaultTriggerNameMaxSize which will be used while validating dto.Trigger.
DefaultTriggerPagerTTL which will be used via trigger creation.
DescSortOrder means that entities should be ordered descending (example: from 9 to 1).
NoSortOrder means that entities may be unsorted.
# Variables
ErrMethodNotAllowed is default 405 router method not allowed.
ErrNotFound is default router page not found.
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Authorization contains authorization configuration.
Config for api configuration variables.
ErrInvalidRequestContent used as custom error for dto logical validations.
No description provided by the author
Following types are declared to generate examples with `swaggo`.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ErrorResponse represents custom error response with statusText and error description.
FeatureFlags is struct to manage feature flags.
LimitsConfig contains limits for some entities.
MetricSourceCluster contains data about supported metric source cluster.
PagerLimits contains all limits applied for pagers.
Sentry - config for sentry settings.
TeamLimits contains all limits applied for triggers.
TriggerLimits contains all limits applied for triggers.
WebConfig is container for web ui configuration parameters.
WebContact is container for web ui contact validation.
# Type aliases
CelebrationMode is type for celebrate Moira.
The Role is an enumeration that represents the scope of user's permissions.
SortOrder represents the sorting order for entities.