Hoist client and registry modules up to top level

This commit is contained in:
Dirkjan Ochtman 2021-12-01 14:21:43 +01:00 committed by masalachai
parent b9efd46170
commit ac50679071
4 changed files with 6 additions and 9 deletions

View File

@ -52,14 +52,15 @@ use std::{error::Error, fmt::Debug};
use crate::common::{EppObject, NoExtension};
use crate::config::EppClientConfig;
use crate::connection::registry::{epp_connect, EppConnection};
use crate::error;
use crate::hello::{Greeting, Hello};
use crate::login::Login;
use crate::logout::Logout;
use crate::registry::{epp_connect, EppConnection};
use crate::request::{generate_client_tr_id, EppExtension, EppRequest};
use crate::response::{CommandResponseStatus, CommandResponseWithExtension};
use crate::xml::EppXml;
/// 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
/// to the registry and deserialize the XML responses from the registry to local types

View File

@ -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;

View File

@ -100,9 +100,9 @@
#[macro_use]
extern crate log;
pub mod client;
pub mod common;
pub mod config;
pub mod connection;
pub mod contact;
pub mod domain;
pub mod error;
@ -111,12 +111,13 @@ pub mod host;
pub mod login;
pub mod logout;
pub mod message;
pub mod registry;
pub mod request;
pub mod response;
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)]
pub mod tests;