Hoist client and registry modules up to top level
This commit is contained in:
parent
b9efd46170
commit
ac50679071
|
@ -52,14 +52,15 @@ use std::{error::Error, fmt::Debug};
|
||||||
|
|
||||||
use crate::common::{EppObject, NoExtension};
|
use crate::common::{EppObject, NoExtension};
|
||||||
use crate::config::EppClientConfig;
|
use crate::config::EppClientConfig;
|
||||||
use crate::connection::registry::{epp_connect, EppConnection};
|
|
||||||
use crate::error;
|
use crate::error;
|
||||||
use crate::hello::{Greeting, Hello};
|
use crate::hello::{Greeting, Hello};
|
||||||
use crate::login::Login;
|
use crate::login::Login;
|
||||||
use crate::logout::Logout;
|
use crate::logout::Logout;
|
||||||
|
use crate::registry::{epp_connect, EppConnection};
|
||||||
use crate::request::{generate_client_tr_id, EppExtension, EppRequest};
|
use crate::request::{generate_client_tr_id, EppExtension, EppRequest};
|
||||||
use crate::response::{CommandResponseStatus, CommandResponseWithExtension};
|
use crate::response::{CommandResponseStatus, CommandResponseWithExtension};
|
||||||
use crate::xml::EppXml;
|
use crate::xml::EppXml;
|
||||||
|
|
||||||
/// Instances of the EppClient type are used to transact with the registry.
|
/// Instances of the EppClient type are used to transact with the registry.
|
||||||
/// Once initialized, the EppClient instance can serialize EPP requests to XML and send them
|
/// Once initialized, the EppClient instance can serialize EPP requests to XML and send them
|
||||||
/// to the registry and deserialize the XML responses from the registry to local types
|
/// to the registry and deserialize the XML responses from the registry to local types
|
|
@ -1,5 +0,0 @@
|
||||||
//! Manages registry connections and reading/writing to them
|
|
||||||
//! and connects the EppClient instances to them
|
|
||||||
|
|
||||||
pub mod client;
|
|
||||||
pub mod registry;
|
|
|
@ -100,9 +100,9 @@
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate log;
|
extern crate log;
|
||||||
|
|
||||||
|
pub mod client;
|
||||||
pub mod common;
|
pub mod common;
|
||||||
pub mod config;
|
pub mod config;
|
||||||
pub mod connection;
|
|
||||||
pub mod contact;
|
pub mod contact;
|
||||||
pub mod domain;
|
pub mod domain;
|
||||||
pub mod error;
|
pub mod error;
|
||||||
|
@ -111,12 +111,13 @@ pub mod host;
|
||||||
pub mod login;
|
pub mod login;
|
||||||
pub mod logout;
|
pub mod logout;
|
||||||
pub mod message;
|
pub mod message;
|
||||||
|
pub mod registry;
|
||||||
pub mod request;
|
pub mod request;
|
||||||
pub mod response;
|
pub mod response;
|
||||||
pub mod xml;
|
pub mod xml;
|
||||||
pub use connection::client::EppClient;
|
|
||||||
|
|
||||||
pub use crate::connection::client::default_client_tr_id_fn as generate_client_tr_id;
|
pub use client::default_client_tr_id_fn as generate_client_tr_id;
|
||||||
|
pub use client::EppClient;
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub mod tests;
|
pub mod tests;
|
||||||
|
|
Loading…
Reference in New Issue