---
source: varnish-macros/src/tests.rs
---
VMOD_JSON_SPEC
[
[
"$VMOD",
"2.0",
"restrict_scopes",
"Vmod_vmod_restrict_scopes_Func",
"914e0ff7ce24091c035bd84a2876f3cb5dcddf49fcecc8d25a9424e194391ee3",
"Varnish (version) (hash)",
"0",
"0"
],
[
"$CPROTO",
"
typedef VCL_INT td_vmod_restrict_scopes_client_only(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_backend_only(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_housekeeping_only(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_client_or_backend(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_recv_only(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_recv_or_hash(
VRT_CTX
);
typedef VCL_INT td_vmod_restrict_scopes_backend_subs(
VRT_CTX
);
struct Vmod_vmod_restrict_scopes_Func {
td_vmod_restrict_scopes_client_only *f_client_only;
td_vmod_restrict_scopes_backend_only *f_backend_only;
td_vmod_restrict_scopes_housekeeping_only *f_housekeeping_only;
td_vmod_restrict_scopes_client_or_backend *f_client_or_backend;
td_vmod_restrict_scopes_recv_only *f_recv_only;
td_vmod_restrict_scopes_recv_or_hash *f_recv_or_hash;
td_vmod_restrict_scopes_backend_subs *f_backend_subs;
};
static struct Vmod_vmod_restrict_scopes_Func Vmod_vmod_restrict_scopes_Func;"
],
[
"$FUNC",
"client_only",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_client_only",
""
]
],
[
"$RESTRICT",
[
"client"
]
],
[
"$FUNC",
"backend_only",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_backend_only",
""
]
],
[
"$RESTRICT",
[
"backend"
]
],
[
"$FUNC",
"housekeeping_only",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_housekeeping_only",
""
]
],
[
"$RESTRICT",
[
"housekeeping"
]
],
[
"$FUNC",
"client_or_backend",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_client_or_backend",
""
]
],
[
"$RESTRICT",
[
"client",
"backend"
]
],
[
"$FUNC",
"recv_only",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_recv_only",
""
]
],
[
"$RESTRICT",
[
"vcl_recv"
]
],
[
"$FUNC",
"recv_or_hash",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_recv_or_hash",
""
]
],
[
"$RESTRICT",
[
"vcl_recv",
"vcl_hash"
]
],
[
"$FUNC",
"backend_subs",
[
[
"INT"
],
"Vmod_vmod_restrict_scopes_Func.f_backend_subs",
""
]
],
[
"$RESTRICT",
[
"vcl_backend_fetch",
"vcl_backend_response",
"vcl_backend_error"
]
]
]