github.com/0chain/gosdk@v1.17.11/docs/uml/stats.puml (about)

     1  @startuml
     2  participant "<size:20><&terminal></size> ./zbox stats" as cli
     3  collections gosdk
     4  collections blobber
     5  
     6  cli -> gosdk: GetAllocation(allocationID)
     7  cli -> gosdk: GetFileStats(remotepath)
     8  
     9  gosdk -> gosdk: check initialized allocation
    10  gosdk -> gosdk: check valid path
    11  gosdk -> gosdk: create list request
    12  
    13  group for each blobber (blobber, bidx)
    14  gosdk -> blobber: call http request to get file stats info
    15  alt successful status code
    16  blobber --> gosdk: return file stats
    17  end
    18  end
    19  
    20  alt not empty file stats
    21  gosdk -> cli: return file stats
    22  end
    23  @enduml