{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.171.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sitepages\n\nPackage sitepages assembles, from the platform, the application endpoint server a site environment's hosts run their application's endpoints through, and who an environment's tile is drawn as (#2747). The site gateway's own address and the tile worker's page both run endpoints through Over, so a tile's page reaches the endpoints exactly as a visitor's browser does; it is a package of its own because internal/httpserver/sitehttp is at its size budget.\n\n## Functions\n\n```go\nfunc ForTiles(p *platform.Platform) *sitegw.Pages\n```\nForTiles is the server a site tile's page runs its endpoints through, the one a site's own address runs them through; nil where the deployment serves no sites, has no endpoint handler or no portal address.\n\n```go\nfunc Over(p *platform.Platform, rt *sitewire.Runtime, portal *url.URL) *sitegw.Pages\n```\nOver is the application endpoint server of a deployment that has an endpoint handler, given its sites runtime and portal address.\n\n```go\nfunc TileOwner(p *platform.Platform) tilepage.Owner\n```\nTileOwner resolves the person a site's owner address names when its tile is drawn: the subject and roles the directory last recorded for them, the persona those roles resolve to in the live registry, and whether that is the administrator persona. Nil, drawing for nobody, for a person the directory does not hold or has never seen sign in, and for one whose roles resolve to no persona; nothing about the owner is stored for the draw.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/sitepages","name":"sitepages","synopsis":"Package sitepages assembles, from the platform, the application endpoint server a site environment's hosts run their application's endpoints through, and who an environment's tile is drawn as (#2747).","isRedistributable":true}
