Versions in this module Expand all Collapse all v5 v5.0.0 Jul 16, 2024 Changes in this version + var OnHeartbeatHook func(state *State) error + var OnNewMemberHook func(state *State) error + var PostRemoveHook func(state *State, force bool) error + var PreRemoveHook func(state *State, force bool) error + var ReloadClusterCert func() error + var StopListeners func() error + type State struct + Address func() *api.URL + ClusterCert func() *shared.CertInfo + Context context.Context + Database *db.DB + Endpoints *endpoints.Endpoints + Extensions extensions.Extensions + Name func() string + OS *sys.OS + ReadyCh chan struct{} + Remotes func() *trust.Remotes + ServerCert func() *shared.CertInfo + ShutdownDoneCh chan error + StartAPI func(bootstrap bool, initConfig map[string]string, newConfig *trust.Location, ...) error + Stop func() (exit func(), stopErr error) + func (s *State) Cluster(isNotification bool) (client.Cluster, error) + func (s *State) Leader() (*client.Client, error) Other modules containing this package github.com/masnax/microclustertest github.com/masnax/microclustertest/v2 github.com/masnax/microclustertest/v3