{"modulePath":"github.com/coder/preview","version":"v1.0.9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package web\n\n## Types\n\n```go\ntype Request struct {\n\t// ID identifies the request. The response contains the same\n\t// ID so that the client can match it to the request.\n\tID     int               `json:\"id\"`\n\tInputs map[string]string `json:\"inputs\"`\n}\n```\n\n```go\ntype Response struct {\n\tID          int               `json:\"id\"`\n\tDiagnostics types.Diagnostics `json:\"diagnostics\"`\n\tParameters  []types.Parameter `json:\"parameters\"`\n}\n```\n\n```go\ntype Session struct {\n\t// contains filtered or unexported fields\n}\n```\n@typescript-ignore Session\n\n```go\nfunc NewSession(logger slog.Logger, dir fs.FS, staticInputs SessionInputs) *Session\n```\n\n```go\nfunc (s *Session) Listen(ctx context.Context, conn *websocket.Conn)\n```\n\n```go\ntype SessionInputs struct {\n\tPlanPath string\n\tUser     types.WorkspaceOwner\n}\n```\n\n","path":"github.com/coder/preview/web","name":"web","synopsis":"","isRedistributable":true}
