diff options
Diffstat (limited to 'src/vmod_tbf.vcc')
-rw-r--r-- | src/vmod_tbf.vcc | 47 |
1 files changed, 36 insertions, 11 deletions
diff --git a/src/vmod_tbf.vcc b/src/vmod_tbf.vcc index 3634807..b27093b 100644 --- a/src/vmod_tbf.vcc +++ b/src/vmod_tbf.vcc | |||
@@ -1,11 +1,36 @@ | |||
1 | Module tbf | 1 | # This file is part of vmod-tbf |
2 | Init tbf_init | 2 | # Copyright (C) 2013 Sergey Poznyakoff |
3 | Function VOID open(STRING, STRING) | 3 | # |
4 | Function VOID close() | 4 | # Vmod-tbf is free software; you can redistribute it and/or modify |
5 | Function VOID sync() | 5 | # it under the terms of the GNU General Public License as published by |
6 | Function BOOL rate(STRING, INT, DURATION, INT) | 6 | # the Free Software Foundation; either version 3, or (at your option) |
7 | Function BOOL check(STRING, STRING) | 7 | # any later version. |
8 | Function REAL getla(INT) | 8 | # |
9 | Function INT systime() | 9 | # Vmod-tbf is distributed in the hope that it will be useful, |
10 | Function STRING strftime(STRING, INT) | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | Function VOID sleep(DURATION) | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | # GNU General Public License for more details. | ||
13 | # | ||
14 | # You should have received a copy of the GNU General Public License | ||
15 | # along with vmod-tbf. If not, see <http://www.gnu.org/licenses/>. | ||
16 | |||
17 | $Module tbf 3 Token Bucket Filtering for Varnish | ||
18 | |||
19 | COLOPHON | ||
20 | ======== | ||
21 | This document provides a short description of the **vmod-tbf** module. | ||
22 | For a detailed documentation, please see vmod-tbf(3) manual page. | ||
23 | |||
24 | DESCRIPTION | ||
25 | =========== | ||
26 | |||
27 | $Init tbf_init | ||
28 | $Function VOID open(STRING, STRING) | ||
29 | $Function VOID close() | ||
30 | $Function VOID sync() | ||
31 | $Function BOOL rate(STRING, INT, DURATION, INT) | ||
32 | $Function BOOL check(STRING, STRING) | ||
33 | $Function REAL getla(INT) | ||
34 | $Function INT systime() | ||
35 | $Function STRING strftime(STRING, INT) | ||
36 | $Function VOID sleep(DURATION) | ||