TSG-14484 Pxoxy支持Maat4
This commit is contained in:
@@ -19,11 +19,13 @@ struct tsg_script_ctx
|
||||
int config_id;
|
||||
int profile_id;
|
||||
int http_req_uri;
|
||||
int rewrite_header;
|
||||
char *rewrite_uri;
|
||||
int execut_lua_sucess;
|
||||
struct elua_context *elua_ctx;
|
||||
enum tfe_http_event events;
|
||||
void * local_logger;
|
||||
struct tfe_stream_addr * addr;
|
||||
const struct tfe_http_session *session;
|
||||
struct tfe_http_half *replacing;
|
||||
struct evbuffer *http_body;
|
||||
|
||||
@@ -2,13 +2,22 @@
|
||||
|
||||
#include <tfe_stream.h>
|
||||
#include <tfe_http.h>
|
||||
#include <MESA/Maat_rule.h>
|
||||
|
||||
struct log_rule_t
|
||||
{
|
||||
long long config_id;
|
||||
int service_id;
|
||||
unsigned char do_log;
|
||||
unsigned char do_blacklist;
|
||||
unsigned char action;
|
||||
char *srv_def_large;
|
||||
};
|
||||
|
||||
struct proxy_log
|
||||
{
|
||||
const struct tfe_stream *stream;
|
||||
const struct tfe_http_session* http;
|
||||
const Maat_rule_t*result;
|
||||
const struct log_rule_t *result;
|
||||
size_t result_num;
|
||||
struct evbuffer* req_body, *resp_body;
|
||||
unsigned char action;
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
#include <event2/event.h>
|
||||
#include <event2/buffer.h>
|
||||
#include <tfe_future.h>
|
||||
#include <MESA/Maat_rule.h>
|
||||
#include <MESA/maat.h>
|
||||
|
||||
|
||||
struct cache_handle;
|
||||
struct cache_handle* create_web_cache_handle(const char* profile_path, const char* section,
|
||||
struct event_base* gc_evbase, Maat_feather_t feather, void *logger);
|
||||
struct cache_handle* create_web_cache_handle(const char* profile_path, const char* section,
|
||||
struct event_base* gc_evbase, struct maat *feather, void *logger);
|
||||
|
||||
struct cached_meta
|
||||
{
|
||||
@@ -56,7 +56,7 @@ enum cache_pending_result web_cache_async_pending(struct cache_handle* handle, u
|
||||
|
||||
|
||||
struct cache_write_context;
|
||||
struct cache_write_context* web_cache_write_start(struct cache_handle* handle, unsigned int thread_id,
|
||||
struct cache_write_context* web_cache_write_start(struct cache_handle* handle, unsigned int thread_id,
|
||||
const struct tfe_http_session * session, struct cache_mid **mid);
|
||||
void web_cache_write(struct cache_write_context* ctx, const unsigned char * body_frag, size_t frag_size);
|
||||
//return 1 on success
|
||||
|
||||
Reference in New Issue
Block a user