varnish 0.6.0

A Rust framework for creating Varnish Caching Proxy extensions
Documentation
1
2
3
4
5
6
7
8
---
source: varnish-macros/src/tests.rs
---
unsafe impl varnish::VscMetric for VariousStats {
    fn get_metadata() -> &'static std::ffi::CStr {
        cr#"{"version":"1","name":"VariousStats","oneliner":"VariousStats statistics","order":100,"docs":"","elements":4,"elem":{"flags":{"name":"flags","type":"bitmap","ctype":"uint64_t","level":"info","oneliner":"Some arbitrary bitmap","format":"bitmap","docs":"","index":24},"foo":{"name":"foo","type":"counter","ctype":"uint64_t","level":"info","oneliner":"Some arbitrary counter","format":"integer","docs":"","index":0},"memory":{"name":"memory","type":"gauge","ctype":"uint64_t","level":"debug","oneliner":"An arbitrary gauge with a longer description","format":"bytes","docs":"A more detailed description than the above oneliner could go here.","index":16},"temperature":{"name":"temperature","type":"gauge","ctype":"uint64_t","level":"info","oneliner":"Some arbitrary gauge","format":"integer","docs":"","index":8}}}"#
    }
}