Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
21d73961
Commit
21d73961
authored
Aug 14, 2015
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
To keep the OCD at bay sort this the right way
parent
929be359
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
vmod.rst
doc/sphinx/reference/vmod.rst
+24
-24
No files found.
doc/sphinx/reference/vmod.rst
View file @
21d73961
...
...
@@ -179,17 +179,22 @@ IP
This is an opaque type, see the ``include/vsa.h`` file for
which primitives we support on this type.
REA
L
C-type: ``double``
PRIV_CAL
L
See :ref:`ref-vmod-private-pointers` below.
A floating point value.
PRIV_TASK
See :ref:`ref-vmod-private-pointers` below.
TIME
C-type: ``double``
PRIV_TOP
See :ref:`ref-vmod-private-pointers` below.
Unit: seconds since UNIX epoch.
PRIV_VCL
See :ref:`ref-vmod-private-pointers` below.
An absolute time, as in 1284401161.
REAL
C-type: ``double``
A floating point value.
STRING
C-type: ``const char *``
...
...
@@ -244,24 +249,19 @@ STRING_LIST
and make sure your workspace_client and workspace_backend params
are big enough.
TIME
C-type: ``double``
Unit: seconds since UNIX epoch.
An absolute time, as in 1284401161.
VOID
C-type: ``void``
Can only be used for return-value, which makes the function a VCL
procedure.
PRIV_VCL
See :ref:`ref-vmod-private-pointers` below.
PRIV_CALL
See :ref:`ref-vmod-private-pointers` below.
PRIV_TASK
See :ref:`ref-vmod-private-pointers` below.
PRIV_TOP
See :ref:`ref-vmod-private-pointers` below.
.. _ref-vmod-private-pointers:
...
...
@@ -279,11 +279,6 @@ The VCL compiler supports the following private pointers:
compiled regular expression specific to a regsub() statement or a
simply caching the last output of some expensive lookup.
* ``PRIV_VCL`` "per vcl" private pointers are useful for such global
state that applies to all calls in this VCL, for instance flags that
determine if regular expressions are case-sensitive in this vmod or
similar.
* ``PRIV_TASK`` "per task" private pointers are useful for state that
applies to calls for either a specific request or a backend
request. For instance this can be the result of a parsed cookie
...
...
@@ -297,6 +292,11 @@ The VCL compiler supports the following private pointers:
defined for the client side. When used from backend VCL subs, a NULL
pointer will be passed.
* ``PRIV_VCL`` "per vcl" private pointers are useful for such global
state that applies to all calls in this VCL, for instance flags that
determine if regular expressions are case-sensitive in this vmod or
similar.
The way it works in the vmod code, is that a ``struct vmod_priv *`` is
passed to the functions where one of the ``PRIV_*`` argument types is
specified.
...
...
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