{"modulePath":"github.com/CrunchyData/postgres-operator","version":"v4.3.4+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pgcluster\n\n## Types\n\n```go\ntype Controller struct {\n\tPgclusterClient      *rest.RESTClient\n\tPgclusterClientset   *kubernetes.Clientset\n\tPgclusterConfig      *rest.Config\n\tQueue                workqueue.RateLimitingInterface\n\tInformer             informers.PgclusterInformer\n\tPgclusterWorkerCount int\n}\n```\nController holds the connections for the controller\n\n```go\nfunc (c *Controller) AddPGClusterEventHandler()\n```\nAddPGClusterEventHandler adds the pgcluster event handler to the pgcluster informer\n\n```go\nfunc (c *Controller) RunWorker(stopCh \u003c-chan struct{}, doneCh chan\u003c- struct{})\n```\nRunWorker is a long-running function that will continually call the processNextWorkItem function in order to read and process a message on the workqueue.\n\n```go\nfunc (c *Controller) WorkerCount() int\n```\nWorkerCount returns the worker count for the controller\n\n","path":"github.com/CrunchyData/postgres-operator/controller/pgcluster","name":"pgcluster","synopsis":"","isRedistributable":true}
