Skip to content

Commit

Permalink
Add SendBatch to gohbase.Client interface and MockClient
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronbee committed Jul 27, 2023
1 parent 3acbbb4 commit 1ec3e17
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
package gohbase

import (
"context"
"encoding/binary"
"encoding/json"
"fmt"
Expand Down Expand Up @@ -40,6 +41,7 @@ type Client interface {
Increment(i *hrpc.Mutate) (int64, error)
CheckAndPut(p *hrpc.Mutate, family string, qualifier string,
expectedValue []byte) (bool, error)
SendBatch(ctx context.Context, batch []hrpc.Call) (res []hrpc.RPCResult, allOK bool)
Close()
}

Expand Down
16 changes: 16 additions & 0 deletions test/mock/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ec3e17

Please sign in to comment.