28 #include "aossl/consul/include/consul_interface.h" 29 #include "aossl/consul/include/service.h" 30 #include "aossl/consul/include/consul_admin.h" 33 #ifndef AOSSL_CONSUL_INCLUDE_FACTORY_CONSUL_H_ 34 #define AOSSL_CONSUL_INCLUDE_FACTORY_CONSUL_H_ 74 return new ConsulAdmin(caddr, port, ssl_cert, acl_token);
81 std::string new_name) {
82 return new Service( new_id, new_name );
87 std::string new_name, std::string new_address, std::string new_port) {
88 return new Service( new_id, new_name, new_address, new_port );
93 std::string new_name, std::string new_address, std::string new_port, \
94 std::vector<std::string> new_tags) {
95 return new Service( new_id, new_name, new_address, new_port, new_tags );
101 #endif // AOSSL_CONSUL_INCLUDE_FACTORY_CONSUL_H_ ConsulInterface * get_consul_interface(std::string caddr, int port, std::string ssl_cert)
Get a Consul Interface instance.
Definition: factory_consul.h:68
ServiceInterface * get_service_interface(std::string new_id, std::string new_name)
Get a Service Interface instance.
Definition: factory_consul.h:80
ServiceInterface * get_service_interface(std::string new_id, std::string new_name, std::string new_address, std::string new_port, std::vector< std::string > new_tags)
Get a Service Interface instance.
Definition: factory_consul.h:92
ConsulComponentFactory()
Create a new Service Component Factory.
Definition: factory_consul.h:47
ConsulInterface * get_consul_interface(std::string caddr, int port, std::string ssl_cert, std::string acl_token)
Get a Consul Interface instance.
Definition: factory_consul.h:73
Definition: consul_admin.h:58
The Consul Administrator, who handles configuration & service discovery.
Definition: consul_interface.h:115
A Service class which can be registered with Consul for each app instance.
Definition: service.h:39
A Service class which can be registered with Consul for each app instance.
Definition: consul_interface.h:57
The Consul Service Component Factory.
Definition: factory_consul.h:44
ConsulInterface * get_consul_interface(std::string caddr)
Get a Consul Interface instance.
Definition: factory_consul.h:53
ConsulInterface * get_consul_interface(std::string caddr, int port)
Get a Consul Interface instance.
Definition: factory_consul.h:58
ConsulInterface * get_consul_interface(std::string caddr, std::string ssl_cert)
Get a Consul Interface instance.
Definition: factory_consul.h:63
~ConsulComponentFactory()
Delete a Service Component Factory.
Definition: factory_consul.h:50
ServiceInterface * get_service_interface(std::string new_id, std::string new_name, std::string new_address, std::string new_port)
Get a Service Interface instance.
Definition: factory_consul.h:86