Module resty.healthcheck.utils

Utilities used by the healthcheck library.

Code originally from https://github.com/Kong/lua-resty-dns-client

Info:

  • Copyright: 2017 Kong Inc.
  • License: Apache 2.0
  • Author: Hisham Muhammad, Thijs Schreijer

Functions

gctimer (t, cb, self, ...) A garbage-collectible timer implementation.


Functions

gctimer (t, cb, self, ...)
A garbage-collectible timer implementation. Provides a timer that can be attached to an object, and GC'ed along with that object, as opposed to regular timers that keep running and prevent the object from being GC'ed.

Parameters:

  • t time in ms
  • cb callback for the timer. The signature is function(premature, self, ...)
  • self the object the timer belongs to
  • ... any additional parameters to pass to the timer callback

Returns:

    timer handle (same as ngx.timer.at)
generated by LDoc 1.4.6 Last updated 2020-06-17 13:10:48