Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HCLParseError = errors.New("failed to parse config")
HCLParseError occurs when an error is encountered while parsing HCL. It should not be logged to the console, as the error message will be printed by the HCL parser.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `hcl:"server,block"` GoModules []*GoModule `hcl:"go_module,block"` }
Config is the top-level configuration structure.
type GoModule ¶
type GoModule struct { ID string `hcl:"id,label"` DisplayName *string `hcl:"display_name"` Description string `hcl:"description,optional"` Path string `hcl:"path"` Upstream string `hcl:"upstream"` VCSType *string `hcl:"vcs_type"` Readme string `hcl:"readme,optional"` Links []Link `hcl:"link,block"` }
GoModule defines a Go module that should be proxied.
func (*GoModule) ImportPath ¶
Click to show internal directories.
Click to hide internal directories.