Documentation
¶
Overview ¶
Copyright 2025 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2025 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- Variables
- func HTTPHandler(sessions Sessions, isDaemon bool) http.Handler
- func Serve(ctx context.Context, address string, sessions Sessions, isDaemon bool) error
- func StartStdIO(ctx context.Context, session *cache.Session, server protocol.Server, ...) error
- type ContextParams
- type GroupedVulnFinding
- type Sessions
- type VulncheckResultOutput
Constants ¶
This section is empty.
Variables ¶
View Source
var Instructions string
Functions ¶
Types ¶
type ContextParams ¶
type ContextParams struct {
File string `json:"file" jsonschema:"the absolute path to the file"`
}
type GroupedVulnFinding ¶
type Sessions ¶ added in v0.20.0
type Sessions interface {
Session(id string) (*cache.Session, protocol.Server)
FirstSession() (*cache.Session, protocol.Server)
SetSessionExitFunc(func(string))
}
Sessions is the interface used to access gopls sessions.
type VulncheckResultOutput ¶
type VulncheckResultOutput struct {
Findings []GroupedVulnFinding `json:"findings,omitempty"`
Logs string `json:"logs,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.