aboutsummaryrefslogtreecommitdiff
path: root/src/vmod_tbf.vcc
diff options
context:
space:
mode:
Diffstat (limited to 'src/vmod_tbf.vcc')
-rw-r--r--src/vmod_tbf.vcc47
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 @@
1Module tbf 1# This file is part of vmod-tbf
2Init tbf_init 2# Copyright (C) 2013 Sergey Poznyakoff
3Function VOID open(STRING, STRING) 3#
4Function VOID close() 4# Vmod-tbf is free software; you can redistribute it and/or modify
5Function VOID sync() 5# it under the terms of the GNU General Public License as published by
6Function BOOL rate(STRING, INT, DURATION, INT) 6# the Free Software Foundation; either version 3, or (at your option)
7Function BOOL check(STRING, STRING) 7# any later version.
8Function REAL getla(INT) 8#
9Function INT systime() 9# Vmod-tbf is distributed in the hope that it will be useful,
10Function STRING strftime(STRING, INT) 10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11Function 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
19COLOPHON
20========
21This document provides a short description of the **vmod-tbf** module.
22For a detailed documentation, please see vmod-tbf(3) manual page.
23
24DESCRIPTION
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)

Return to:

Send suggestions and report system problems to the System administrator.