NAME
OpenResty::Backend - class factory for OpenResty backend classes
SYNOPSIS
my $type = 'Pg'; # or 'PgFarm' or 'PgMocked'
my $backend = OpenResty::Backend->new($type);
# where $backend is a OpenResty::Backend::Pg instance.
DESCRIPTION
This class serves as a class factory for the various OpenResty backend classes like OpenResty::Backend::Pg, OpenResty::Backend::PgFarm, and OpenResty::Backend::PgMocked.
METHODS
$obj = OpenResty::Backend->new($type)
-
Creates an instance of the specified backend class (via
$type
).
AUTHOR
Agent Zhang (agentzh) <agentzh@yahoo.cn>
SEE ALSO
OpenResty::Backend::Base, OpenResty::Backend::Pg, OpenResty::Backend::PgMocked, OpenResty::Backend::Pg, OpenResty.