namespace.rst 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ================
  2. Using namespaces
  3. ================
  4. --------
  5. SYNOPSIS
  6. --------
  7. #include <libgearman/gearman.h>
  8. .. c:function:: void gearman_client_set_namespace(gearman_client_st *self, const char *namespace_key, size_t namespace_key_size)
  9. .. c:function:: void gearman_worker_set_namespace(gearman_worker_st *self, const char *namespace_key, size_t namespace_key_size)
  10. Compile and link with -lgearman
  11. -----------
  12. DESCRIPTION
  13. -----------
  14. gearman_client_set_namespace() and gearman_worker_set_namespace() set
  15. a "namespace" for a given set of functions. Only clients and workers sharing
  16. a namespace_key can see one anothers workloads and functions.
  17. By setting namespace_key to NULL you can disable the namespace.
  18. ------
  19. RETURN
  20. ------
  21. None
  22. ----
  23. HOME
  24. ----
  25. To find out more information please check:
  26. `https://gearman.org/gearmand/ <https://gearman.org/gearmand/>`_
  27. --------
  28. SEE ALSO
  29. --------
  30. :manpage:`gearmand(8)` :manpage:`libgearman(3)`