You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
475 B

  1. package operation
  2. import (
  3. "context"
  4. "github.com/chrislusf/seaweedfs/weed/pb/master_pb"
  5. )
  6. func Statistics(server string, req *master_pb.StatisticsRequest) (resp *master_pb.StatisticsResponse, err error) {
  7. err = withMasterServerClient(server, func(masterClient master_pb.SeaweedClient) error {
  8. grpcResponse, grpcErr := masterClient.Statistics(context.Background(), req)
  9. if grpcErr != nil {
  10. return grpcErr
  11. }
  12. resp = grpcResponse
  13. return nil
  14. })
  15. return
  16. }