Zing::Term - Resource Representation
Resource Representation
use Zing::KeyVal; use Zing::Term; my $term = Zing::Term->new(Zing::KeyVal->new(name => 'nodes')); # $term->keyval;
This package provides a mechanism for generating and validating (global and local) resource identifiers.
This package uses type constraints from:
Zing::Types
This package has the following attributes:
bucket(Str)
This attribute is read-only, accepts (Str) values, and is required.
(Str)
facets(ArrayRef[Str])
This attribute is read-only, accepts (ArrayRef[Str]) values, and is optional.
(ArrayRef[Str])
handle(Str)
symbol(Str)
system(Str)
target(Str)
This package implements the following methods:
channel() : Str
The channel method validates and returns a "channel" resource identifier.
use Zing::Channel; Zing::Term->new(Zing::Channel->new(name => 'chat')); # $term->channel;
data() : Str
The data method validates and returns a "data" resource identifier.
use Zing::Data; use Zing::Process; Zing::Term->new(Zing::Data->new(process => Zing::Process->new)); # $term->data;
domain() : Str
The domain method validates and returns a "domain" resource identifier.
use Zing::Domain; Zing::Term->new(Zing::Domain->new(name => 'transaction')); # $term->domain;
kernel() : Str
The kernel method validates and returns a "kernel" resource identifier.
use Zing::Kernel; Zing::Term->new(Zing::Kernel->new(scheme => ['MyApp', [], 1])); # $term->kernel;
keyval() : Str
The keyval method validates and returns a "keyval" resource identifier.
use Zing::KeyVal; Zing::Term->new(Zing::KeyVal->new(name => 'listeners')); # $term->keyval;
mailbox() : Str
The mailbox method validates and returns a "mailbox" resource identifier.
use Zing::Mailbox; use Zing::Process; Zing::Term->new(Zing::Mailbox->new(process => Zing::Process->new)); # $term->mailbox;
process() : Str
The process method validates and returns a "process" resource identifier.
use Zing::Process; Zing::Term->new(Zing::Process->new); # $term->process;
pubsub() : Str
The pubsub method validates and returns a "pubsub" resource identifier.
use Zing::PubSub; Zing::Term->new(Zing::PubSub->new(name => 'operations')); # $term->pubsub;
queue() : Str
The queue method validates and returns a "queue" resource identifier.
use Zing::Queue; Zing::Term->new(Zing::Queue->new(name => 'workflows')); # $term->queue;
registry() : Str
The registry method validates and returns a "registry" resource identifier.
use Zing::Registry; Zing::Term->new(Zing::Registry->new(name => 'campaigns')); # $term->registry;
repo() : Str
The repo method validates and returns a "repo" resource identifier.
use Zing::Repo; Zing::Term->new(Zing::Repo->new(name => 'miscellaneous')); # $term->repo;
string() : Str
The string method returns a resource identifier. This method is called automatically when the object is used as a string.
# given: synopsis $term->string;
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
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".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Zing, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Zing
CPAN shell
perl -MCPAN -e shell install Zing
For more information on module installation, please visit the detailed CPAN module installation guide.