{"modulePath":"github.com/yaronf/tripmap","version":"v0.0.0-20261129101554-2adc0dbad62b","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package httpserver\n\n## Functions\n\n```go\nfunc OpenAPIDocument(baseURL string) string\n```\nOpenAPIDocument returns the OpenAPI YAML with {{BASE\\_URL}} replaced.\n\n```go\nfunc OpenAPIDocumentTemplate() string\n```\nOpenAPIDocumentTemplate returns the OpenAPI YAML with the {{BASE\\_URL}} placeholder.\n\n## Types\n\n```go\ntype Config struct {\n\tAddr                   string\n\tAgentBearerToken       string\n\tPublicBaseURL          string\n\tItinerariesBucket      string\n\tCommentsBucket         string\n\tAWSRegion              string\n\tMaxYAMLBytes           int64\n\tOSRMBaseURL            string\n\tRouteMode              string // straight | osrm\n\tDescopeProjectID       string\n\tSessionSecret          string\n\tAllowedEmails          []string // lowercase sign-in ACL (email only)\n\tAllowedSubs            []string // unused in v1; kept for CSV compat\n\tOpenAIAPIKey           string\n\tOpenAIModel            string\n\tChatAllowedEmails      []string // lowercase; subset allowed to chat\n\tChatAllowedSubs        []string // unused for chat ACL in v1\n\tContactEmail           string   // privacy / legal contact (CONTACT_EMAIL)\n\tGoogleSiteVerification string   // Search Console HTML tag (GOOGLE_SITE_VERIFICATION)\n}\n```\nConfig is runtime configuration for tripmapd.\n\n```go\nfunc LoadConfig() (Config, error)\n```\nLoadConfig reads configuration from the environment.\n\n```go\ntype Server struct {\n\t// contains filtered or unexported fields\n}\n```\nServer is the tripmapd HTTP API.\n\n```go\nfunc New(cfg Config, st store.Store) *Server\n```\nNew builds the HTTP server.\n\n```go\nfunc (s *Server) CreateTrip(w http.ResponseWriter, r *http.Request, _ api.CreateTripParams)\n```\n\n```go\nfunc (s *Server) GetSchema(w http.ResponseWriter, _ *http.Request)\n```\n\n```go\nfunc (s *Server) GetTrip(w http.ResponseWriter, r *http.Request, id string)\n```\n\n```go\nfunc (s *Server) GetTripYAML(w http.ResponseWriter, r *http.Request, id string, params api.GetTripYAMLParams)\n```\n\n```go\nfunc (s *Server) GetVersion(w http.ResponseWriter, r *http.Request, id, versionID string)\n```\n\n```go\nfunc (s *Server) Handler() http.Handler\n```\nHandler returns the root handler.\n\n```go\nfunc (s *Server) Health(w http.ResponseWriter, _ *http.Request)\n```\n\n```go\nfunc (s *Server) ListTrips(w http.ResponseWriter, r *http.Request)\n```\n\n```go\nfunc (s *Server) ListVersions(w http.ResponseWriter, r *http.Request, id string)\n```\n\n```go\nfunc (s *Server) PatchTrip(w http.ResponseWriter, r *http.Request, id string, _ api.PatchTripParams)\n```\n\n```go\nfunc (s *Server) PutTripYAML(w http.ResponseWriter, r *http.Request, id string, _ api.PutTripYAMLParams)\n```\n\n```go\nfunc (s *Server) ReplaceDayRoutes(w http.ResponseWriter, r *http.Request, id string, _ api.ReplaceDayRoutesParams)\n```\n\n```go\nfunc (s *Server) RestoreVersion(w http.ResponseWriter, r *http.Request, id string, _ api.RestoreVersionParams)\n```\n\n","path":"github.com/yaronf/tripmap/internal/httpserver","name":"httpserver","synopsis":"","isRedistributable":true}
