Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-dispatch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-dispatch
Commits
24393ad0
Commit
24393ad0
authored
Mar 16, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of code.uplex.de:uplex-varnish/libvmod-dispatch into 5.2
parents
92ca1b84
1da2190b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
60 deletions
+50
-60
README.rst
README.rst
+49
-59
vmod_dispatch.vcc
src/vmod_dispatch.vcc
+1
-1
No files found.
README.rst
View file @
24393ad0
...
...
@@ -6,8 +6,6 @@
.. role:: ref(emphasis)
.. _vmod_dispatch(3):
=============
vmod_dispatch
=============
...
...
@@ -21,8 +19,27 @@ 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()
::
...
...
@@ -36,93 +53,66 @@ Varnish Module (VMOD) for dispatching control to VCL labels or subroutines.
... XXX ...
CONTENTS
========
* VOID label()
* VOID sub()
* STRING version()
.. _vmod_dispatch.label:
.. _obj_label:
new xlabel = dispatch.label()
-----------------------------
label
-----
::
new OBJ = VOID label()
.. _vmod_dispatch.label.add:
.. _func_label.add:
VOID xlabel.add(INT n, STRING label)
------------------------------------
label.add
---------
::
VOID label.add(INT n, STRING label)
.. _vmod_dispatch.label.go:
.. _func_label.go:
VOID xlabel.go(INT)
-------------------
label.go
--------
::
VOID label.go(INT)
.. _vmod_dispatch.label.string:
.. _func_label.string:
STRING xlabel.string(INT)
-------------------------
label.string
------------
::
STRING label.string(INT)
.. _vmod_dispatch.sub:
.. _obj_sub:
new xsub = dispatch.sub()
-------------------------
sub
---
::
new OBJ = VOID sub()
.. _vmod_dispatch.sub.add:
.. _func_sub.add:
VOID xsub.add(INT n, STRING sub)
--------------------------------
sub.add
-------
::
VOID sub.add(INT n, STRING sub)
.. _vmod_dispatch.sub.call:
.. _func_sub.call:
VOID xsub.call(INT n)
---------------------
sub.call
--------
::
VOID sub.call(INT n)
.. _vmod_dispatch.sub.string:
.. _func_sub.string:
STRING xsub.string(INT)
-----------------------
sub.string
----------
::
STRING sub.string(INT)
.. _func_version:
version
-------
.. _vmod_dispatch.version:
::
STRING version()
STRING version()
----------------
Return the version string for this VMOD.
...
...
src/vmod_dispatch.vcc
View file @
24393ad0
...
...
@@ -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"
::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment