Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildContextConfig ¶ added in v0.1.1
type BuildContextConfig struct {
GOOS string `yaml:"goos"`
GOARCH string `yaml:"goarch"`
CGOEnabled *bool `yaml:"cgo_enabled,omitempty"`
BuildTags []string `yaml:"build_tags,omitempty"`
ToolTags []string `yaml:"tool_tags,omitempty"`
}
BuildContextConfig selects one coherent Go build variant for typed method reference analysis. Omitted contexts default to the running Go toolchain's GOOS, GOARCH, cgo, release tags, and tool tags.
type Config ¶
type Config struct {
Repos []RepoConfig `yaml:"repos"`
ExcludePatterns []string `yaml:"exclude_patterns"`
IncludeTests bool `yaml:"include_tests"`
TypedMethodReferences bool `yaml:"typed_method_references"`
BuildContexts []BuildContextConfig `yaml:"build_contexts"`
Transport string `yaml:"transport"`
Port int `yaml:"port"`
}
Config holds the server configuration.
type RepoConfig ¶
type RepoConfig struct {
Name string `yaml:"name,omitempty"`
Path string `yaml:"path"`
IncludeTests *bool `yaml:"include_tests,omitempty"`
TypedMethodReferences *bool `yaml:"typed_method_references,omitempty"`
}
RepoConfig describes a repository to index.
func (RepoConfig) TestsEnabled ¶ added in v0.1.1
func (r RepoConfig) TestsEnabled(defaultValue bool) bool
TestsEnabled returns the repository-specific test-indexing setting when one is present, otherwise the configuration-wide default.
func (RepoConfig) TypedReferencesEnabled ¶ added in v0.1.1
func (r RepoConfig) TypedReferencesEnabled(defaultValue bool) bool
TypedReferencesEnabled returns the repository-specific typed-reference setting when one is present, otherwise the configuration-wide default.