Versions in this module Expand all Collapse all v2 v2.0.0 Jul 31, 2024 Changes in this version + type Args struct + Client *client.Client + Proxy func(*http.Request) (*url.URL, error) + StateDir string + type DaemonArgs = daemon.Args + type MicroCluster struct + FileSystem *sys.OS + func App(args Args) (*MicroCluster, error) + func (m *MicroCluster) GetDqliteClusterMembers() ([]cluster.DqliteMember, error) + func (m *MicroCluster) JoinCluster(ctx context.Context, name string, address string, token string, ...) error + func (m *MicroCluster) ListJoinTokens(ctx context.Context) ([]internalTypes.TokenRecord, error) + func (m *MicroCluster) LocalClient() (*client.Client, error) + func (m *MicroCluster) NewCluster(ctx context.Context, name string, address string, config map[string]string) error + func (m *MicroCluster) NewJoinToken(ctx context.Context, name string, expireAfter time.Duration) (string, error) + func (m *MicroCluster) Ready(ctx context.Context) error + func (m *MicroCluster) RecoverFromQuorumLoss(members []cluster.DqliteMember) (string, error) + func (m *MicroCluster) RemoteClient(address string) (*client.Client, error) + func (m *MicroCluster) RevokeJoinToken(ctx context.Context, name string) error + func (m *MicroCluster) SQL(ctx context.Context, query string) (string, *internalTypes.SQLBatch, error) + func (m *MicroCluster) Start(ctx context.Context, daemonArgs DaemonArgs) error + func (m *MicroCluster) Status(ctx context.Context) (*internalTypes.Server, error) Other modules containing this package github.com/masnax/microtest