This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git i/src/run.rs w/src/run.rs | |
| index c978e6a..8e61cf7 100644 | |
| --- i/src/run.rs | |
| +++ w/src/run.rs | |
| @@ -53,54 +53,13 @@ pub(crate) fn run(mut cmd: Command) -> i32 { | |
| } | |
| }; | |
| - let old_mask = mask | |
| - .thread_swap_mask(SIG_BLOCK) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "luarocks.loader" | |
| setmetatable(_G, nil) | |
| local config = { | |
| application_name = "kong", | |
| host = "localhost", | |
| port = 5432, | |
| user = "kong", | |
| password = nil, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "datakit", | |
| "config": { | |
| "nodes": [ | |
| { | |
| "name": "DATA", | |
| "type": "call", | |
| "url": "http://<callout server>:8080/uuid", | |
| "outputs": { | |
| "body": "service_request.headers" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "request-callout", | |
| "config": { | |
| "callouts": [ | |
| { | |
| "name": "simple", | |
| "request": { | |
| "url": "https://<callout server>:8080/anything", | |
| "method": "GET" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "request-callout", | |
| "config": { | |
| "callouts": [ | |
| { | |
| "name": "c1", | |
| "request": { | |
| "url": "https://httpbin.org/anything", | |
| "method": "POST", | |
| "body": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "request-callout", | |
| "config": { | |
| "callouts": [ | |
| { | |
| "name": "c1", | |
| "request": { | |
| "url": "https://mocki.io/v1/3b51613b-a7e0-44bf-803a-35f6939e55f3", | |
| "method": "GET" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "request-callout", | |
| "config": { | |
| "callouts": [ | |
| { | |
| "name": "echo", | |
| "cache": { | |
| "bypass": false | |
| }, | |
| "depends_on": [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| luarocks --verbose --tree /tmp/test install lua-cjson | |
| ------------------------------------------------------------------------------- | |
| Current configuration: | |
| ------------------------------------------------------------------------------- | |
| accept_unknown_fields = false | |
| arch = "linux-aarch64" | |
| cache = {} | |
| cache_fail_timeout = 86400 | |
| cache_timeout = 60 | |
| check_certificates = false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function run_file(filename, env) | |
| local fd, err = io.open(filename) | |
| if not fd then | |
| return nil, err, "open" | |
| end | |
| local str, err = fd:read("*a") | |
| fd:close() | |
| if not str then | |
| return nil, err, "open" | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "request-callout", | |
| "config": { | |
| "callouts": [ | |
| { | |
| "name": "callout1", | |
| "request": { | |
| "url": "http://httpbin.org/anything", | |
| "by_lua": "kong.ctx.shared.callouts.callout1.caching.cache_key = kong.request.get_header('cache-key')" | |
| }, |
NewerOlder