Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accessor ¶
type Accessor interface { GRPC(addr string) NoLeaderRunnableFunc GrpcUds() NoLeaderRunnableFunc HTTP(addr string, prefix string) NoLeaderRunnableFunc }
type NoLeaderRunnableFunc ¶
NoLeaderRunnableFunc implements Runnable using a function that's run on every instance (not only the leader). It's very important that the given function block until it's done running.
func (NoLeaderRunnableFunc) NeedLeaderElection ¶
func (r NoLeaderRunnableFunc) NeedLeaderElection() bool
NeedLeaderElection make sure the Runnable will run on every instance
Click to show internal directories.
Click to hide internal directories.