package
2.0.0
Repository: https://github.com/masnax/microtest.git
Documentation: pkg.go.dev

# Functions

CoreClusterMemberExists checks if a core_cluster_member with the given key exists.
CoreTokenRecordExists checks if a core_token_record with the given key exists.
CreateCoreClusterMember adds a new core_cluster_member to the database.
CreateCoreTokenRecord adds a new core_token_record to the database.
DeleteCoreClusterMember deletes the core_cluster_member matching the given key parameters.
DeleteCoreTokenRecord deletes the core_token_record matching the given key parameters.
DeleteExpiredCoreTokenRecords cleans up expired tokens.
GetCallerProject will get the go project name of whichever function called `GetCallerProject`.
GetCoreClusterMember returns the core_cluster_member with the given key.
GetCoreClusterMemberID return the ID of the core_cluster_member with the given key.
GetCoreClusterMembers returns all available core_cluster_members.
GetCoreTokenRecord returns the core_token_record with the given key.
GetCoreTokenRecordID return the ID of the core_token_record with the given key.
GetCoreTokenRecords returns all available core_token_records.
GetUpgradingClusterMembers returns the list of all cluster members during an upgrade, as well as a map of members who we consider to be in a waiting state.
PrepareStmts prepares all registered statements and stores them in preparedStmts.
RegisterStmt register a SQL statement.
Stmt prepares the in-memory prepared statement for the transaction.
StmtString returns the in-memory query string with the given code.
UpdateCoreClusterMember updates the core_cluster_member matching the given key parameters.

# Constants

Pending indicates that a node is about to be added or removed.

# Structs

CoreClusterMember represents the global database entry for a dqlite cluster member.
CoreClusterMemberFilter is used for filtering queries using generated methods.
CoreTokenRecord is the database representation of a join token record.
CoreTokenRecordFilter is the filter struct for filtering results from generated methods.
DqliteMember is the information that can be derived locally about a cluster member without access to the dqlite database.
Schema represents the database schema table.

# Type aliases

Role is the role of the dqlite cluster member.