mirror of
https://gitee.com/wangbin579/cetus.git
synced 2024-12-02 20:08:24 +08:00
38 lines
809 B
C
38 lines
809 B
C
#ifndef ADMIN_PLUGIN_H
|
|
#define ADMIN_PLUGIN_H
|
|
|
|
#include "glib-ext.h"
|
|
#include "network-mysqld.h"
|
|
#include "admin-stats.h"
|
|
|
|
#ifndef PLUGIN_VERSION
|
|
#ifdef CHASSIS_BUILD_TAG
|
|
#define PLUGIN_VERSION CHASSIS_BUILD_TAG
|
|
#else
|
|
#define PLUGIN_VERSION PACKAGE_VERSION
|
|
#endif
|
|
#endif
|
|
|
|
|
|
struct chassis_plugin_config {
|
|
gchar *address; /**< listening address of the admin interface */
|
|
|
|
gchar *admin_username; /**< login username */
|
|
gchar *admin_password; /**< login password */
|
|
|
|
gchar *allow_ip; /**< allow ip addr list */
|
|
GHashTable *allow_ip_table;
|
|
|
|
gchar *deny_ip; /**< deny ip addr list */
|
|
GHashTable *deny_ip_table;
|
|
|
|
gboolean has_shard_plugin;
|
|
|
|
network_mysqld_con *listen_con;
|
|
|
|
admin_stats_t *admin_stats;
|
|
};
|
|
|
|
|
|
#endif
|