district acting shugo; deputy military governor of a district
Historical term for a Muromachi-period official who acted as a deputy shugo (military governor) over a district. Compare 守護代, which was a deputy for an entire province.
See also: 守護代
district magistrate
Historical term for an Edo-period official who administered a district under the shogunate or a domain. The role was more bureaucratic than the earlier Muromachi usage.
In the Muromachi period, the gundai governed a district as a deputy of the shugo.
In the Edo period, the gundai was in charge of civil administration in shogunate-controlled districts.