namespace.rst 973 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 a "namespace" for a given set of functions. Only clients and workers sharing a :c:data:`namespace_key` can
  15. see one anothers workloads and functions.
  16. By setting :c:data:`namespace_key` to NULL you can disable the namespace.
  17. ------
  18. RETURN
  19. ------
  20. None
  21. ----
  22. HOME
  23. ----
  24. To find out more information please check:
  25. `https://launchpad.net/gearmand <https://launchpad.net/gearmand>`_
  26. --------
  27. SEE ALSO
  28. --------
  29. :manpage:`gearmand(8)` :manpage:`libgearman(3)`