Function |new_access

work/access::|new_access


Usage

|new_access(ip, port, remote_key, self_key)

Parameters

↳ ip: Vec<Ip> (net/ip::Ip)
↳ port: u16
↳ remote_key: string
↳ self_key: string

Return

Access


Build an Access value from explicit connection parameters.

  • ip: list of IP addresses the worker can be reached on.
  • port: TCP port the worker listens on.
  • remote_key: UUID identifying the remote side (as a string).
  • self_key: UUID identifying the local side (as a string).

⚠️ Malformed UUID strings are silently replaced with the nil UUID.