1 /*
2  * hunt-proton: AMQP Protocol library for D programming language.
3  *
4  * Copyright (C) 2018-2019 HuntLabs
5  *
6  * Website: https://www.huntlabs.net/
7  *
8  * Licensed under the Apache-2.0 License.
9  *
10  */
11 
12 module hunt.proton.engine.Engine;
13 
14 /**
15  * Engine
16  *
17  */
18 import hunt.proton.engine.Collector;
19 import hunt.proton.engine.Connection;
20 import hunt.proton.engine.Transport;
21 import hunt.proton.engine.SslDomain;
22 import hunt.proton.engine.SslPeerDetails;
23 
24 class Engine
25 {
26 
27     this()
28     {
29     }
30 
31     public static Collector collector()
32     {
33         return Collector.Factory.create();
34     }
35 
36     public static Connection connection()
37     {
38         return Connection.Factory.create();
39     }
40 
41     public static Transport transport()
42     {
43         return Transport.Factory.create();
44     }
45 
46     public static SslDomain sslDomain()
47     {
48         return SslDomain.Factory.create();
49     }
50 
51     public static SslPeerDetails sslPeerDetails(string hostname, int port)
52     {
53         return SslPeerDetails.Factory.create(hostname, port);
54     }
55 
56 }