Commit 37c715b8 authored by Nils Goroll's avatar Nils Goroll

update generated rst

parent 8d059389
...@@ -21,7 +21,29 @@ Varnish Module for dispatching control to VCL labels or subroutines ...@@ -21,7 +21,29 @@ Varnish Module for dispatching control to VCL labels or subroutines
SYNOPSIS SYNOPSIS
======== ========
import dispatch [from "path"] ;
::
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()
:: ::
...@@ -36,93 +58,79 @@ Varnish Module (VMOD) for dispatching control to VCL labels or subroutines. ...@@ -36,93 +58,79 @@ Varnish Module (VMOD) for dispatching control to VCL labels or subroutines.
... XXX ... ... XXX ...
CONTENTS
========
* VOID label()
* VOID sub()
* STRING version()
.. _obj_label: .. _obj_label:
label new xlabel = dispatch.label()
----- -----------------------------
::
new OBJ = VOID label()
.. _func_label.add: .. _func_label.add:
label.add VOID xlabel.add(INT n, STRING label)
--------- ------------------------------------
::
VOID label.add(INT n, STRING label)
.. _func_label.go: .. _func_label.go:
label.go VOID xlabel.go(INT)
-------- -------------------
::
VOID label.go(INT)
.. _func_label.string: .. _func_label.string:
label.string STRING xlabel.string(INT)
------------ -------------------------
::
STRING label.string(INT)
.. _obj_sub: .. _obj_sub:
sub new xsub = dispatch.sub()
--- -------------------------
::
new OBJ = VOID sub()
.. _func_sub.add: .. _func_sub.add:
sub.add VOID xsub.add(INT n, STRING sub)
------- --------------------------------
::
VOID sub.add(INT n, STRING sub)
.. _func_sub.call: .. _func_sub.call:
sub.call VOID xsub.call(INT n)
-------- ---------------------
::
VOID sub.call(INT n)
.. _func_sub.string: .. _func_sub.string:
sub.string STRING xsub.string(INT)
---------- -----------------------
::
STRING sub.string(INT)
.. _func_version:
version
-------
::
STRING version() .. _func_version:
STRING version()
----------------
Return the version string for this VMOD. Return the version string for this VMOD.
...@@ -161,6 +169,7 @@ SEE ALSO ...@@ -161,6 +169,7 @@ SEE ALSO
* vcl(7) * vcl(7)
* VMOD source repository: https://code.uplex.de/uplex-varnish/libvmod-dispatch * VMOD source repository: https://code.uplex.de/uplex-varnish/libvmod-dispatch
COPYRIGHT COPYRIGHT
========= =========
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment