cluck 1.0.1
The cluster lock service.
Variables
cluck_daemon::anonymous_namespace{cluckd.cpp} Namespace Reference

Variables

constexpr char const *const g_configuration_files []
 
constexpr std::string_view g_default_candidate_priority
 
advgetopt::group_description const g_group_descriptions []
 
advgetopt::option const g_options []
 
advgetopt::options_environment const g_options_environment
 

Variable Documentation

◆ g_configuration_files

constexpr char const* const cluck_daemon::anonymous_namespace{cluckd.cpp}::g_configuration_files[]
constexpr
Initial value:
=
{
"/etc/cluck/cluckd.conf",
nullptr
}

Definition at line 188 of file cluckd.cpp.

◆ g_default_candidate_priority

constexpr std::string_view cluck_daemon::anonymous_namespace{cluckd.cpp}::g_default_candidate_priority
constexpr
Initial value:
=
snapdev::integer_to_string_literal<computer::PRIORITY_DEFAULT>.data()

Definition at line 144 of file cluckd.cpp.

◆ g_group_descriptions

advgetopt::group_description const cluck_daemon::anonymous_namespace{cluckd.cpp}::g_group_descriptions[]
Initial value:
=
{
advgetopt::define_group(
advgetopt::GroupNumber(advgetopt::GETOPT_FLAG_GROUP_COMMANDS)
, advgetopt::GroupName("command")
, advgetopt::GroupDescription("Commands:")
),
advgetopt::define_group(
advgetopt::GroupNumber(advgetopt::GETOPT_FLAG_GROUP_OPTIONS)
, advgetopt::GroupName("option")
, advgetopt::GroupDescription("Options:")
),
advgetopt::end_groups()
}

Definition at line 172 of file cluckd.cpp.

◆ g_options

advgetopt::option const cluck_daemon::anonymous_namespace{cluckd.cpp}::g_options[]
Initial value:
=
{
advgetopt::define_option(
advgetopt::Name("candidate-priority")
, advgetopt::ShortName('p')
, advgetopt::Flags(advgetopt::all_flags<
advgetopt::GETOPT_FLAG_REQUIRED
, advgetopt::GETOPT_FLAG_GROUP_OPTIONS>())
, advgetopt::Help("Define the priority of this candidate (1 to 14) to gain a leader position or \"off\".")
, advgetopt::DefaultValue(g_default_candidate_priority.data())
),
advgetopt::define_option(
advgetopt::Name("server-name")
, advgetopt::ShortName('n')
, advgetopt::Flags(advgetopt::all_flags<
advgetopt::GETOPT_FLAG_DYNAMIC_CONFIGURATION
, advgetopt::GETOPT_FLAG_REQUIRED
, advgetopt::GETOPT_FLAG_GROUP_OPTIONS>())
, advgetopt::Help("Set the name of this server instance.")
),
advgetopt::end_options()
}
constexpr std::string_view g_default_candidate_priority
Definition cluckd.cpp:144

Definition at line 148 of file cluckd.cpp.

◆ g_options_environment

advgetopt::options_environment const cluck_daemon::anonymous_namespace{cluckd.cpp}::g_options_environment
Initial value:
=
{
.f_project_name = "cluckd",
.f_group_name = "cluck",
.f_options = g_options,
.f_environment_variable_name = "CLUCKD_OPTIONS",
.f_configuration_files = g_configuration_files,
.f_environment_flags = advgetopt::GETOPT_ENVIRONMENT_FLAG_SYSTEM_PARAMETERS
| advgetopt::GETOPT_ENVIRONMENT_FLAG_PROCESS_SYSTEM_PARAMETERS,
.f_help_header = "Usage: %p [-<opt>]\n"
"where -<opt> is one or more of:",
.f_help_footer = "%c",
.f_version = CLUCK_VERSION_STRING,
.f_license = "GNU GPL v3",
.f_copyright = "Copyright (c) 2013-"
" by Made to Order Software Corporation -- All Rights Reserved",
.f_groups = g_group_descriptions,
}
constexpr char const *const g_configuration_files[]
Definition cluckd.cpp:188
advgetopt::group_description const g_group_descriptions[]
Definition cluckd.cpp:172
#define CLUCK_VERSION_STRING
Definition version.h:27

Definition at line 195 of file cluckd.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.