{"modulePath":"github.com/CrunchyData/postgres-operator","version":"v4.3.4+incompatible","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package pgtask\n\n## Types\n\n```go\ntype Controller struct {\n\tPgtaskConfig      *rest.Config\n\tPgtaskClient      *rest.RESTClient\n\tPgtaskClientset   *kubernetes.Clientset\n\tQueue             workqueue.RateLimitingInterface\n\tInformer          informers.PgtaskInformer\n\tPgtaskWorkerCount int\n}\n```\nController holds connections for the controller\n\n```go\nfunc (c *Controller) AddPGTaskEventHandler()\n```\nAddPGTaskEventHandler adds the pgtask event handler to the pgtask 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/pgtask","name":"pgtask","synopsis":"","isRedistributable":true}
