hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shepherd.cpp File Reference
#include <iostream>
#include "util/proto_status_tools.hpp"
#include <gflags/gflags.h>
#include "common/irohad_version.hpp"
#include "logger/logger.hpp"
#include "logger/logger_manager.hpp"
#include "main/iroha_conf_literals.hpp"
#include "util/utility_client.hpp"
Include dependency graph for shepherd.cpp:

Functions

static bool validateVerbosity (const char *flagname, const std::string &val)
 
static bool validateSingleAction (const char *, bool val)
 
 DEFINE_string (irohad, "127.0.0.1:11001", "Address of iroha daemon")
 
 DEFINE_string (verbosity, "warning", "Log verbosity")
 
 DEFINE_validator (verbosity, &validateVerbosity)
 
 DEFINE_bool (shutdown, false, "Ask the daemon to shut down gracefully")
 
 DEFINE_validator (shutdown, &validateSingleAction)
 
 DEFINE_bool (status, false, "Watch daemon statuses.")
 
 DEFINE_validator (status, &validateSingleAction)
 
bool printStatus (const iroha::utility_service::Status &status)
 
int main (int argc, char **argv)
 

Function Documentation

◆ DEFINE_bool() [1/2]

DEFINE_bool ( shutdown  ,
false  ,
"Ask the daemon to shut down gracefully"   
)
Here is the caller graph for this function:

◆ DEFINE_bool() [2/2]

DEFINE_bool ( status  ,
false  ,
"Watch daemon statuses."   
)

◆ DEFINE_string() [1/2]

DEFINE_string ( irohad  ,
"127.0.0.1:11001"  ,
"Address of iroha daemon"   
)
Here is the caller graph for this function:

◆ DEFINE_string() [2/2]

DEFINE_string ( verbosity  ,
"warning"  ,
"Log verbosity"   
)

◆ DEFINE_validator() [1/3]

DEFINE_validator ( verbosity  ,
validateVerbosity 
)
Here is the caller graph for this function:

◆ DEFINE_validator() [2/3]

DEFINE_validator ( shutdown  ,
validateSingleAction 
)

◆ DEFINE_validator() [3/3]

DEFINE_validator ( status  ,
validateSingleAction 
)

◆ main()

int main ( int  argc,
char **  argv 
)
Here is the call graph for this function:

◆ printStatus()

bool printStatus ( const iroha::utility_service::Status status)
Here is the caller graph for this function:

◆ validateSingleAction()

static bool validateSingleAction ( const char *  ,
bool  val 
)
static
Here is the call graph for this function:

◆ validateVerbosity()

static bool validateVerbosity ( const char *  flagname,
const std::string &  val 
)
static

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Here is the caller graph for this function: