chore: remove public access for commands
This commit is contained in:
parent
9189c92c17
commit
2cd2d51ed1
8 changed files with 8 additions and 15 deletions
|
@ -1,7 +1,6 @@
|
|||
use super::StreamCommand;
|
||||
use crate::result::{Error, ErrorKind, Result};
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct FlushCommand<'a> {
|
||||
pub collection: &'a str,
|
||||
|
|
|
@ -15,22 +15,22 @@ mod query;
|
|||
#[cfg(feature = "search")]
|
||||
mod suggest;
|
||||
|
||||
pub use quit::QuitCommand;
|
||||
pub use start::StartCommand;
|
||||
pub(crate) use quit::QuitCommand;
|
||||
pub(crate) use start::StartCommand;
|
||||
|
||||
pub use ping::PingCommand;
|
||||
pub(crate) use ping::PingCommand;
|
||||
|
||||
#[cfg(feature = "ingest")]
|
||||
pub use flush::FlushCommand;
|
||||
pub(crate) use flush::FlushCommand;
|
||||
#[cfg(feature = "ingest")]
|
||||
pub use push::PushCommand;
|
||||
pub(crate) use pop::PopCommand;
|
||||
#[cfg(feature = "ingest")]
|
||||
pub use pop::PopCommand;
|
||||
pub(crate) use push::PushCommand;
|
||||
|
||||
#[cfg(feature = "search")]
|
||||
pub use query::QueryCommand;
|
||||
pub(crate) use query::QueryCommand;
|
||||
#[cfg(feature = "search")]
|
||||
pub use suggest::SuggestCommand;
|
||||
pub(crate) use suggest::SuggestCommand;
|
||||
|
||||
use crate::result::Result;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use super::StreamCommand;
|
||||
use crate::result::*;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct PingCommand;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use super::StreamCommand;
|
||||
use crate::result::{Error, ErrorKind, Result};
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct PopCommand<'a> {
|
||||
pub collection: &'a str,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use super::StreamCommand;
|
||||
use crate::result::Result;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct PushCommand<'a> {
|
||||
pub collection: &'a str,
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use super::StreamCommand;
|
||||
use crate::result::Result;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct QuitCommand;
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ const RE_START_RECEIVED_MESSAGE: &str = r"(?x)
|
|||
buffer\((?P<buffer_size>\d+)\)
|
||||
";
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Debug)]
|
||||
pub struct StartCommand {
|
||||
pub mode: ChannelMode,
|
||||
|
|
|
@ -71,7 +71,6 @@ mod commands;
|
|||
pub mod result;
|
||||
|
||||
pub use channel::*;
|
||||
pub use commands::*;
|
||||
|
||||
#[macro_use]
|
||||
extern crate lazy_static;
|
||||
|
|
Loading…
Reference in a new issue