Documentation
¶
Index ¶
- Variables
- type EnhancedNode
- type HeartCore
- func (h *HeartCore) GetHealthyNodeCount() int
- func (h *HeartCore) GetNodeStats() map[string]interface{}
- func (h *HeartCore) RouteReadRequest(ctx context.Context, sql string, args ...any) ([]map[string]interface{}, error)
- func (h *HeartCore) RouteWriteRequest(ctx context.Context, sql string, args ...any) error
- func (h *HeartCore) Start(ctx context.Context)
- func (h *HeartCore) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptySQL = errors.New("sql query cannot be empty") ErrNoNodesAvailable = errors.New("no nodes available for routing") ErrNilResponse = errors.New("received nil response from node") ErrNilArgument = errors.New("argument cannot be nil") ErrUnsupportedType = errors.New("unsupported argument type") )
Functions ¶
This section is empty.
Types ¶
type EnhancedNode ¶
type EnhancedNode struct {
// contains filtered or unexported fields
}
type HeartCore ¶
type HeartCore struct {
// contains filtered or unexported fields
}
func NewHeartCore ¶
func (*HeartCore) GetHealthyNodeCount ¶
GetHealthyNodeCount returns the number of currently healthy nodes
func (*HeartCore) GetNodeStats ¶
GetNodeStats returns statistics about all nodes
func (*HeartCore) RouteReadRequest ¶
func (*HeartCore) RouteWriteRequest ¶
Click to show internal directories.
Click to hide internal directories.