NAME

Zing::File - Supervision Tree Generator

ABSTRACT

Zing Supervision Tree Generator

SYNOPSIS

use Zing::File;

my $file = Zing::File->new;

# $file->interpret([['MyApp::Client', [], 2], ['MyApp::Server', [], 1]])

DESCRIPTION

This package provides a mechnism for generating executable supervision trees.

LIBRARIES

This package uses type constraints from:

Zing::Types

FUNCTIONS

This package implements the following functions:

scheme

scheme(Scheme | ArrayRef[Scheme | ArrayRef] $expr) : Scheme

The scheme function converts the expression provided, which itself is either a scheme or a list of schemes (which can be nested), to a scheme representing a supervision tree with Zing::Ringer and Zing::Watcher processes.

scheme example #1
use Zing::File 'scheme';

scheme([['MyApp::Client', [], 2], ['MyApp::Server', [], 1]]);

METHODS

This package implements the following methods:

interpret

interpret(Scheme | ArrayRef[Scheme | ArrayRef] $expr) : Scheme

The interpret method passes the expression provided to the "scheme" function to generate a scheme.

interpret example #1
# given: synopsis

$file->interpret([['MyApp::Client', [], 2], ['MyApp::Server', [], 1]]);

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues