| 1 | package Zing::Types; | ||
| 2 | |||
| 3 | 56 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 56 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 56 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 56 | ▶ | use Data::Object::Types::Keywords; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 56 | ▶ | use base 'Data::Object::Types::Library'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 56 | extends 'Types::Standard'; | |
| 13 | |||
| 14 | 56 | our $VERSION = '0.26'; # VERSION | |
| 15 | |||
| 16 | 56 | register { | |
| 17 | name => 'App', | ||
| 18 | parent => 'Object', | ||
| 19 | validation => is_instance_of('Zing::App'), | ||
| 20 | }; | ||
| 21 | |||
| 22 | 56 | register { | |
| 23 | name => 'Cartridge', | ||
| 24 | parent => 'Object', | ||
| 25 | validation => is_instance_of('Zing::Cartridge'), | ||
| 26 | }; | ||
| 27 | |||
| 28 | 56 | register { | |
| 29 | name => 'Channel', | ||
| 30 | parent => 'Object', | ||
| 31 | validation => is_instance_of('Zing::Channel'), | ||
| 32 | }; | ||
| 33 | |||
| 34 | 56 | register { | |
| 35 | name => 'Cli', | ||
| 36 | parent => 'Object', | ||
| 37 | validation => is_instance_of('Zing::Cli'), | ||
| 38 | }; | ||
| 39 | |||
| 40 | 56 | register { | |
| 41 | name => 'Cursor', | ||
| 42 | parent => 'Object', | ||
| 43 | validation => is_instance_of('Zing::Cursor'), | ||
| 44 | }; | ||
| 45 | |||
| 46 | 56 | register { | |
| 47 | name => 'Daemon', | ||
| 48 | parent => 'Object', | ||
| 49 | validation => is_instance_of('Zing::Daemon'), | ||
| 50 | }; | ||
| 51 | |||
| 52 | 56 | register { | |
| 53 | name => 'Data', | ||
| 54 | parent => 'Object', | ||
| 55 | validation => is_instance_of('Zing::Data'), | ||
| 56 | }; | ||
| 57 | |||
| 58 | 56 | register { | |
| 59 | name => 'Domain', | ||
| 60 | parent => 'Object', | ||
| 61 | validation => is_instance_of('Zing::Domain'), | ||
| 62 | }; | ||
| 63 | |||
| 64 | 56 | register { | |
| 65 | name => 'Encoder', | ||
| 66 | parent => 'Object', | ||
| 67 | validation => is_instance_of('Zing::Encoder'), | ||
| 68 | }; | ||
| 69 | |||
| 70 | 56 | register { | |
| 71 | name => 'Entity', | ||
| 72 | parent => 'Object', | ||
| 73 | validation => is_instance_of('Zing::Entity'), | ||
| 74 | }; | ||
| 75 | |||
| 76 | 56 | register { | |
| 77 | name => 'Env', | ||
| 78 | parent => 'Object', | ||
| 79 | validation => is_instance_of('Zing::Env'), | ||
| 80 | }; | ||
| 81 | |||
| 82 | 56 | register { | |
| 83 | name => 'Error', | ||
| 84 | parent => 'Object', | ||
| 85 | validation => is_instance_of('Zing::Error'), | ||
| 86 | }; | ||
| 87 | |||
| 88 | 56 | register { | |
| 89 | name => 'Flow', | ||
| 90 | parent => 'Object', | ||
| 91 | validation => is_instance_of('Zing::Flow'), | ||
| 92 | }; | ||
| 93 | |||
| 94 | 56 | register { | |
| 95 | name => 'Fork', | ||
| 96 | parent => 'Object', | ||
| 97 | validation => is_instance_of('Zing::Fork'), | ||
| 98 | }; | ||
| 99 | |||
| 100 | 56 | declare 'Interupt', | |
| 101 | as Enum([qw(CHLD HUP INT QUIT TERM USR1 USR2)]); | ||
| 102 | |||
| 103 | 56 | register { | |
| 104 | name => 'ID', | ||
| 105 | parent => 'Object', | ||
| 106 | validation => is_instance_of('Zing::ID'), | ||
| 107 | }; | ||
| 108 | |||
| 109 | 56 | register { | |
| 110 | name => 'Journal', | ||
| 111 | parent => 'Object', | ||
| 112 | validation => is_instance_of('Zing::Journal'), | ||
| 113 | }; | ||
| 114 | |||
| 115 | 56 | register { | |
| 116 | name => 'Kernel', | ||
| 117 | parent => 'Object', | ||
| 118 | validation => is_instance_of('Zing::Kernel'), | ||
| 119 | }; | ||
| 120 | |||
| 121 | declare 'Key', | ||
| 122 | as Str(), | ||
| 123 | where { | ||
| 124 | 0 | ▶ | $_ =~ qr(^[^\:]+:[^\:]+:[^\:]+:[^\:]+:[^\:]+$) |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 125 | 56 | }; | |
| 126 | |||
| 127 | 56 | register { | |
| 128 | name => 'KeyVal', | ||
| 129 | parent => 'Object', | ||
| 130 | validation => is_instance_of('Zing::KeyVal'), | ||
| 131 | }; | ||
| 132 | |||
| 133 | 56 | register { | |
| 134 | name => 'Launcher', | ||
| 135 | parent => 'Object', | ||
| 136 | validation => is_instance_of('Zing::Launcher'), | ||
| 137 | }; | ||
| 138 | |||
| 139 | 56 | register { | |
| 140 | name => 'Logic', | ||
| 141 | parent => 'Object', | ||
| 142 | validation => is_instance_of('Zing::Logic'), | ||
| 143 | }; | ||
| 144 | |||
| 145 | 56 | register { | |
| 146 | name => 'Lookup', | ||
| 147 | parent => 'Object', | ||
| 148 | validation => is_instance_of('Zing::Lookup'), | ||
| 149 | }; | ||
| 150 | |||
| 151 | 56 | register { | |
| 152 | name => 'Loop', | ||
| 153 | parent => 'Object', | ||
| 154 | validation => is_instance_of('Zing::Loop'), | ||
| 155 | }; | ||
| 156 | |||
| 157 | 56 | register { | |
| 158 | name => 'Logger', | ||
| 159 | parent => 'Object', | ||
| 160 | validation => is_instance_of('FlightRecorder'), | ||
| 161 | }; | ||
| 162 | |||
| 163 | 56 | register { | |
| 164 | name => 'Mailbox', | ||
| 165 | parent => 'Object', | ||
| 166 | validation => is_instance_of('Zing::Mailbox'), | ||
| 167 | }; | ||
| 168 | |||
| 169 | 56 | register { | |
| 170 | name => 'Meta', | ||
| 171 | parent => 'Object', | ||
| 172 | validation => is_instance_of('Zing::Meta'), | ||
| 173 | }; | ||
| 174 | |||
| 175 | declare 'Name', | ||
| 176 | as Str(), | ||
| 177 | where { | ||
| 178 | 0 | ▶ | $_ =~ qr(^[^\:\*]+$) |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 179 | 56 | }; | |
| 180 | |||
| 181 | 56 | register { | |
| 182 | name => 'Poll', | ||
| 183 | parent => 'Object', | ||
| 184 | validation => is_instance_of('Zing::Poll'), | ||
| 185 | }; | ||
| 186 | |||
| 187 | 56 | register { | |
| 188 | name => 'Process', | ||
| 189 | parent => 'Object', | ||
| 190 | validation => is_instance_of('Zing::Process'), | ||
| 191 | }; | ||
| 192 | |||
| 193 | 56 | register { | |
| 194 | name => 'PubSub', | ||
| 195 | parent => 'Object', | ||
| 196 | validation => is_instance_of('Zing::PubSub'), | ||
| 197 | }; | ||
| 198 | |||
| 199 | 56 | register { | |
| 200 | name => 'Queue', | ||
| 201 | parent => 'Object', | ||
| 202 | validation => is_instance_of('Zing::Queue'), | ||
| 203 | }; | ||
| 204 | |||
| 205 | 56 | register { | |
| 206 | name => 'Repo', | ||
| 207 | parent => 'Object', | ||
| 208 | validation => is_instance_of('Zing::Repo'), | ||
| 209 | }; | ||
| 210 | |||
| 211 | 56 | register { | |
| 212 | name => 'Ring', | ||
| 213 | parent => 'Object', | ||
| 214 | validation => is_instance_of('Zing::Ring'), | ||
| 215 | }; | ||
| 216 | |||
| 217 | 56 | register { | |
| 218 | name => 'Scheduler', | ||
| 219 | parent => 'Object', | ||
| 220 | validation => is_instance_of('Zing::Scheduler'), | ||
| 221 | }; | ||
| 222 | |||
| 223 | 56 | register { | |
| 224 | name => 'Search', | ||
| 225 | parent => 'Object', | ||
| 226 | validation => is_instance_of('Zing::Search'), | ||
| 227 | }; | ||
| 228 | |||
| 229 | 56 | declare 'Schedule', | |
| 230 | as Tuple([Str(), ArrayRef([Str()]), HashRef()]); | ||
| 231 | |||
| 232 | 56 | declare 'Scheme', | |
| 233 | as Tuple([Str(), ArrayRef(), Int()]); | ||
| 234 | |||
| 235 | 56 | register { | |
| 236 | name => 'Savepoint', | ||
| 237 | parent => 'Object', | ||
| 238 | validation => is_instance_of('Zing::Savepoint'), | ||
| 239 | }; | ||
| 240 | |||
| 241 | 56 | register { | |
| 242 | name => 'Simple', | ||
| 243 | parent => 'Object', | ||
| 244 | validation => is_instance_of('Zing::Simple'), | ||
| 245 | }; | ||
| 246 | |||
| 247 | 56 | register { | |
| 248 | name => 'Single', | ||
| 249 | parent => 'Object', | ||
| 250 | validation => is_instance_of('Zing::Single'), | ||
| 251 | }; | ||
| 252 | |||
| 253 | 56 | register { | |
| 254 | name => 'Space', | ||
| 255 | parent => 'Object', | ||
| 256 | validation => is_instance_of('Data::Object::Space'), | ||
| 257 | }; | ||
| 258 | |||
| 259 | 56 | register { | |
| 260 | name => 'Spawner', | ||
| 261 | parent => 'Object', | ||
| 262 | validation => is_instance_of('Zing::Spawner'), | ||
| 263 | }; | ||
| 264 | |||
| 265 | 56 | register { | |
| 266 | name => 'Store', | ||
| 267 | parent => 'Object', | ||
| 268 | validation => is_instance_of('Zing::Store'), | ||
| 269 | }; | ||
| 270 | |||
| 271 | 56 | register { | |
| 272 | name => 'Table', | ||
| 273 | parent => 'Object', | ||
| 274 | validation => is_instance_of('Zing::Table'), | ||
| 275 | }; | ||
| 276 | |||
| 277 | 56 | declare 'TableType', | |
| 278 | as Enum([qw(channel domain keyval lookup queue repo table)]); | ||
| 279 | |||
| 280 | 56 | register { | |
| 281 | name => 'Term', | ||
| 282 | parent => 'Object', | ||
| 283 | validation => is_instance_of('Zing::Term'), | ||
| 284 | }; | ||
| 285 | |||
| 286 | 56 | register { | |
| 287 | name => 'Timer', | ||
| 288 | parent => 'Object', | ||
| 289 | validation => is_instance_of('Zing::Timer'), | ||
| 290 | }; | ||
| 291 | |||
| 292 | 56 | register { | |
| 293 | name => 'Watcher', | ||
| 294 | parent => 'Object', | ||
| 295 | validation => is_instance_of('Zing::Watcher'), | ||
| 296 | }; | ||
| 297 | |||
| 298 | 56 | register { | |
| 299 | name => 'Worker', | ||
| 300 | parent => 'Object', | ||
| 301 | validation => is_instance_of('Zing::Worker'), | ||
| 302 | }; | ||
| 303 | |||
| 304 | 56 | register { | |
| 305 | name => 'Zing', | ||
| 306 | parent => 'Object', | ||
| 307 | validation => is_instance_of('Zing'), | ||
| 308 | }; | ||
| 309 | |||
| 310 | 56 | 1; | |
| 311 | =encoding utf8 | ||
| 312 | |||
| 313 | =head1 NAME | ||
| 314 | |||
| 315 | Zing::Types - Type Library | ||
| 316 | |||
| 317 | =cut | ||
| 318 | |||
| 319 | =head1 ABSTRACT | ||
| 320 | |||
| 321 | Type Library | ||
| 322 | |||
| 323 | =cut | ||
| 324 | |||
| 325 | =head1 SYNOPSIS | ||
| 326 | |||
| 327 | package main; | ||
| 328 | |||
| 329 | use Zing::Types; | ||
| 330 | |||
| 331 | 1; | ||
| 332 | |||
| 333 | =cut | ||
| 334 | |||
| 335 | =head1 DESCRIPTION | ||
| 336 | |||
| 337 | This package provides type constraint for the L<Zing> process management | ||
| 338 | system. | ||
| 339 | |||
| 340 | =cut | ||
| 341 | |||
| 342 | =head1 LIBRARIES | ||
| 343 | |||
| 344 | This package uses type constraints from: | ||
| 345 | |||
| 346 | L<Types::Standard> | ||
| 347 | |||
| 348 | =cut | ||
| 349 | |||
| 350 | =head1 CONSTRAINTS | ||
| 351 | |||
| 352 | This package declares the following type constraints: | ||
| 353 | |||
| 354 | =cut | ||
| 355 | |||
| 356 | =head2 app | ||
| 357 | |||
| 358 | App | ||
| 359 | |||
| 360 | This type is defined in the L<Zing::Types> library. | ||
| 361 | |||
| 362 | =over 4 | ||
| 363 | |||
| 364 | =item app parent | ||
| 365 | |||
| 366 | Object | ||
| 367 | |||
| 368 | =back | ||
| 369 | |||
| 370 | =over 4 | ||
| 371 | |||
| 372 | =item app composition | ||
| 373 | |||
| 374 | InstanceOf["Zing::App"] | ||
| 375 | |||
| 376 | =back | ||
| 377 | |||
| 378 | =over 4 | ||
| 379 | |||
| 380 | =item app example #1 | ||
| 381 | |||
| 382 | # given: synopsis | ||
| 383 | |||
| 384 | use Zing::App; | ||
| 385 | |||
| 386 | my $app = Zing::App->new; | ||
| 387 | |||
| 388 | =back | ||
| 389 | |||
| 390 | =cut | ||
| 391 | |||
| 392 | =head2 channel | ||
| 393 | |||
| 394 | Channel | ||
| 395 | |||
| 396 | This type is defined in the L<Zing::Types> library. | ||
| 397 | |||
| 398 | =over 4 | ||
| 399 | |||
| 400 | =item channel parent | ||
| 401 | |||
| 402 | Object | ||
| 403 | |||
| 404 | =back | ||
| 405 | |||
| 406 | =over 4 | ||
| 407 | |||
| 408 | =item channel composition | ||
| 409 | |||
| 410 | InstanceOf["Zing::Channel"] | ||
| 411 | |||
| 412 | =back | ||
| 413 | |||
| 414 | =over 4 | ||
| 415 | |||
| 416 | =item channel example #1 | ||
| 417 | |||
| 418 | # given: synopsis | ||
| 419 | |||
| 420 | use Zing::Channel; | ||
| 421 | |||
| 422 | my $chan = Zing::Channel->new(name => 'share'); | ||
| 423 | |||
| 424 | =back | ||
| 425 | |||
| 426 | =cut | ||
| 427 | |||
| 428 | =head2 cli | ||
| 429 | |||
| 430 | Cli | ||
| 431 | |||
| 432 | This type is defined in the L<Zing::Types> library. | ||
| 433 | |||
| 434 | =over 4 | ||
| 435 | |||
| 436 | =item cli parent | ||
| 437 | |||
| 438 | Object | ||
| 439 | |||
| 440 | =back | ||
| 441 | |||
| 442 | =over 4 | ||
| 443 | |||
| 444 | =item cli composition | ||
| 445 | |||
| 446 | InstanceOf["Zing::Cli"] | ||
| 447 | |||
| 448 | =back | ||
| 449 | |||
| 450 | =over 4 | ||
| 451 | |||
| 452 | =item cli example #1 | ||
| 453 | |||
| 454 | # given: synopsis | ||
| 455 | |||
| 456 | use Zing::Cli; | ||
| 457 | |||
| 458 | my $cli = Zing::Cli->new; | ||
| 459 | |||
| 460 | =back | ||
| 461 | |||
| 462 | =cut | ||
| 463 | |||
| 464 | =head2 cursor | ||
| 465 | |||
| 466 | Cursor | ||
| 467 | |||
| 468 | This type is defined in the L<Zing::Types> library. | ||
| 469 | |||
| 470 | =over 4 | ||
| 471 | |||
| 472 | =item cursor parent | ||
| 473 | |||
| 474 | Object | ||
| 475 | |||
| 476 | =back | ||
| 477 | |||
| 478 | =over 4 | ||
| 479 | |||
| 480 | =item cursor composition | ||
| 481 | |||
| 482 | InstanceOf["Zing::Cursor"] | ||
| 483 | |||
| 484 | =back | ||
| 485 | |||
| 486 | =over 4 | ||
| 487 | |||
| 488 | =item cursor example #1 | ||
| 489 | |||
| 490 | # given: synopsis | ||
| 491 | |||
| 492 | use Zing::Cursor; | ||
| 493 | use Zing::Lookup; | ||
| 494 | |||
| 495 | my $cursor = Zing::Cursor->new( | ||
| 496 | lookup => Zing::Lookup->new( | ||
| 497 | name => 'people' | ||
| 498 | ) | ||
| 499 | ); | ||
| 500 | |||
| 501 | =back | ||
| 502 | |||
| 503 | =cut | ||
| 504 | |||
| 505 | =head2 daemon | ||
| 506 | |||
| 507 | Daemon | ||
| 508 | |||
| 509 | This type is defined in the L<Zing::Types> library. | ||
| 510 | |||
| 511 | =over 4 | ||
| 512 | |||
| 513 | =item daemon parent | ||
| 514 | |||
| 515 | Object | ||
| 516 | |||
| 517 | =back | ||
| 518 | |||
| 519 | =over 4 | ||
| 520 | |||
| 521 | =item daemon composition | ||
| 522 | |||
| 523 | InstanceOf["Zing::Daemon"] | ||
| 524 | |||
| 525 | =back | ||
| 526 | |||
| 527 | =over 4 | ||
| 528 | |||
| 529 | =item daemon example #1 | ||
| 530 | |||
| 531 | # given: synopsis | ||
| 532 | |||
| 533 | use Zing::Cartridge; | ||
| 534 | use Zing::Daemon; | ||
| 535 | |||
| 536 | my $daemon = Zing::Daemon->new( | ||
| 537 | cartridge => Zing::Cartridge->new(name => 'myapp') | ||
| 538 | ); | ||
| 539 | |||
| 540 | =back | ||
| 541 | |||
| 542 | =cut | ||
| 543 | |||
| 544 | =head2 data | ||
| 545 | |||
| 546 | Data | ||
| 547 | |||
| 548 | This type is defined in the L<Zing::Types> library. | ||
| 549 | |||
| 550 | =over 4 | ||
| 551 | |||
| 552 | =item data parent | ||
| 553 | |||
| 554 | Object | ||
| 555 | |||
| 556 | =back | ||
| 557 | |||
| 558 | =over 4 | ||
| 559 | |||
| 560 | =item data composition | ||
| 561 | |||
| 562 | InstanceOf["Zing::Data"] | ||
| 563 | |||
| 564 | =back | ||
| 565 | |||
| 566 | =over 4 | ||
| 567 | |||
| 568 | =item data example #1 | ||
| 569 | |||
| 570 | # given: synopsis | ||
| 571 | |||
| 572 | use Zing::Data; | ||
| 573 | use Zing::Process; | ||
| 574 | |||
| 575 | my $data = Zing::Data->new(name => 'random'); | ||
| 576 | |||
| 577 | =back | ||
| 578 | |||
| 579 | =cut | ||
| 580 | |||
| 581 | =head2 domain | ||
| 582 | |||
| 583 | Domain | ||
| 584 | |||
| 585 | This type is defined in the L<Zing::Types> library. | ||
| 586 | |||
| 587 | =over 4 | ||
| 588 | |||
| 589 | =item domain parent | ||
| 590 | |||
| 591 | Object | ||
| 592 | |||
| 593 | =back | ||
| 594 | |||
| 595 | =over 4 | ||
| 596 | |||
| 597 | =item domain composition | ||
| 598 | |||
| 599 | InstanceOf["Zing::Domain"] | ||
| 600 | |||
| 601 | =back | ||
| 602 | |||
| 603 | =over 4 | ||
| 604 | |||
| 605 | =item domain example #1 | ||
| 606 | |||
| 607 | # given: synopsis | ||
| 608 | |||
| 609 | use Zing::Domain; | ||
| 610 | |||
| 611 | my $domain = Zing::Domain->new(name => 'exchange'); | ||
| 612 | |||
| 613 | =back | ||
| 614 | |||
| 615 | =cut | ||
| 616 | |||
| 617 | =head2 encoder | ||
| 618 | |||
| 619 | Encoder | ||
| 620 | |||
| 621 | This type is defined in the L<Zing::Types> library. | ||
| 622 | |||
| 623 | =over 4 | ||
| 624 | |||
| 625 | =item encoder parent | ||
| 626 | |||
| 627 | Object | ||
| 628 | |||
| 629 | =back | ||
| 630 | |||
| 631 | =over 4 | ||
| 632 | |||
| 633 | =item encoder composition | ||
| 634 | |||
| 635 | InstanceOf["Zing::Encoder"] | ||
| 636 | |||
| 637 | =back | ||
| 638 | |||
| 639 | =over 4 | ||
| 640 | |||
| 641 | =item encoder example #1 | ||
| 642 | |||
| 643 | # given: synopsis | ||
| 644 | |||
| 645 | use Zing::Encoder; | ||
| 646 | |||
| 647 | my $encoder = Zing::Encoder->new; | ||
| 648 | |||
| 649 | =back | ||
| 650 | |||
| 651 | =cut | ||
| 652 | |||
| 653 | =head2 entity | ||
| 654 | |||
| 655 | Entity | ||
| 656 | |||
| 657 | This type is defined in the L<Zing::Types> library. | ||
| 658 | |||
| 659 | =over 4 | ||
| 660 | |||
| 661 | =item entity parent | ||
| 662 | |||
| 663 | Object | ||
| 664 | |||
| 665 | =back | ||
| 666 | |||
| 667 | =over 4 | ||
| 668 | |||
| 669 | =item entity composition | ||
| 670 | |||
| 671 | InstanceOf["Zing::Entity"] | ||
| 672 | |||
| 673 | =back | ||
| 674 | |||
| 675 | =over 4 | ||
| 676 | |||
| 677 | =item entity example #1 | ||
| 678 | |||
| 679 | # given: synopsis | ||
| 680 | |||
| 681 | use Zing::Entity; | ||
| 682 | |||
| 683 | my $app = Zing::Entity->new; | ||
| 684 | |||
| 685 | =back | ||
| 686 | |||
| 687 | =cut | ||
| 688 | |||
| 689 | =head2 env | ||
| 690 | |||
| 691 | Env | ||
| 692 | |||
| 693 | This type is defined in the L<Zing::Types> library. | ||
| 694 | |||
| 695 | =over 4 | ||
| 696 | |||
| 697 | =item env parent | ||
| 698 | |||
| 699 | Object | ||
| 700 | |||
| 701 | =back | ||
| 702 | |||
| 703 | =over 4 | ||
| 704 | |||
| 705 | =item env composition | ||
| 706 | |||
| 707 | InstanceOf["Zing::Env"] | ||
| 708 | |||
| 709 | =back | ||
| 710 | |||
| 711 | =over 4 | ||
| 712 | |||
| 713 | =item env example #1 | ||
| 714 | |||
| 715 | # given: synopsis | ||
| 716 | |||
| 717 | use Zing::Env; | ||
| 718 | |||
| 719 | my $env = Zing::Env->new; | ||
| 720 | |||
| 721 | =back | ||
| 722 | |||
| 723 | =cut | ||
| 724 | |||
| 725 | =head2 error | ||
| 726 | |||
| 727 | Error | ||
| 728 | |||
| 729 | This type is defined in the L<Zing::Types> library. | ||
| 730 | |||
| 731 | =over 4 | ||
| 732 | |||
| 733 | =item error parent | ||
| 734 | |||
| 735 | Object | ||
| 736 | |||
| 737 | =back | ||
| 738 | |||
| 739 | =over 4 | ||
| 740 | |||
| 741 | =item error composition | ||
| 742 | |||
| 743 | InstanceOf["Zing::Error"] | ||
| 744 | |||
| 745 | =back | ||
| 746 | |||
| 747 | =over 4 | ||
| 748 | |||
| 749 | =item error example #1 | ||
| 750 | |||
| 751 | # given: synopsis | ||
| 752 | |||
| 753 | use Zing::Error; | ||
| 754 | |||
| 755 | my $error = Zing::Error->new; | ||
| 756 | |||
| 757 | =back | ||
| 758 | |||
| 759 | =cut | ||
| 760 | |||
| 761 | =head2 flow | ||
| 762 | |||
| 763 | Flow | ||
| 764 | |||
| 765 | This type is defined in the L<Zing::Types> library. | ||
| 766 | |||
| 767 | =over 4 | ||
| 768 | |||
| 769 | =item flow parent | ||
| 770 | |||
| 771 | Object | ||
| 772 | |||
| 773 | =back | ||
| 774 | |||
| 775 | =over 4 | ||
| 776 | |||
| 777 | =item flow composition | ||
| 778 | |||
| 779 | InstanceOf["Zing::Flow"] | ||
| 780 | |||
| 781 | =back | ||
| 782 | |||
| 783 | =over 4 | ||
| 784 | |||
| 785 | =item flow example #1 | ||
| 786 | |||
| 787 | # given: synopsis | ||
| 788 | |||
| 789 | use Zing::Flow; | ||
| 790 | |||
| 791 | my $flow = Zing::Flow->new(name => 'step_1', code => sub {1}); | ||
| 792 | |||
| 793 | =back | ||
| 794 | |||
| 795 | =cut | ||
| 796 | |||
| 797 | =head2 fork | ||
| 798 | |||
| 799 | Fork | ||
| 800 | |||
| 801 | This type is defined in the L<Zing::Types> library. | ||
| 802 | |||
| 803 | =over 4 | ||
| 804 | |||
| 805 | =item fork parent | ||
| 806 | |||
| 807 | Object | ||
| 808 | |||
| 809 | =back | ||
| 810 | |||
| 811 | =over 4 | ||
| 812 | |||
| 813 | =item fork composition | ||
| 814 | |||
| 815 | InstanceOf["Zing::Fork"] | ||
| 816 | |||
| 817 | =back | ||
| 818 | |||
| 819 | =over 4 | ||
| 820 | |||
| 821 | =item fork example #1 | ||
| 822 | |||
| 823 | # given: synopsis | ||
| 824 | |||
| 825 | use Zing::Fork; | ||
| 826 | use Zing::Process; | ||
| 827 | |||
| 828 | my $scheme = ['MyApp', [], 1]; | ||
| 829 | my $fork = Zing::Fork->new(scheme => $scheme, parent => Zing::Process->new); | ||
| 830 | |||
| 831 | =back | ||
| 832 | |||
| 833 | =cut | ||
| 834 | |||
| 835 | =head2 id | ||
| 836 | |||
| 837 | ID | ||
| 838 | |||
| 839 | This type is defined in the L<Zing::Types> library. | ||
| 840 | |||
| 841 | =over 4 | ||
| 842 | |||
| 843 | =item id composition | ||
| 844 | |||
| 845 | InstanceOf["Zing::ID"] | ||
| 846 | |||
| 847 | =back | ||
| 848 | |||
| 849 | =over 4 | ||
| 850 | |||
| 851 | =item id example #1 | ||
| 852 | |||
| 853 | # given: synopsis | ||
| 854 | |||
| 855 | use Zing::ID; | ||
| 856 | |||
| 857 | my $id = Zing::ID->new; | ||
| 858 | |||
| 859 | =back | ||
| 860 | |||
| 861 | =cut | ||
| 862 | |||
| 863 | =head2 interupt | ||
| 864 | |||
| 865 | Interupt | ||
| 866 | |||
| 867 | This type is defined in the L<Zing::Types> library. | ||
| 868 | |||
| 869 | =over 4 | ||
| 870 | |||
| 871 | =item interupt composition | ||
| 872 | |||
| 873 | Enum[qw(CHLD HUP INT QUIT TERM USR1 USR2)] | ||
| 874 | |||
| 875 | =back | ||
| 876 | |||
| 877 | =over 4 | ||
| 878 | |||
| 879 | =item interupt example #1 | ||
| 880 | |||
| 881 | # given: synopsis | ||
| 882 | |||
| 883 | 'QUIT' | ||
| 884 | |||
| 885 | =back | ||
| 886 | |||
| 887 | =cut | ||
| 888 | |||
| 889 | =head2 kernel | ||
| 890 | |||
| 891 | Kernel | ||
| 892 | |||
| 893 | This type is defined in the L<Zing::Types> library. | ||
| 894 | |||
| 895 | =over 4 | ||
| 896 | |||
| 897 | =item kernel parent | ||
| 898 | |||
| 899 | Object | ||
| 900 | |||
| 901 | =back | ||
| 902 | |||
| 903 | =over 4 | ||
| 904 | |||
| 905 | =item kernel composition | ||
| 906 | |||
| 907 | InstanceOf["Zing::Kernel"] | ||
| 908 | |||
| 909 | =back | ||
| 910 | |||
| 911 | =over 4 | ||
| 912 | |||
| 913 | =item kernel example #1 | ||
| 914 | |||
| 915 | # given: synopsis | ||
| 916 | |||
| 917 | use Zing::Kernel; | ||
| 918 | |||
| 919 | my $kernel = Zing::Kernel->new(scheme => ['MyApp', [], 1]); | ||
| 920 | |||
| 921 | =back | ||
| 922 | |||
| 923 | =cut | ||
| 924 | |||
| 925 | =head2 key | ||
| 926 | |||
| 927 | Key | ||
| 928 | |||
| 929 | This type is defined in the L<Zing::Types> library. | ||
| 930 | |||
| 931 | =over 4 | ||
| 932 | |||
| 933 | =item key parent | ||
| 934 | |||
| 935 | Str | ||
| 936 | |||
| 937 | =back | ||
| 938 | |||
| 939 | =over 4 | ||
| 940 | |||
| 941 | =item key composition | ||
| 942 | |||
| 943 | StrMatch[qr(^[^\:\*]+:[^\:\*]+:[^\:\*]+:[^\:\*]+:[^\:\*]+$)] | ||
| 944 | |||
| 945 | =back | ||
| 946 | |||
| 947 | =over 4 | ||
| 948 | |||
| 949 | =item key example #1 | ||
| 950 | |||
| 951 | # given: synopsis | ||
| 952 | |||
| 953 | "zing:main:global:repo:random" | ||
| 954 | |||
| 955 | =back | ||
| 956 | |||
| 957 | =cut | ||
| 958 | |||
| 959 | =head2 keyval | ||
| 960 | |||
| 961 | KeyVal | ||
| 962 | |||
| 963 | This type is defined in the L<Zing::Types> library. | ||
| 964 | |||
| 965 | =over 4 | ||
| 966 | |||
| 967 | =item keyval parent | ||
| 968 | |||
| 969 | Object | ||
| 970 | |||
| 971 | =back | ||
| 972 | |||
| 973 | =over 4 | ||
| 974 | |||
| 975 | =item keyval composition | ||
| 976 | |||
| 977 | InstanceOf["Zing::KeyVal"] | ||
| 978 | |||
| 979 | =back | ||
| 980 | |||
| 981 | =over 4 | ||
| 982 | |||
| 983 | =item keyval example #1 | ||
| 984 | |||
| 985 | # given: synopsis | ||
| 986 | |||
| 987 | use Zing::KeyVal; | ||
| 988 | |||
| 989 | my $keyval = Zing::KeyVal->new(name => 'notes'); | ||
| 990 | |||
| 991 | =back | ||
| 992 | |||
| 993 | =cut | ||
| 994 | |||
| 995 | =head2 logger | ||
| 996 | |||
| 997 | Logger | ||
| 998 | |||
| 999 | This type is defined in the L<Zing::Types> library. | ||
| 1000 | |||
| 1001 | =over 4 | ||
| 1002 | |||
| 1003 | =item logger parent | ||
| 1004 | |||
| 1005 | Object | ||
| 1006 | |||
| 1007 | =back | ||
| 1008 | |||
| 1009 | =over 4 | ||
| 1010 | |||
| 1011 | =item logger composition | ||
| 1012 | |||
| 1013 | InstanceOf["Zing::Logger"] | ||
| 1014 | |||
| 1015 | =back | ||
| 1016 | |||
| 1017 | =over 4 | ||
| 1018 | |||
| 1019 | =item logger example #1 | ||
| 1020 | |||
| 1021 | # given: synopsis | ||
| 1022 | |||
| 1023 | use FlightRecorder; | ||
| 1024 | |||
| 1025 | my $logger = FlightRecorder->new; | ||
| 1026 | |||
| 1027 | =back | ||
| 1028 | |||
| 1029 | =cut | ||
| 1030 | |||
| 1031 | =head2 logic | ||
| 1032 | |||
| 1033 | Logic | ||
| 1034 | |||
| 1035 | This type is defined in the L<Zing::Types> library. | ||
| 1036 | |||
| 1037 | =over 4 | ||
| 1038 | |||
| 1039 | =item logic parent | ||
| 1040 | |||
| 1041 | Object | ||
| 1042 | |||
| 1043 | =back | ||
| 1044 | |||
| 1045 | =over 4 | ||
| 1046 | |||
| 1047 | =item logic composition | ||
| 1048 | |||
| 1049 | InstanceOf["Zing::Logic"] | ||
| 1050 | |||
| 1051 | =back | ||
| 1052 | |||
| 1053 | =over 4 | ||
| 1054 | |||
| 1055 | =item logic example #1 | ||
| 1056 | |||
| 1057 | # given: synopsis | ||
| 1058 | |||
| 1059 | use Zing::Logic; | ||
| 1060 | use Zing::Process; | ||
| 1061 | |||
| 1062 | my $logic = Zing::Logic->new(process => Zing::Process->new); | ||
| 1063 | |||
| 1064 | =back | ||
| 1065 | |||
| 1066 | =cut | ||
| 1067 | |||
| 1068 | =head2 lookup | ||
| 1069 | |||
| 1070 | Lookup | ||
| 1071 | |||
| 1072 | This type is defined in the L<Zing::Types> library. | ||
| 1073 | |||
| 1074 | =over 4 | ||
| 1075 | |||
| 1076 | =item lookup parent | ||
| 1077 | |||
| 1078 | Object | ||
| 1079 | |||
| 1080 | =back | ||
| 1081 | |||
| 1082 | =over 4 | ||
| 1083 | |||
| 1084 | =item lookup composition | ||
| 1085 | |||
| 1086 | InstanceOf["Zing::Lookup"] | ||
| 1087 | |||
| 1088 | =back | ||
| 1089 | |||
| 1090 | =over 4 | ||
| 1091 | |||
| 1092 | =item lookup example #1 | ||
| 1093 | |||
| 1094 | # given: synopsis | ||
| 1095 | |||
| 1096 | use Zing::Lookup; | ||
| 1097 | |||
| 1098 | my $lookup = Zing::Lookup->new( | ||
| 1099 | name => 'users' | ||
| 1100 | ); | ||
| 1101 | |||
| 1102 | =back | ||
| 1103 | |||
| 1104 | =cut | ||
| 1105 | |||
| 1106 | =head2 loop | ||
| 1107 | |||
| 1108 | Loop | ||
| 1109 | |||
| 1110 | This type is defined in the L<Zing::Types> library. | ||
| 1111 | |||
| 1112 | =over 4 | ||
| 1113 | |||
| 1114 | =item loop parent | ||
| 1115 | |||
| 1116 | Object | ||
| 1117 | |||
| 1118 | =back | ||
| 1119 | |||
| 1120 | =over 4 | ||
| 1121 | |||
| 1122 | =item loop composition | ||
| 1123 | |||
| 1124 | InstanceOf["Zing::Loop"] | ||
| 1125 | |||
| 1126 | =back | ||
| 1127 | |||
| 1128 | =over 4 | ||
| 1129 | |||
| 1130 | =item loop example #1 | ||
| 1131 | |||
| 1132 | # given: synopsis | ||
| 1133 | |||
| 1134 | use Zing::Flow; | ||
| 1135 | use Zing::Loop; | ||
| 1136 | |||
| 1137 | my $loop = Zing::Loop->new( | ||
| 1138 | flow => Zing::Flow->new(name => 'init', code => sub {1}) | ||
| 1139 | ); | ||
| 1140 | |||
| 1141 | =back | ||
| 1142 | |||
| 1143 | =cut | ||
| 1144 | |||
| 1145 | =head2 mailbox | ||
| 1146 | |||
| 1147 | Mailbox | ||
| 1148 | |||
| 1149 | This type is defined in the L<Zing::Types> library. | ||
| 1150 | |||
| 1151 | =over 4 | ||
| 1152 | |||
| 1153 | =item mailbox parent | ||
| 1154 | |||
| 1155 | Object | ||
| 1156 | |||
| 1157 | =back | ||
| 1158 | |||
| 1159 | =over 4 | ||
| 1160 | |||
| 1161 | =item mailbox composition | ||
| 1162 | |||
| 1163 | InstanceOf["Zing::Mailbox"] | ||
| 1164 | |||
| 1165 | =back | ||
| 1166 | |||
| 1167 | =over 4 | ||
| 1168 | |||
| 1169 | =item mailbox example #1 | ||
| 1170 | |||
| 1171 | # given: synopsis | ||
| 1172 | |||
| 1173 | use Zing::Mailbox; | ||
| 1174 | use Zing::Process; | ||
| 1175 | |||
| 1176 | my $mailbox = Zing::Mailbox->new(name => 'shared'); | ||
| 1177 | |||
| 1178 | =back | ||
| 1179 | |||
| 1180 | =cut | ||
| 1181 | |||
| 1182 | =head2 meta | ||
| 1183 | |||
| 1184 | Meta | ||
| 1185 | |||
| 1186 | This type is defined in the L<Zing::Types> library. | ||
| 1187 | |||
| 1188 | =over 4 | ||
| 1189 | |||
| 1190 | =item meta parent | ||
| 1191 | |||
| 1192 | Object | ||
| 1193 | |||
| 1194 | =back | ||
| 1195 | |||
| 1196 | =over 4 | ||
| 1197 | |||
| 1198 | =item meta composition | ||
| 1199 | |||
| 1200 | InstanceOf["Zing::Meta"] | ||
| 1201 | |||
| 1202 | =back | ||
| 1203 | |||
| 1204 | =over 4 | ||
| 1205 | |||
| 1206 | =item meta example #1 | ||
| 1207 | |||
| 1208 | # given: synopsis | ||
| 1209 | |||
| 1210 | use Zing::Meta; | ||
| 1211 | |||
| 1212 | my $meta = Zing::Meta->new(name => '$process'); | ||
| 1213 | |||
| 1214 | =back | ||
| 1215 | |||
| 1216 | =cut | ||
| 1217 | |||
| 1218 | =head2 name | ||
| 1219 | |||
| 1220 | Name | ||
| 1221 | |||
| 1222 | This type is defined in the L<Zing::Types> library. | ||
| 1223 | |||
| 1224 | =over 4 | ||
| 1225 | |||
| 1226 | =item name parent | ||
| 1227 | |||
| 1228 | Str | ||
| 1229 | |||
| 1230 | =back | ||
| 1231 | |||
| 1232 | =over 4 | ||
| 1233 | |||
| 1234 | =item name composition | ||
| 1235 | |||
| 1236 | StrMatch[qr(^[^\:\*]+$)] | ||
| 1237 | |||
| 1238 | =back | ||
| 1239 | |||
| 1240 | =over 4 | ||
| 1241 | |||
| 1242 | =item name example #1 | ||
| 1243 | |||
| 1244 | # given: synopsis | ||
| 1245 | |||
| 1246 | "main" | ||
| 1247 | |||
| 1248 | =back | ||
| 1249 | |||
| 1250 | =cut | ||
| 1251 | |||
| 1252 | =head2 poll | ||
| 1253 | |||
| 1254 | Poll | ||
| 1255 | |||
| 1256 | This type is defined in the L<Zing::Types> library. | ||
| 1257 | |||
| 1258 | =over 4 | ||
| 1259 | |||
| 1260 | =item poll parent | ||
| 1261 | |||
| 1262 | Object | ||
| 1263 | |||
| 1264 | =back | ||
| 1265 | |||
| 1266 | =over 4 | ||
| 1267 | |||
| 1268 | =item poll composition | ||
| 1269 | |||
| 1270 | InstanceOf["Zing::Poll"] | ||
| 1271 | |||
| 1272 | =back | ||
| 1273 | |||
| 1274 | =over 4 | ||
| 1275 | |||
| 1276 | =item poll example #1 | ||
| 1277 | |||
| 1278 | # given: synopsis | ||
| 1279 | |||
| 1280 | use Zing::Poll; | ||
| 1281 | use Zing::KeyVal; | ||
| 1282 | |||
| 1283 | my $keyval = Zing::KeyVal->new(name => 'notes'); | ||
| 1284 | my $poll = Zing::Poll->new(name => 'last-week', repo => $keyval); | ||
| 1285 | |||
| 1286 | =back | ||
| 1287 | |||
| 1288 | =cut | ||
| 1289 | |||
| 1290 | =head2 process | ||
| 1291 | |||
| 1292 | Process | ||
| 1293 | |||
| 1294 | This type is defined in the L<Zing::Types> library. | ||
| 1295 | |||
| 1296 | =over 4 | ||
| 1297 | |||
| 1298 | =item process parent | ||
| 1299 | |||
| 1300 | Object | ||
| 1301 | |||
| 1302 | =back | ||
| 1303 | |||
| 1304 | =over 4 | ||
| 1305 | |||
| 1306 | =item process composition | ||
| 1307 | |||
| 1308 | InstanceOf["Zing::Process"] | ||
| 1309 | |||
| 1310 | =back | ||
| 1311 | |||
| 1312 | =over 4 | ||
| 1313 | |||
| 1314 | =item process example #1 | ||
| 1315 | |||
| 1316 | # given: synopsis | ||
| 1317 | |||
| 1318 | use Zing::Process; | ||
| 1319 | |||
| 1320 | my $process = Zing::Process->new; | ||
| 1321 | |||
| 1322 | =back | ||
| 1323 | |||
| 1324 | =cut | ||
| 1325 | |||
| 1326 | =head2 pubsub | ||
| 1327 | |||
| 1328 | PubSub | ||
| 1329 | |||
| 1330 | This type is defined in the L<Zing::Types> library. | ||
| 1331 | |||
| 1332 | =over 4 | ||
| 1333 | |||
| 1334 | =item pubsub parent | ||
| 1335 | |||
| 1336 | Object | ||
| 1337 | |||
| 1338 | =back | ||
| 1339 | |||
| 1340 | =over 4 | ||
| 1341 | |||
| 1342 | =item pubsub composition | ||
| 1343 | |||
| 1344 | InstanceOf["Zing::PubSub"] | ||
| 1345 | |||
| 1346 | =back | ||
| 1347 | |||
| 1348 | =over 4 | ||
| 1349 | |||
| 1350 | =item pubsub example #1 | ||
| 1351 | |||
| 1352 | # given: synopsis | ||
| 1353 | |||
| 1354 | use Zing::PubSub; | ||
| 1355 | |||
| 1356 | my $pubsub = Zing::PubSub->new(name => 'tasks'); | ||
| 1357 | |||
| 1358 | =back | ||
| 1359 | |||
| 1360 | =cut | ||
| 1361 | |||
| 1362 | =head2 queue | ||
| 1363 | |||
| 1364 | Queue | ||
| 1365 | |||
| 1366 | This type is defined in the L<Zing::Types> library. | ||
| 1367 | |||
| 1368 | =over 4 | ||
| 1369 | |||
| 1370 | =item queue parent | ||
| 1371 | |||
| 1372 | Object | ||
| 1373 | |||
| 1374 | =back | ||
| 1375 | |||
| 1376 | =over 4 | ||
| 1377 | |||
| 1378 | =item queue composition | ||
| 1379 | |||
| 1380 | InstanceOf["Zing::Queue"] | ||
| 1381 | |||
| 1382 | =back | ||
| 1383 | |||
| 1384 | =over 4 | ||
| 1385 | |||
| 1386 | =item queue example #1 | ||
| 1387 | |||
| 1388 | # given: synopsis | ||
| 1389 | |||
| 1390 | use Zing::Queue; | ||
| 1391 | |||
| 1392 | my $queue = Zing::Queue->new(name => 'tasks'); | ||
| 1393 | |||
| 1394 | =back | ||
| 1395 | |||
| 1396 | =cut | ||
| 1397 | |||
| 1398 | =head2 repo | ||
| 1399 | |||
| 1400 | Repo | ||
| 1401 | |||
| 1402 | This type is defined in the L<Zing::Types> library. | ||
| 1403 | |||
| 1404 | =over 4 | ||
| 1405 | |||
| 1406 | =item repo parent | ||
| 1407 | |||
| 1408 | Object | ||
| 1409 | |||
| 1410 | =back | ||
| 1411 | |||
| 1412 | =over 4 | ||
| 1413 | |||
| 1414 | =item repo composition | ||
| 1415 | |||
| 1416 | InstanceOf["Zing::Repo"] | ||
| 1417 | |||
| 1418 | =back | ||
| 1419 | |||
| 1420 | =over 4 | ||
| 1421 | |||
| 1422 | =item repo example #1 | ||
| 1423 | |||
| 1424 | # given: synopsis | ||
| 1425 | |||
| 1426 | use Zing::Repo; | ||
| 1427 | |||
| 1428 | my $repo = Zing::Repo->new(name => 'repo'); | ||
| 1429 | |||
| 1430 | =back | ||
| 1431 | |||
| 1432 | =cut | ||
| 1433 | |||
| 1434 | =head2 schedule | ||
| 1435 | |||
| 1436 | Schedule | ||
| 1437 | |||
| 1438 | This type is defined in the L<Zing::Types> library. | ||
| 1439 | |||
| 1440 | =over 4 | ||
| 1441 | |||
| 1442 | =item schedule composition | ||
| 1443 | |||
| 1444 | Tuple[Str, ArrayRef[Str], HashRef] | ||
| 1445 | |||
| 1446 | =back | ||
| 1447 | |||
| 1448 | =over 4 | ||
| 1449 | |||
| 1450 | =item schedule example #1 | ||
| 1451 | |||
| 1452 | # given: synopsis | ||
| 1453 | |||
| 1454 | # at 00:00 on day-of-month 1 in january | ||
| 1455 | |||
| 1456 | ['0 0 1 1 *', ['task_queue'], { task => 'execute' }]; | ||
| 1457 | |||
| 1458 | =back | ||
| 1459 | |||
| 1460 | =over 4 | ||
| 1461 | |||
| 1462 | =item schedule example #2 | ||
| 1463 | |||
| 1464 | # given: synopsis | ||
| 1465 | |||
| 1466 | # at 00:00 on saturday | ||
| 1467 | |||
| 1468 | ['0 0 * * SAT', ['task_queue'], { task => 'execute' }]; | ||
| 1469 | |||
| 1470 | =back | ||
| 1471 | |||
| 1472 | =over 4 | ||
| 1473 | |||
| 1474 | =item schedule example #3 | ||
| 1475 | |||
| 1476 | # given: synopsis | ||
| 1477 | |||
| 1478 | # at minute 0 (hourly) | ||
| 1479 | |||
| 1480 | ['0 * * * *', ['task_queue'], { task => 'execute' }]; | ||
| 1481 | |||
| 1482 | =back | ||
| 1483 | |||
| 1484 | =cut | ||
| 1485 | |||
| 1486 | =head2 scheme | ||
| 1487 | |||
| 1488 | Scheme | ||
| 1489 | |||
| 1490 | This type is defined in the L<Zing::Types> library. | ||
| 1491 | |||
| 1492 | =over 4 | ||
| 1493 | |||
| 1494 | =item scheme composition | ||
| 1495 | |||
| 1496 | Tuple[Str, ArrayRef, Int] | ||
| 1497 | |||
| 1498 | =back | ||
| 1499 | |||
| 1500 | =over 4 | ||
| 1501 | |||
| 1502 | =item scheme example #1 | ||
| 1503 | |||
| 1504 | # given: synopsis | ||
| 1505 | |||
| 1506 | ['MyApp', [], 1_000]; | ||
| 1507 | |||
| 1508 | =back | ||
| 1509 | |||
| 1510 | =cut | ||
| 1511 | |||
| 1512 | =head2 search | ||
| 1513 | |||
| 1514 | Search | ||
| 1515 | |||
| 1516 | This type is defined in the L<Zing::Types> library. | ||
| 1517 | |||
| 1518 | =over 4 | ||
| 1519 | |||
| 1520 | =item search parent | ||
| 1521 | |||
| 1522 | Object | ||
| 1523 | |||
| 1524 | =back | ||
| 1525 | |||
| 1526 | =over 4 | ||
| 1527 | |||
| 1528 | =item search composition | ||
| 1529 | |||
| 1530 | InstanceOf["Zing::Search"] | ||
| 1531 | |||
| 1532 | =back | ||
| 1533 | |||
| 1534 | =over 4 | ||
| 1535 | |||
| 1536 | =item search example #1 | ||
| 1537 | |||
| 1538 | # given: synopsis | ||
| 1539 | |||
| 1540 | use Zing::Search; | ||
| 1541 | |||
| 1542 | my $search = Zing::Search->new; | ||
| 1543 | |||
| 1544 | =back | ||
| 1545 | |||
| 1546 | =cut | ||
| 1547 | |||
| 1548 | =head2 space | ||
| 1549 | |||
| 1550 | Space | ||
| 1551 | |||
| 1552 | This type is defined in the L<Zing::Types> library. | ||
| 1553 | |||
| 1554 | =over 4 | ||
| 1555 | |||
| 1556 | =item space parent | ||
| 1557 | |||
| 1558 | Object | ||
| 1559 | |||
| 1560 | =back | ||
| 1561 | |||
| 1562 | =over 4 | ||
| 1563 | |||
| 1564 | =item space composition | ||
| 1565 | |||
| 1566 | InstanceOf["Zing::Space"] | ||
| 1567 | |||
| 1568 | =back | ||
| 1569 | |||
| 1570 | =over 4 | ||
| 1571 | |||
| 1572 | =item space example #1 | ||
| 1573 | |||
| 1574 | # given: synopsis | ||
| 1575 | |||
| 1576 | use Data::Object::Space; | ||
| 1577 | |||
| 1578 | Data::Object::Space->new('MyApp'); | ||
| 1579 | |||
| 1580 | =back | ||
| 1581 | |||
| 1582 | =cut | ||
| 1583 | |||
| 1584 | =head2 store | ||
| 1585 | |||
| 1586 | Store | ||
| 1587 | |||
| 1588 | This type is defined in the L<Zing::Types> library. | ||
| 1589 | |||
| 1590 | =over 4 | ||
| 1591 | |||
| 1592 | =item store parent | ||
| 1593 | |||
| 1594 | Object | ||
| 1595 | |||
| 1596 | =back | ||
| 1597 | |||
| 1598 | =over 4 | ||
| 1599 | |||
| 1600 | =item store composition | ||
| 1601 | |||
| 1602 | InstanceOf["Zing::Store"] | ||
| 1603 | |||
| 1604 | =back | ||
| 1605 | |||
| 1606 | =over 4 | ||
| 1607 | |||
| 1608 | =item store example #1 | ||
| 1609 | |||
| 1610 | # given: synopsis | ||
| 1611 | |||
| 1612 | use Zing::Store; | ||
| 1613 | |||
| 1614 | my $store = Zing::Store->new; | ||
| 1615 | |||
| 1616 | =back | ||
| 1617 | |||
| 1618 | =cut | ||
| 1619 | |||
| 1620 | =head2 table | ||
| 1621 | |||
| 1622 | Table | ||
| 1623 | |||
| 1624 | This type is defined in the L<Zing::Types> library. | ||
| 1625 | |||
| 1626 | =over 4 | ||
| 1627 | |||
| 1628 | =item table parent | ||
| 1629 | |||
| 1630 | Object | ||
| 1631 | |||
| 1632 | =back | ||
| 1633 | |||
| 1634 | =over 4 | ||
| 1635 | |||
| 1636 | =item table composition | ||
| 1637 | |||
| 1638 | InstanceOf["Zing::Table"] | ||
| 1639 | |||
| 1640 | =back | ||
| 1641 | |||
| 1642 | =over 4 | ||
| 1643 | |||
| 1644 | =item table example #1 | ||
| 1645 | |||
| 1646 | # given: synopsis | ||
| 1647 | |||
| 1648 | use Zing::Table; | ||
| 1649 | |||
| 1650 | my $table = Zing::Table->new( | ||
| 1651 | name => 'users' | ||
| 1652 | ); | ||
| 1653 | |||
| 1654 | =back | ||
| 1655 | |||
| 1656 | =cut | ||
| 1657 | |||
| 1658 | =head2 term | ||
| 1659 | |||
| 1660 | Term | ||
| 1661 | |||
| 1662 | This type is defined in the L<Zing::Types> library. | ||
| 1663 | |||
| 1664 | =over 4 | ||
| 1665 | |||
| 1666 | =item term parent | ||
| 1667 | |||
| 1668 | Object | ||
| 1669 | |||
| 1670 | =back | ||
| 1671 | |||
| 1672 | =over 4 | ||
| 1673 | |||
| 1674 | =item term composition | ||
| 1675 | |||
| 1676 | InstanceOf["Zing::Term"] | ||
| 1677 | |||
| 1678 | =back | ||
| 1679 | |||
| 1680 | =over 4 | ||
| 1681 | |||
| 1682 | =item term example #1 | ||
| 1683 | |||
| 1684 | # given: synopsis | ||
| 1685 | |||
| 1686 | bless {}, 'Zing::Term'; | ||
| 1687 | |||
| 1688 | =back | ||
| 1689 | |||
| 1690 | =cut | ||
| 1691 | |||
| 1692 | =head2 watcher | ||
| 1693 | |||
| 1694 | Watcher | ||
| 1695 | |||
| 1696 | This type is defined in the L<Zing::Types> library. | ||
| 1697 | |||
| 1698 | =over 4 | ||
| 1699 | |||
| 1700 | =item watcher parent | ||
| 1701 | |||
| 1702 | Object | ||
| 1703 | |||
| 1704 | =back | ||
| 1705 | |||
| 1706 | =over 4 | ||
| 1707 | |||
| 1708 | =item watcher composition | ||
| 1709 | |||
| 1710 | InstanceOf["Zing::Watcher"] | ||
| 1711 | |||
| 1712 | =back | ||
| 1713 | |||
| 1714 | =over 4 | ||
| 1715 | |||
| 1716 | =item watcher example #1 | ||
| 1717 | |||
| 1718 | # given: synopsis | ||
| 1719 | |||
| 1720 | bless {}, 'Zing::Watcher'; | ||
| 1721 | |||
| 1722 | =back | ||
| 1723 | |||
| 1724 | =cut | ||
| 1725 | |||
| 1726 | =head2 worker | ||
| 1727 | |||
| 1728 | Worker | ||
| 1729 | |||
| 1730 | This type is defined in the L<Zing::Types> library. | ||
| 1731 | |||
| 1732 | =over 4 | ||
| 1733 | |||
| 1734 | =item worker parent | ||
| 1735 | |||
| 1736 | Object | ||
| 1737 | |||
| 1738 | =back | ||
| 1739 | |||
| 1740 | =over 4 | ||
| 1741 | |||
| 1742 | =item worker composition | ||
| 1743 | |||
| 1744 | InstanceOf["Zing::Worker"] | ||
| 1745 | |||
| 1746 | =back | ||
| 1747 | |||
| 1748 | =over 4 | ||
| 1749 | |||
| 1750 | =item worker example #1 | ||
| 1751 | |||
| 1752 | # given: synopsis | ||
| 1753 | |||
| 1754 | bless {}, 'Zing::Worker'; | ||
| 1755 | |||
| 1756 | =back | ||
| 1757 | |||
| 1758 | =cut | ||
| 1759 | |||
| 1760 | =head2 zing | ||
| 1761 | |||
| 1762 | Zing | ||
| 1763 | |||
| 1764 | This type is defined in the L<Zing::Types> library. | ||
| 1765 | |||
| 1766 | =over 4 | ||
| 1767 | |||
| 1768 | =item zing parent | ||
| 1769 | |||
| 1770 | Object | ||
| 1771 | |||
| 1772 | =back | ||
| 1773 | |||
| 1774 | =over 4 | ||
| 1775 | |||
| 1776 | =item zing composition | ||
| 1777 | |||
| 1778 | InstanceOf["Zing::Zing"] | ||
| 1779 | |||
| 1780 | =back | ||
| 1781 | |||
| 1782 | =over 4 | ||
| 1783 | |||
| 1784 | =item zing example #1 | ||
| 1785 | |||
| 1786 | # given: synopsis | ||
| 1787 | |||
| 1788 | use Zing; | ||
| 1789 | |||
| 1790 | my $zing = Zing->new(scheme => ['MyApp', [], 1]); | ||
| 1791 | |||
| 1792 | =back | ||
| 1793 | |||
| 1794 | =cut | ||
| 1795 | |||
| 1796 | =head1 AUTHOR | ||
| 1797 | |||
| 1798 | Al Newkirk, C<awncorp@cpan.org> | ||
| 1799 | |||
| 1800 | =head1 LICENSE | ||
| 1801 | |||
| 1802 | Copyright (C) 2011-2019, Al Newkirk, et al. | ||
| 1803 | |||
| 1804 | This is free software; you can redistribute it and/or modify it under the terms | ||
| 1805 | of the The Apache License, Version 2.0, as elucidated in the L<"license | ||
| 1806 | file"|https://github.com/iamalnewkirk/zing/blob/master/LICENSE>. | ||
| 1807 | |||
| 1808 | =head1 PROJECT | ||
| 1809 | |||
| 1810 | L<Wiki|https://github.com/iamalnewkirk/zing/wiki> | ||
| 1811 | |||
| 1812 | L<Project|https://github.com/iamalnewkirk/zing> | ||
| 1813 | |||
| 1814 | L<Initiatives|https://github.com/iamalnewkirk/zing/projects> | ||
| 1815 | |||
| 1816 | L<Milestones|https://github.com/iamalnewkirk/zing/milestones> | ||
| 1817 | |||
| 1818 | L<Contributing|https://github.com/iamalnewkirk/zing/blob/master/CONTRIBUTE.md> | ||
| 1819 | |||
| 1820 | L<Issues|https://github.com/iamalnewkirk/zing/issues> | ||
| 1821 | |||
| 1822 | =cut | ||