mapwire

package
v1.143.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

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

func BucketOf

func BucketOf(p *platform.Platform) maps.ResolvedBucket

BucketOf names the bucket archives go to under s: its own, or the managed-resources bucket.

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 Build

func Build(p *platform.Platform) *Maps

Build returns the maps surface, or nil without a database.

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.

func (*Maps) Start

func (m *Maps) Start(ctx context.Context)

Start runs the fetch loop.

func (*Maps) Stop

func (m *Maps) Stop()

Stop ends the fetch loop.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL