GEARMAN_RESULT_INTEGER(3)
β¨ NAME β¨
gearman_result_integer β Gearmand Documentation, http://gearman.info/
okay bestie, listen up, we're doing the Gearman result thing today and honestly? it's lowkey the most underrated glow-up in the whole libgearman library. let's get into it π
πΈ SYNOPSIS πΈ
#include <libgearman/gearman.h>
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)
Compile and link with -lgearman
not me dropping the whole function roster like it's a fit check π every single one is in there, no skips, we don't do skips here π«Ά
π DESCRIPTION π
The gearman_result_st type represents a result set. it's giving the whole vibe, not just one value.
gearman_aggregator_fn is passed on these types, which it uses to create a final result that is returned to the client. so like, the aggregator does the assembling, the result set does the holding, and the client gets the finished product. teamwork, periodt. π₯
gearman_task_result() returns gearman_result_st from a gearman_task_st. hand it a task, get a result set back. iconic behavior honestly π
A gearman_result_st can return the resulting value as either a char pointer, a boolean, a gearman_string_t, or an int64_t. pick your fighter, bestie β all four are valid, and this page is literally named after the int64_t one. main character energy β
π¦ SEE ALSO π¦
gearmand(8)libgearman(3)gearman_client_error()gearman_worker_error()
go read those too, iykwim. the lore is deep and honestly you deserve the full picture π
π Author π
Data Differential http://www.datadifferential.com/
π Copyright π
2011-2014, Data Differential, http://www.datadifferential.com/
and that's the whole page babes π this was GEARMAN_RESULT_INTEGER(3) from the 1.1.21+ds release, dated Feb 04, 2026, coming at you straight from the Gearmand corner of the universe. stay hydrated, read your manpages, and may your aggregators always aggregate correctly πβ¨π¦
π¦ 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