client-reader.c revision 5f08b0309190ec818d46bfe0e497468b30714a93
/* Copyright (c) 2017 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "str.h"
#include "stats-dist.h"
#include "strescape.h"
#include "connection.h"
#include "ostream.h"
#include "master-service.h"
#include "stats-metrics.h"
#include "client-reader.h"
struct reader_client {
struct connection conn;
struct stats_metrics *metrics;
};
{
struct reader_client *client;
}
{
}
const char *const *fields)
{
else {
/* return unknown fields as empty */
}
}
}
static int
{
struct stats_metrics_iter *iter;
str_truncate(str, 0);
for (unsigned int i = 0; i < metric->fields_count; i++) {
}
}
return 1;
}
static int
const char *const *args)
{
return 1;
}
static int
{
i_error("Client sent empty line");
return 1;
}
args++;
return 1;
}
static struct connection_settings client_set = {
.service_name_in = "stats-reader-client",
.service_name_out = "stats-reader-server",
.major_version = 2,
.minor_version = 0,
.input_max_size = 1024,
};
static const struct connection_vfuncs client_vfuncs = {
};
void client_readers_init(void)
{
}
void client_readers_deinit(void)
{
}