Documentation ¶
Overview ¶
Package memory implements an in-memory variant of the Decider to allow for quick local/single-process testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decider ¶
type Decider struct {
// contains filtered or unexported fields
}
Decider implements leaderelection.Decider
func (*Decider) ReadCurrent ¶
ReadCurrent should provide the latest version of RaceEntry available and put any additional information needed to ensure transactional behavior in the Token-field.
func (*Decider) WriteEntry ¶
func (d *Decider) WriteEntry(ctx context.Context, entry *entry.RaceEntry) (entry.LeaderToken, error)
WriteEntry accepts writes with the correct incarnation The interface{} return value is a new token if the write succeeded.
Click to show internal directories.
Click to hide internal directories.