Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocateResult ¶
LocateResult is one entry in the result of the "net locate" command.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the local api server used by the command client.
func BootServer ¶
func BootServer( basePath string, passwordFn func() (string, error), bindHost string, port int, logToStdout bool, ) (*Server, error)
BootServer will boot up the local server. `basePath` is the path to the repository. `passwordFn` is a function that will deliver a password when no password was configured. `bindHost` is the host to bind too. `port` is the port to listen for requests. `logToStdout` should be true when logging to stdout.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.