class TempEmail::TempEmailDB

Defined in:

temp-email/db.cr

Constant Summary

ERROR = 400
EXPENDED = 502
EXPIRED = 501
FOUND = 200
UNKNOWN = 500
VERSION = 1_i64

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config) #

[View source]

Instance Method Detail

def add_address(address : String, destination : String, expiry : Int64 | Nil, forget : Int64 | Nil, remaining_uses : Int64 | Nil) #

[View source]
def check_address(address : String) : Tuple(Int32, String | Nil, String) #

returns the code and the value


[View source]
def upgrade_db(target_version : Int64) #

[View source]
def upgrade_to_version(version : Int64) #

[View source]