struct Telecr::Core::Handler

Overview

Handler struct - optimized for fast matching

Defined in:

core/handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(filters : Hash(String, FilterValue), proc : Context -> ) #

[View source]

Instance Method Detail

def call(ctx : Context) #

[View source]
def call_count : Int32 #

[View source]
def call_count=(call_count : Int32) #

[View source]
def created_at : Time #

[View source]
def filters : Hash(String, FilterValue) #

[View source]
def handle_dynamic_filter(ctx : Context, key : String, value : FilterValue) : Bool #

[View source]
def matches?(ctx : Context) : Bool #

Performance: Returns true if all filters pass


[View source]
def proc : Context -> #

[View source]