Debian Codegraph @

consul/api/operator.py

raw symbols SCIP
1 from consul.callback import CB
2
3
4 class Operator:
5 def __init__(self, agent) -> None:
6 self.agent = agent
7
8 def raft_config(self):
9 """
10 Returns raft configuration.
11 """
12 return self.agent.http.get(CB.json(), "/v1/operator/raft/configuration")