github.com/manicqin/nomad@v0.9.5/nomad/server_setup_oss.go (about) 1 // +build !pro,!ent 2 3 package nomad 4 5 import ( 6 "github.com/hashicorp/consul/agent/consul/autopilot" 7 log "github.com/hashicorp/go-hclog" 8 ) 9 10 type EnterpriseState struct{} 11 12 func (s *Server) setupEnterprise(config *Config) error { 13 // Set up the OSS version of autopilot 14 apDelegate := &AutopilotDelegate{s} 15 s.autopilot = autopilot.NewAutopilot(s.logger.StandardLoggerIntercept(&log.StandardLoggerOptions{InferLevels: true}), apDelegate, config.AutopilotInterval, config.ServerHealthInterval) 16 17 return nil 18 } 19 20 func (s *Server) startEnterpriseBackground() {}