Skip to content

Commit

Permalink
Remove leadership funcs options
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jul 9, 2019
1 parent 291581f commit 383f1b9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions dkron/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,6 @@ func WithPlugins(plugins *Plugins) AgentOption {
}
}

// WithEstablishLeadershipFunc set an extra function to run after leadership acquisition
func WithEstablishLeadershipFunc(establishLeadershipFunc func() error) AgentOption {
return func(agent *Agent) {
agent.establishLeadershipFuncs = append(agent.establishLeadershipFuncs, establishLeadershipFunc)
}
}

// WithRevokeLeadershipFunc set an extra function to run after leadership rovokation
func WithRevokeLeadershipFunc(revokeLeadershipFunc func() error) AgentOption {
return func(agent *Agent) {
agent.revokeLeadershipFuncs = append(agent.revokeLeadershipFuncs, revokeLeadershipFunc)
}
}

// WithTransportCredentials set tls config in the agent
func WithTransportCredentials(tls *tls.Config) AgentOption {
return func(agent *Agent) {
Expand Down

0 comments on commit 383f1b9

Please sign in to comment.