...
 
Commits (4)
......@@ -6,8 +6,6 @@
.. role:: ref(emphasis)
.. _vmod_dispatch(3):
=============
vmod_dispatch
=============
......@@ -21,9 +19,28 @@ Varnish Module for dispatching control to VCL labels or subroutines
SYNOPSIS
========
import dispatch [from "path"] ;
.. parsed-literal::
import dispatch [from "path"]
new xlabel = dispatch.label()
VOID xlabel.add(INT n, STRING label)
VOID xlabel.go(INT)
STRING xlabel.string(INT)
new xsub = dispatch.sub()
VOID xsub.add(INT n, STRING sub)
VOID xsub.call(INT n)
STRING xsub.string(INT)
STRING version()
::
# VMOD version
......@@ -36,93 +53,66 @@ Varnish Module (VMOD) for dispatching control to VCL labels or subroutines.
... XXX ...
CONTENTS
========
.. _vmod_dispatch.label:
* VOID label()
* VOID sub()
* STRING version()
new xlabel = dispatch.label()
-----------------------------
.. _obj_label:
label
-----
::
.. _vmod_dispatch.label.add:
new OBJ = VOID label()
VOID xlabel.add(INT n, STRING label)
------------------------------------
.. _func_label.add:
label.add
---------
::
.. _vmod_dispatch.label.go:
VOID label.add(INT n, STRING label)
VOID xlabel.go(INT)
-------------------
.. _func_label.go:
label.go
--------
::
.. _vmod_dispatch.label.string:
VOID label.go(INT)
STRING xlabel.string(INT)
-------------------------
.. _func_label.string:
label.string
------------
::
.. _vmod_dispatch.sub:
STRING label.string(INT)
new xsub = dispatch.sub()
-------------------------
.. _obj_sub:
sub
---
::
.. _vmod_dispatch.sub.add:
new OBJ = VOID sub()
VOID xsub.add(INT n, STRING sub)
--------------------------------
.. _func_sub.add:
sub.add
-------
::
VOID sub.add(INT n, STRING sub)
.. _func_sub.call:
sub.call
--------
.. _vmod_dispatch.sub.call:
::
VOID sub.call(INT n)
VOID xsub.call(INT n)
---------------------
.. _func_sub.string:
sub.string
----------
::
.. _vmod_dispatch.sub.string:
STRING sub.string(INT)
STRING xsub.string(INT)
-----------------------
.. _func_version:
version
-------
::
.. _vmod_dispatch.version:
STRING version()
STRING version()
----------------
Return the version string for this VMOD.
......
......@@ -7,7 +7,7 @@
# See LICENSE
#
$Module dispatch 3 Varnish Module for dispatching control to VCL labels or subroutines
$Module dispatch 3 "Varnish Module for dispatching control to VCL labels or subroutines"
::
......