pub const METADATA_STORE_DOC_URL_ID: i16 = 1;
pub const ALARMS_DOC_URL_ID: i16 = 2;
pub const CONSUMER_ACK_TIMEOUT_DOC_URL_ID: i16 = 3;
pub const ISSUE_14181: i16 = 1;
pub const ISSUE_14213: i16 = 2;
pub const DISCUSSION_14094: i16 = 3;
pub const PULL_REQUEST_14409: i16 = 4;
pub fn doc_url_from_id(id: i16) -> Option<&'static str> {
match id {
METADATA_STORE_DOC_URL_ID => Some("https://www.rabbitmq.com/docs/metadata-store"),
ALARMS_DOC_URL_ID => Some("https://www.rabbitmq.com/docs/alarms"),
CONSUMER_ACK_TIMEOUT_DOC_URL_ID => {
Some("https://www.rabbitmq.com/docs/consumers#acknowledgement-timeout")
}
_ => None,
}
}
pub fn resolution_or_discussion_url_from_id(id: i16) -> Option<&'static str> {
match id {
ISSUE_14181 => Some("https://github.com/rabbitmq/rabbitmq-server/issues/14181"),
ISSUE_14213 => Some("https://github.com/rabbitmq/rabbitmq-server/issues/14213"),
DISCUSSION_14094 => Some("https://github.com/rabbitmq/rabbitmq-server/discussions/14094"),
PULL_REQUEST_14409 => Some("https://github.com/rabbitmq/rabbitmq-server/pull/14409"),
_ => None,
}
}