Documentation
¶
Overview ¶
Package mapwire assembles the maps service (#2068) from the platform: the settings and region stores, a bucket client per S3 connection the settings name, the outbound client a fetch reads its source through, and the refresh of the maps knowledge page when what it lists changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Maps ¶
type Maps struct {
// contains filtered or unexported fields
}
Maps is the assembled maps surface: the service, and the platform its admin routes are mounted for. A nil Maps (no database) mounts and runs nothing.
func (*Maps) Mount ¶
func (m *Maps) Mount(mux *http.ServeMux, adminAuth func() func(http.Handler) http.Handler, author func(*http.Request) string)
Mount registers the public archive routes and, when the admin API is on, the settings routes behind its authentication. Both are registered ahead of the portal UI's catch-all by the caller.
Click to show internal directories.
Click to hide internal directories.