7e4ea16149
The bulk of this commit is moving the LeaderRoutineManager from the agent/consul package into its own package: lib/gort. It also got a renaming and its Start method now requires a context. Requiring that context required updating a whole bunch of other places in the code.
21 lines
675 B
Go
21 lines
675 B
Go
// +build !consulent
|
|
|
|
package agent
|
|
|
|
import (
|
|
autoconf "github.com/hashicorp/consul/agent/auto-config"
|
|
"github.com/hashicorp/consul/agent/config"
|
|
"github.com/hashicorp/consul/agent/consul"
|
|
)
|
|
|
|
// initEnterpriseBaseDeps is responsible for initializing the enterprise dependencies that
|
|
// will be utilized throughout the whole Consul Agent.
|
|
func initEnterpriseBaseDeps(d BaseDeps, _ *config.RuntimeConfig) (BaseDeps, error) {
|
|
return d, nil
|
|
}
|
|
|
|
// initEnterpriseAutoConfig is responsible for setting up auto-config for enterprise
|
|
func initEnterpriseAutoConfig(_ consul.EnterpriseDeps, _ *config.RuntimeConfig) autoconf.EnterpriseConfig {
|
|
return autoconf.EnterpriseConfig{}
|
|
}
|