Yichun Zhang (章亦春) > OpenResty-0.5.12 > OpenResty::Backend

Download:
OpenResty-0.5.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

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.

syntax highlighting: