Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // TLS is the secure config of peer service client TLS *tls.Config // EnableEtcdProxy is the flag if etcd proxy should start EnableEtcdProxy bool }
Config is the config of peer revision
type PeerService ¶
type PeerService interface { revision.RevisionSyncer leader.LeaderElection etcdproxy.EtcdProxy }
PeerService defines the interface provided for peer communication
func NewPeerService ¶
func NewPeerService(le leader.LeaderElection, m metrics.Metrics, b backend.Backend, config Config) PeerService
NewPeerService return a PeerService for server
Click to show internal directories.
Click to hide internal directories.