module Circed::Network::LineState

Defined in:

circed/network/line_state.cr

Class Method Summary

Class Method Detail

def self.add(type : String, mask : String, reason : String, set_by : String, duration : Time::Span | Nil = nil) : Domain::LineBan | Nil #

[View source]
def self.add_until(type : String, mask : String, reason : String, set_by : String, expires_at : Time | Nil) : Domain::LineBan | Nil #

[View source]
def self.clear : Nil #

[View source]
def self.configure_persistence(path : String, enabled : Bool = true) : Nil #

[View source]
def self.each(& : Domain::LineBan -> ) : Nil #

[View source]
def self.enforce(line : Domain::LineBan) : Nil #

[View source]
def self.matching(context : Domain::BanMatchContext) : Domain::LineBan | Nil #

[View source]
def self.normalize_mask(type : String, mask : String) : String #

[View source]
def self.remove(type : String, mask : String) : Bool #

[View source]