about summary refs log tree commit diff
path: root/collector.h
blob: 8ab9c61e362cb5ef50bec84edc15f0cd207adb94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef PNANOE_COLLECTOR_H_
#define PNANOE_COLLECTOR_H_ 1

#include "stdbool.h"

#include "scrape.h"

struct collector {
  const char *name;
  void (*collect)(scrape_req *req, void *ctx);
  void *(*init)(int argc, char *argv[]);
  bool has_args;
};

#endif // PNANOE_COLLECTOR_H_