Documentation ¶
Overview ¶
Package autozone implements an on-the-fly loading file backend.
Package autozone implements a on-the-fly loading file backend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Autozone ¶
Autozone holds the zones and the loader configuration for automatically loading zones.
type Zones ¶
type Zones struct { Z map[string]*file.Zone // A map mapping zone (origin) to the Zone's data. sync.RWMutex // contains filtered or unexported fields }
Zones maps zone names to a *Zone. This keeps track of what zones we have loaded at any one time.
func (*Zones) Add ¶
Add adds a new zone into z. If zo.NoReload is false, the reload goroutine is started.
Click to show internal directories.
Click to hide internal directories.