Listener - http : MockListener

Mock server endpoint which does not open a listening port.

Methods

__gracefulStop

()

returns error?
  • Return Type

    (error?)

__immediateStop

()

returns error?
  • Return Type

    (error?)

__detach

(service s)

returns error?

Parameters

  • s service
  • Return Type

    (error?)

init

Parameters

initEndpoint

()

returns error?
  • Return Type

    (error?)

register

(service s, string? name)

returns error?

Parameters

  • s service
  • name string?
  • Return Type

    (error?)

start

()

returns error?
  • Return Type

    (error?)

gracefulStop

()

returns error?
  • Return Type

    (error?)

detach

(service s)

returns error?

Parameters

  • s service
  • Return Type

    (error?)

LifeCycle Methods

__start

()

returns error?
  • Return Type

    (error?)

__attach

(service s, string? name)

returns error?

Parameters

  • s service
  • name string? (default ())
  • Return Type

    (error?)