Documentation ¶ Index ¶ type Service func New(logger *zap.Logger, consul *api.Client, srvSessions *sessions.Service, ...) (*Service, error) func (s *Service) RunLeaderElection(ctx context.Context) <-chan bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Service ¶ type Service struct { // contains filtered or unexported fields } func New ¶ func New(logger *zap.Logger, consul *api.Client, srvSessions *sessions.Service, srvKeys *keys.Service, ttl time.Duration, sessionName, keyName string) (*Service, error) func (*Service) RunLeaderElection ¶ func (s *Service) RunLeaderElection(ctx context.Context) <-chan bool Source Files ¶ View all Source files service.go Directories ¶ Show internal Expand all Path Synopsis keys sessions Click to show internal directories. Click to hide internal directories.