diff options
Diffstat (limited to 'meta/3rd/OpenResty/library/resty/core')
17 files changed, 181 insertions, 0 deletions
diff --git a/meta/3rd/OpenResty/library/resty/core/base.lua b/meta/3rd/OpenResty/library/resty/core/base.lua new file mode 100644 index 00000000..61cd29e5 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/base.lua @@ -0,0 +1,51 @@ +---@meta +local resty_core_base = {} + +---@param ... string +function resty_core_base.allows_subsystem(...) end + +---@param t table +function resty_core_base.clear_tab(t) end + +---@return userdata +function resty_core_base.get_errmsg_ptr() end + +---@return userdata +function resty_core_base.get_request() end + +---@return userdata +function resty_core_base.get_size_ptr() end + +---@param size number +---@param must_alloc boolean +---@return userdata +function resty_core_base.get_string_buf(size, must_alloc) end + +---@return number +function resty_core_base.get_string_buf_size() end + +---@param narr number +---@param nrec number +---@return table +function resty_core_base.new_tab(narr, nrec) end + +---@param tb table +---@param key any +---@return any +function resty_core_base.ref_in_table(tb, key) end + +---@param size number +function resty_core_base.set_string_buf_size(size) end + +resty_core_base.FFI_OK = 0 +resty_core_base.FFI_NO_REQ_CTX = -100 +resty_core_base.FFI_BAD_CONTEXT = -101 +resty_core_base.FFI_ERROR = -1 +resty_core_base.FFI_AGAIN = -2 +resty_core_base.FFI_BUSY = -3 +resty_core_base.FFI_DONE = -4 +resty_core_base.FFI_DECLINED = -5 + +resty_core_base.version = "0.1.23" + +return resty_core_base
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/base64.lua b/meta/3rd/OpenResty/library/resty/core/base64.lua new file mode 100644 index 00000000..21534411 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/base64.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_base64={} +resty_core_base64.version = require("resty.core.base").version +return resty_core_base64
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/ctx.lua b/meta/3rd/OpenResty/library/resty/core/ctx.lua new file mode 100644 index 00000000..7f94db15 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/ctx.lua @@ -0,0 +1,9 @@ +---@meta +local resty_core_ctx={} +resty_core_ctx._VERSION = require("resty.core.base").version + +---@param ctx? table +---@return table +function resty_core_ctx.get_ctx_table(ctx) end + +return resty_core_ctx
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/exit.lua b/meta/3rd/OpenResty/library/resty/core/exit.lua new file mode 100644 index 00000000..57f08c71 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/exit.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_exit={} +resty_core_exit.version = require("resty.core.base").version +return resty_core_exit
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/hash.lua b/meta/3rd/OpenResty/library/resty/core/hash.lua new file mode 100644 index 00000000..54ef2c8a --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/hash.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_hash={} +resty_core_hash.version = require("resty.core.base").version +return resty_core_hash
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/misc.lua b/meta/3rd/OpenResty/library/resty/core/misc.lua new file mode 100644 index 00000000..bd355c02 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/misc.lua @@ -0,0 +1,6 @@ +---@meta +local resty_core_misc={} +function resty_core_misc.register_ngx_magic_key_getter() end +function resty_core_misc.register_ngx_magic_key_setter() end +resty_core_misc._VERSION = require("resty.core.base").version +return resty_core_misc
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/ndk.lua b/meta/3rd/OpenResty/library/resty/core/ndk.lua new file mode 100644 index 00000000..6a243329 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/ndk.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_ndk={} +resty_core_ndk.version = require("resty.core.base").version +return resty_core_ndk
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/phase.lua b/meta/3rd/OpenResty/library/resty/core/phase.lua new file mode 100644 index 00000000..1ac451c0 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/phase.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_phase={} +resty_core_phase.version = require("resty.core.base").version +return resty_core_phase
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/regex.lua b/meta/3rd/OpenResty/library/resty/core/regex.lua new file mode 100644 index 00000000..4876d1de --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/regex.lua @@ -0,0 +1,55 @@ +---@meta + +---@class resty.core.regex +---@field no_pcre boolean +local regex = {} + +---@param ratio integer +function regex.set_buf_grow_ratio(ratio) end + +---@return boolean is_empty +function regex.is_regex_cache_empty() end + +---@class resty.core.regex.compiled : ffi.cdata* +---@field captures ffi.cdata* +---@field ncaptures integer +---@field name_count integer +---@field name_table ffi.cdata* +---@field name_entry_size integer + +---@param compiled resty.core.regex.compiled +---@param flags integer +---@param res ngx.re.captures +function regex.collect_captures(compiled, flags, res) end + +---@param compiled resty.core.regex.compiled +function regex.destroy_compiled_regex(compiled) end + +---@param re string +---@param opts ngx.re.options +---@return resty.core.regex.compiled? compiled +---@return boolean|string compile_once_or_error +---@return integer? flags +function regex.re_match_compile(re, opts) end + +---@param buf ffi.cdata* +---@param buf_size integer +---@param pos integer +---@param len integer +---@param new_len integer +---@param must_alloc boolean +---@return ffi.cdata* buf +---@return integer buf_size +---@return integer new_len +function regex.check_buf_size(buf, buf_size, pos, len, new_len, must_alloc) end + +---@param re string +---@param opts ngx.re.options +---@param replace? string +---@param func? fun(match:string):string +---@return resty.core.regex.compiled? compiled +---@return boolean|string compile_once_or_error +---@return integer? flags +function regex.re_sub_compile(re, opts, replace, func) end + +return regex
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/request.lua b/meta/3rd/OpenResty/library/resty/core/request.lua new file mode 100644 index 00000000..3b4d81bd --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/request.lua @@ -0,0 +1,5 @@ +---@meta +local resty_core_request={} +resty_core_request.version = require("resty.core.base").version +function resty_core_request.set_req_header(name, value, override) end +return resty_core_request
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/response.lua b/meta/3rd/OpenResty/library/resty/core/response.lua new file mode 100644 index 00000000..a3a4d4d7 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/response.lua @@ -0,0 +1,5 @@ +---@meta +local resty_core_response={} +function resty_core_response.set_resp_header() end +resty_core_response.version = require("resty.core.base").version +return resty_core_response
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/shdict.lua b/meta/3rd/OpenResty/library/resty/core/shdict.lua new file mode 100644 index 00000000..054a9dc5 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/shdict.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_shdict={} +resty_core_shdict.version = require("resty.core.base").version +return resty_core_shdict
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/time.lua b/meta/3rd/OpenResty/library/resty/core/time.lua new file mode 100644 index 00000000..30f89b1e --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/time.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_time={} +resty_core_time.version = require("resty.core.base").version +return resty_core_time
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/uri.lua b/meta/3rd/OpenResty/library/resty/core/uri.lua new file mode 100644 index 00000000..3e2c3e51 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/uri.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_uri={} +resty_core_uri.version = require("resty.core.base").version +return resty_core_uri
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/utils.lua b/meta/3rd/OpenResty/library/resty/core/utils.lua new file mode 100644 index 00000000..8070a33b --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/utils.lua @@ -0,0 +1,10 @@ +---@meta +local resty_core_utils={} + +---@param str string +---@param find string +---@param replace string +---@return string +function resty_core_utils.str_replace_char(str, find, replace) end +resty_core_utils.version = require("resty.core.base").version +return resty_core_utils
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/var.lua b/meta/3rd/OpenResty/library/resty/core/var.lua new file mode 100644 index 00000000..df884ff9 --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/var.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_var={} +resty_core_var.version = require("resty.core.base").version +return resty_core_var
\ No newline at end of file diff --git a/meta/3rd/OpenResty/library/resty/core/worker.lua b/meta/3rd/OpenResty/library/resty/core/worker.lua new file mode 100644 index 00000000..92a8351c --- /dev/null +++ b/meta/3rd/OpenResty/library/resty/core/worker.lua @@ -0,0 +1,4 @@ +---@meta +local resty_core_worker={} +resty_core_worker._VERSION = require("resty.core.base").version +return resty_core_worker
\ No newline at end of file |