func getResult()

in gdbclient/internal/graphsonv3/graphreader.go [110:123]


func getResult(raw json.RawMessage) ([]interface{}, error) {
	var r result
	if err := jsonUnmarshal(raw, &r); err != nil {
		return nil, err
	}

	// response start with 'g:List'
	if r.Type != gTypeList {
		internal.Logger.Error("graphSonV3 response start", zap.String("start type", r.Type))
		return nil, errors.New("response starts with not 'List'")
	}

	return resultListRouter(r.Value)
}