{"modulePath":"github.com/txn2/mcp-data-platform","version":"v1.171.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package exclusivehttp\n\nPackage exclusivehttp serves the owner's setting for whether a managed script's runs may overlap (#1986, #2209): off, refuse (no run starts while another is pending or running, whatever started it) or queue (another run waits until none is running).\n\nIt is mounted by scripthttp, which resolves the caller and the script, refuses everybody but the script's owner and an administrator, and lands the change through the edit funnel every portal edit crosses.\n\n## Types\n\n```go\ntype Deps struct {\n\t// Edit applies mutate to the script in the path for a caller who owns\n\t// it, through the edit funnel, writing any refusal itself; it reports the\n\t// script as saved.\n\tEdit func(w http.ResponseWriter, r *http.Request, mutate func(*script.Script)) (*script.Script, bool)\n}\n```\nDeps carries the edit the route makes.\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\nHandler serves the route.\n\n```go\nfunc New(deps Deps) *Handler\n```\nNew builds the handler.\n\n```go\nfunc (h *Handler) Register(mux *http.ServeMux, wrap func(http.Handler) http.Handler)\n```\nRegister mounts the route, wrapped in the portal authentication middleware.\n\n","path":"github.com/txn2/mcp-data-platform/internal/httpserver/scripthttp/exclusivehttp","name":"exclusivehttp","synopsis":"Package exclusivehttp serves the owner's setting for whether a managed script's runs may overlap (#1986, #2209): off, refuse (no run starts while another is pending or running, whatever started it) or queue (another run waits until none is running).","isRedistributable":true}
