summaryrefslogtreecommitdiffhomepage
path: root/src/go/unit/nxt_go_lib.c (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2018-08-06Unit application library.Max Romanov1-143/+0
Library now used in all language modules. Old 'nxt_app_*' code removed. See src/test/nxt_unit_app_test.c for usage sample.
2018-07-12Go: http.Flusher implemented by unit.response.Max Romanov1-0/+17
This closes #133 issue on GitHub.
2017-12-27Implementing the ability to cancel request before worker starts processing it.Max Romanov1-18/+1
2017-12-13Introducing Unit version check in Go package.Max Romanov1-10/+10
To communicate with the Go program, Unit setup environment variable named NXT_GO_PORTS with value contains Unit version, stream id to confirm application is started, and Unit ports information. Go Unit package parses this string and compares runtime version with compile time version. In case of parse error or version mismatch, ListenAndServe() returns with the error.
2017-12-06Go: removing request registry.Max Romanov1-11/+11
Passing unsafe.Pointers (void *) from Go to C is complicated by an attempt to make such pointers less unsafe. A straightforward optimization is to replace 'unsafe.Pointer' with 'uintptr' (thanks to Xin Huang for the idea: https://stackoverflow.com/a/44826533 ). As a result, request registry with mutex is gone.
2017-12-01Making Go package source distributable and renaming to 'nginx/unit'.Max Romanov1-54/+2
All header files are copied to Go package sources. As the result, package can be (re-)build when required. This closes #23 issue on GitHub.
2017-12-01Initializing port_msg fields with zeroes in Go package.Max Romanov1-0/+2
2017-09-15Go: Fixed a bug introduced in the previous changeset.Igor Sysoev1-1/+1
2017-08-31nginext has been renamed to unit.Igor Sysoev1-0/+0
2017-08-29The master process has been renamed to the main process.Igor Sysoev1-1/+1
2017-08-11Request body read state implemented.Max Romanov1-28/+14
With specific timeout and buffer size settings.
2017-08-02Added bit flags to type parameter of nxt_port_socket_write().Max Romanov1-2/+2
NXT_PORT_MSG_LAST - mark message as last; NXT_PORT_MSG_CLOSE_FD - close fd right after send; Type constants altered to include last flag for single buffer messages. Last sign is critical for coming port RPC layer. Handlers unregistered on last message. Create sync buffer is not convenient, extra parameter is better.
2017-07-12Go: worker initialization. READY message to master.Max Romanov1-11/+24
2017-06-23External Go app request processing.Max Romanov1-0/+194