What does "tidewaiter" mean?

Tidewaiter: A customhouse officer who watches the landing of goods from merchant vessels, in order to secure payment of duties. Swift.

Sources