open-consul/internal/resource/demo/controller.go

14 lines
355 B
Go
Raw Normal View History

2023-04-25 11:52:35 +00:00
package demo
import "github.com/hashicorp/consul/internal/controller"
// RegisterControllers registers controllers for the demo types. Should only be
// called in dev mode.
func RegisterControllers(mgr *controller.Manager) {
mgr.Register(artistController())
}
func artistController() controller.Controller {
return controller.ForType(TypeV2Artist)
}