Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
LoadConfig reads and parses the config file at a path and returns the parsed config along with the resolved project root (the dir containing the file)
func LoadCredentials ¶
LoadCredentials reads the credentials file at path and returns a store for authenticating outbound HTTP requests. An empty path uses auth.DefaultCredentialsPath.
A missing file is not an error; hosts without an entry fall back to ~/.netrc. When no credentials file is present but a netrc is, this logs a warning once, since netrc is deprecated and cannot express vendor auth schemes.
Types ¶
type ServeOptions ¶
type ServeOptions struct {
// Root is the directory the server is rooted in.
Root string
// Transport enum(stdio|http) controlls the server transport mode, defaults to stdio.
Transport string
// Addr is the listening address for the HTTP transport.
Addr string
}
ServeOptions controls server behaviour.
Click to show internal directories.
Click to hide internal directories.