mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd:Ⓜ️:push: Add event type prefix string for pusher.
This commit is contained in:
parent
435721c971
commit
245195488c
2 changed files with 11 additions and 3 deletions
|
@ -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=;
|
||||
};
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue