open-consul/agent/proxy/daemon.go
Mitchell Hashimoto c47ad68f25
wip
2018-06-14 09:42:07 -07:00

25 lines
653 B
Go

package proxy
import (
"os/exec"
)
// Daemon is a long-running proxy process. It is expected to keep running
// and to use blocking queries to detect changes in configuration, certs,
// and more.
//
// Consul will ensure that if the daemon crashes, that it is restarted.
type Daemon struct {
// Command is the command to execute to start this daemon. This must
// be a Cmd that isn't yet started.
Command *exec.Cmd
// ProxyToken is the special local-only ACL token that allows a proxy
// to communicate to the Connect-specific endpoints.
ProxyToken string
}
// Start starts the daemon and keeps it running.
func (p *Daemon) Start() error {
}