LCOV - code coverage report
Current view: top level - irohad/model/queries/responses - roles_response.hpp (source / functions) Hit Total Coverage
Test: cleared_cor.info Lines: 2 2 100.0 %
Date: 2019-03-07 14:46:43 Functions: 12 18 66.7 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_ROLES_RESPONSE_HPP
       7             : #define IROHA_ROLES_RESPONSE_HPP
       8             : 
       9             : #include "model/query_response.hpp"
      10             : 
      11             : namespace iroha {
      12             :   namespace model {
      13             : 
      14             :     /**
      15             :      * Response with all permissions related to role
      16             :      */
      17             :     struct RolePermissionsResponse : QueryResponse {
      18             :       /**
      19             :        * All role's permissions
      20             :        */
      21           1 :       std::vector<int> role_permissions{};
      22             :     };
      23             : 
      24             :     /**
      25             :      * Provide response with all roles of the current system
      26             :      */
      27             :     struct RolesResponse : public QueryResponse {
      28             :       /**
      29             :        * Attached roles
      30             :        */
      31           1 :       std::vector<std::string> roles{};
      32             :     };
      33             :   }  // namespace model
      34             : }  // namespace iroha
      35             : 
      36             : #endif  // IROHA_ROLES_RESPONSE_HPP

Generated by: LCOV version 1.13