MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / VerifySuccess

Function VerifySuccess

client/utils.go:257–276  ·  view source on GitHub ↗
(status *common.TSStatus)

Source from the content-addressed store, hash-verified

255}
256
257func VerifySuccess(status *common.TSStatus) error {
258 if status.Code == RedirectionRecommend {
259 return nil
260 }
261
262 if status.Code == MultipleError {
263 if err := verifySuccesses(status.GetSubStatus()); err != nil {
264 return err
265 }
266 return nil
267 }
268 if status.Code != SuccessStatus {
269 msg := ""
270 if status.Message != nil {
271 msg = *status.Message
272 }
273 return &ExecutionError{Code: status.Code, Message: msg}
274 }
275 return nil
276}
277
278type Binary struct {
279 values []byte

Callers 15

Test_verifySuccessFunction · 0.85
SetStorageGroupMethod · 0.85
DeleteStorageGroupMethod · 0.85
DeleteStorageGroupsMethod · 0.85
CreateTimeseriesMethod · 0.85
CreateMultiTimeseriesMethod · 0.85
DeleteTimeseriesMethod · 0.85
DeleteDataMethod · 0.85
InsertStringRecordMethod · 0.85
SetTimeZoneMethod · 0.85

Calls 2

verifySuccessesFunction · 0.85
GetSubStatusMethod · 0.80

Tested by 1

Test_verifySuccessFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…