Method
Query
(_ context.Context, req *proto.QueryRequest)
Source from the content-addressed store, hash-verified
| 76 | } |
| 77 | |
| 78 | func (s *server) Query(_ context.Context, req *proto.QueryRequest) (*proto.QueryResponse, error) { |
| 79 | s.queryCalled.Add(1) |
| 80 | if s.onQueryCalled != nil { |
| 81 | s.onQueryCalled(req) |
| 82 | } |
| 83 | return s.queryResp, s.queryErr |
| 84 | } |
| 85 | |
| 86 | func (s *server) Transact(_ context.Context, req *proto.TransactionalStateRequest) (*proto.TransactionalStateResponse, error) { |
| 87 | s.transactCalled.Add(1) |
Callers
nothing calls this directly
Tested by
no test coverage detected