Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster interface { // Start starts the cluster node Start(ctx context.Context) error // Stop stops the cluster node Stop(ctx context.Context) error // GetPeers fetches all the peers of a given node GetPeers(ctx context.Context) ([]*goaktpb.Peer, error) // PutActor adds an actor meta to the cluster PutActor(ctx context.Context, actor *goaktpb.WireActor) error // GetActor reads an actor meta from the cluster GetActor(ctx context.Context, actorName string) (*goaktpb.WireActor, error) }
Cluster defines the cluster contract
type Config ¶
type Config struct { // Logger specifies the logger to use Logger log.Logger // Host specifies the host address Host string // Port specifies the port Port int32 // StateDir specifies the cluster state directory StateDir string // Name specifies the cluster name Name string // Discovery specifies the discovery engine Discovery discovery.Discovery }
Config represents the cluster configuration
type FSM ¶
type FSM struct {
// contains filtered or unexported fields
}
FSM represents the Finite State Machine of the multi-raft cluster
Click to show internal directories.
Click to hide internal directories.