Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CoordShardinfo ¶
type ParameterSet ¶
func (ParameterSet) Save ¶
func (ps ParameterSet) Save(status ParameterStatus) bool
Save saves the given ParameterStatus to the ParameterSet. It returns true if the status was successfully saved, and false if the status already exists in the set.
Parameters:
- status: The ParameterStatus to save.
Returns:
- bool: A boolean indicating whether the status was successfully saved.
TODO : unit tests
type ParameterStatus ¶
type Shard ¶
type Shard interface { txstatus.TxStatusMgr prepstatement.PreparedStatementHolder Shardinfo Name() string SHKey() kr.ShardKey Send(query pgproto3.FrontendMessage) error Receive() (pgproto3.BackendMessage, error) Cleanup(rule *config.FrontendRule) error Instance() conn.DBInstance Cancel() error Params() ParameterSet Close() error }
type ShardIterator ¶
Click to show internal directories.
Click to hide internal directories.