0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

ircd:Ⓜ️:push: Add event type prefix string for pusher.

This commit is contained in:
Jason Volk 2020-03-21 11:08:17 -07:00
parent 435721c971
commit 245195488c
2 changed files with 11 additions and 3 deletions

View file

@ -13,15 +13,15 @@
namespace ircd::m::push
{
IRCD_M_EXCEPTION(m::error, error, http::INTERNAL_SERVER_ERROR)
IRCD_M_EXCEPTION(error, NOT_A_RULE, http::BAD_REQUEST)
struct cond;
struct rule;
struct rules;
struct pusher;
struct match;
IRCD_M_EXCEPTION(m::error, error, http::INTERNAL_SERVER_ERROR)
IRCD_M_EXCEPTION(error, NOT_A_RULE, http::BAD_REQUEST)
/// scope, kind, ruleid
using path = std::tuple<string_view, string_view, string_view>;
string_view make_type(const mutable_buffer &, const path &);
@ -88,6 +88,8 @@ struct ircd::m::push::pusher
json::property<name::append, bool>
>
{
static const string_view type_prefix;
using super_type::tuple;
using super_type::operator=;
};

View file

@ -8,6 +8,12 @@
// copyright notice and this permission notice is present in all copies. The
// full license for this software is available in the LICENSE file.
decltype(ircd::m::push::pusher::type_prefix)
ircd::m::push::pusher::type_prefix
{
"ircd.push.pusher"
};
decltype(ircd::m::push::rule::type_prefix)
ircd::m::push::rule::type_prefix
{