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
Hide 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,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.
...
...
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