MCPcopy
hub / github.com/rqlite/rqlite / mockClusterService

Struct mockClusterService

http/service_test.go:2653–2662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2651}
2652
2653type mockClusterService struct {
2654 apiAddr string
2655 executeFn func(er *command.ExecuteRequest, addr string, t time.Duration) ([]*command.ExecuteQueryResponse, uint64, error)
2656 queryFn func(qr *command.QueryRequest, addr string, t time.Duration) ([]*command.QueryRows, uint64, error)
2657 requestFn func(eqr *command.ExecuteQueryRequest, nodeAddr string, timeout time.Duration) ([]*command.ExecuteQueryResponse, uint64, uint64, error)
2658 backupFn func(br *command.BackupRequest, addr string, t time.Duration, w io.Writer) error
2659 loadFn func(lr *command.LoadRequest, addr string, t time.Duration) error
2660 removeNodeFn func(rn *command.RemoveNodeRequest, nodeAddr string, t time.Duration) error
2661 stepdownFn func(sr *command.StepdownRequest, nodeAddr string, t time.Duration) error
2662}
2663
2664func (m *mockClusterService) GetNodeMeta(ctx context.Context, a string, r int, t time.Duration) (*cluster.NodeMeta, error) {
2665 return &cluster.NodeMeta{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected