GEARMAN_RESULT_STRING(3)
β¨ GEARMAN_RESULT_STRING β¨
okay bestie, buckle up, we're reading the Gearmand docs for gear_result_string and honestly? it's giving necessary. no cap, this one's a whole library page from the Gearmand Documentation at http://gearman.info/ π
πΈ NAME πΈ
gearman_result_string β literally the Gearmand Documentation, bestie. http://gearman.info/ π¦
β¨ SYNOPSIS β¨
first things first, bestie, you gotta pull in the header:
#include <libgearman/gearman.h>
and here's the whole cast of characters, all of them, exactly as written π
type gearman_result_st
gearman_result_st *gearman_task_result(gearman_task_st *task)
int64_t gearman_result_integer(const gearman_result_st *self)
bool gearman_result_boolean(const gearman_result_st *self)
gearman_string_t gearman_result_string(const gearman_result_st *self)
gearman_return_t gearman_result_store_string(gearman_result_st *self, gearman_string_t arg)
void gearman_result_store_integer(gearman_result_st *self, int64_t value)
gearman_return_t gearman_result_store_value(gearman_result_st *self, const void *value, size_t size)
size_t gearman_result_size(const gearman_result_st *self)
const char *gearman_result_value(const gearman_result_st *self)
bool gearman_result_is_null(const gearman_result_st *self)
and when you actually build it, bestie, compile and link with:
-lgearman
periodt. π
π DESCRIPTION π
so the gearman_result_st type represents a result set. and <purple>gearman_aggregator_fn</purple> gets passed on these types, which it uses to build the final result that gets handed back to the client. iconic behaviour fr fr π
gearman_task_result() returns a gearman_result_st from a gearman_task_st. like, that's the whole job. it just hands you the result struct out of the task. slay β¨
and here's the fun part: a gearman_result_st can return the resulting value as either a char pointer, a boolean, a gearman_string_t, or an int64_t. four flavours, zero apologies, we love range π
ngl bestie, that's genuinely the whole page. short, sweet, and it ate. π«Ά
π SEE ALSO π
go read these next, iykwim:
gearmand(8)libgearman(3)gearman_client_error()orgearman_worker_error()
π¦ Author π¦
Data Differential β http://www.datadifferential.com/ π§
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/
and that's the page, bestie!! π this whole thing is Gearmand version 1.1.21+ds, dated Feb 04, 2026, and the manual it lives in is the Gearmand one. go forth and aggregate responsibly π
βπ
π¦ where this page comes from
- ubuntu resolute: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- ubuntu stonking: libgearman-dev 1.1.21+ds-1ubuntu3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms