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