Documentation ¶
Index ¶
- Constants
- Variables
- func BroadcastHandler(data interface{}, msg []byte) ([]byte, error)
- func EnsureLeaderActive(ctx context.Context, app *appdata.AppData) (bool, error)
- func LeaderHandler(data interface{}, msg []byte) ([]byte, error)
- func LeaderLiveness(ctx context.Context, app *appdata.AppData)
- func SendToLeader(ctx context.Context, app *appdata.AppData, m []byte) ([]byte, error)
- type Cluster
- type ClusterData
- type DistributedGetInput
- type DistributedGetOutput
- type Hasher
Constants ¶
View Source
const (
EventSource = "jupiter/internal"
)
Variables ¶
View Source
var ( ErrClusterOffline = fmt.Errorf("failed: cluster not running") CtrlBroadcastLeaderLiveness = "CTRL_BROADCAST_LEADER_LIVENESS" CtrlBroadcastDistributedGet = "CTRL_BROADCAST_DISTRIBUTED_GET" )
Functions ¶
func BroadcastHandler ¶
func EnsureLeaderActive ¶
func LeaderHandler ¶
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
func NewCluster ¶
func NewCluster() *Cluster
func (*Cluster) RandomPing ¶
type ClusterData ¶
type DistributedGetInput ¶
type DistributedGetOutput ¶
Click to show internal directories.
Click to hide internal directories.