Documentation ¶
Index ¶
Constants ¶
View Source
const (
NonceExpiration = 30 * time.Second // passed in to the Start() function, to make tests easier
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func Start ¶
func Start(config *config.Config, me *config.Peer, listenSpec string, expireTime, bootWait time.Duration) (*Server, error)
Start the control server in the background.
We assume after bootWait, with no errors, the server has started. I can't see a better way to do this with net/http since there is not a notifier callback. Would prefer a better way to launch the server without blocking.
func (*Server) ReplaceConfig ¶
Click to show internal directories.
Click to hide internal directories.