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 super::StreamCommand;
|
||||||
use crate::result::{Error, ErrorKind, Result};
|
use crate::result::{Error, ErrorKind, Result};
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct FlushCommand<'a> {
|
pub struct FlushCommand<'a> {
|
||||||
pub collection: &'a str,
|
pub collection: &'a str,
|
||||||
|
|
|
@ -15,22 +15,22 @@ mod query;
|
||||||
#[cfg(feature = "search")]
|
#[cfg(feature = "search")]
|
||||||
mod suggest;
|
mod suggest;
|
||||||
|
|
||||||
pub use quit::QuitCommand;
|
pub(crate) use quit::QuitCommand;
|
||||||
pub use start::StartCommand;
|
pub(crate) use start::StartCommand;
|
||||||
|
|
||||||
pub use ping::PingCommand;
|
pub(crate) use ping::PingCommand;
|
||||||
|
|
||||||
#[cfg(feature = "ingest")]
|
#[cfg(feature = "ingest")]
|
||||||
pub use flush::FlushCommand;
|
pub(crate) use flush::FlushCommand;
|
||||||
#[cfg(feature = "ingest")]
|
#[cfg(feature = "ingest")]
|
||||||
pub use push::PushCommand;
|
pub(crate) use pop::PopCommand;
|
||||||
#[cfg(feature = "ingest")]
|
#[cfg(feature = "ingest")]
|
||||||
pub use pop::PopCommand;
|
pub(crate) use push::PushCommand;
|
||||||
|
|
||||||
#[cfg(feature = "search")]
|
#[cfg(feature = "search")]
|
||||||
pub use query::QueryCommand;
|
pub(crate) use query::QueryCommand;
|
||||||
#[cfg(feature = "search")]
|
#[cfg(feature = "search")]
|
||||||
pub use suggest::SuggestCommand;
|
pub(crate) use suggest::SuggestCommand;
|
||||||
|
|
||||||
use crate::result::Result;
|
use crate::result::Result;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::StreamCommand;
|
use super::StreamCommand;
|
||||||
use crate::result::*;
|
use crate::result::*;
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct PingCommand;
|
pub struct PingCommand;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::StreamCommand;
|
use super::StreamCommand;
|
||||||
use crate::result::{Error, ErrorKind, Result};
|
use crate::result::{Error, ErrorKind, Result};
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct PopCommand<'a> {
|
pub struct PopCommand<'a> {
|
||||||
pub collection: &'a str,
|
pub collection: &'a str,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::StreamCommand;
|
use super::StreamCommand;
|
||||||
use crate::result::Result;
|
use crate::result::Result;
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct PushCommand<'a> {
|
pub struct PushCommand<'a> {
|
||||||
pub collection: &'a str,
|
pub collection: &'a str,
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use super::StreamCommand;
|
use super::StreamCommand;
|
||||||
use crate::result::Result;
|
use crate::result::Result;
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug, Default)]
|
#[derive(Debug, Default)]
|
||||||
pub struct QuitCommand;
|
pub struct QuitCommand;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ const RE_START_RECEIVED_MESSAGE: &str = r"(?x)
|
||||||
buffer\((?P<buffer_size>\d+)\)
|
buffer\((?P<buffer_size>\d+)\)
|
||||||
";
|
";
|
||||||
|
|
||||||
#[doc(hidden)]
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct StartCommand {
|
pub struct StartCommand {
|
||||||
pub mode: ChannelMode,
|
pub mode: ChannelMode,
|
||||||
|
|
|
@ -71,7 +71,6 @@ mod commands;
|
||||||
pub mod result;
|
pub mod result;
|
||||||
|
|
||||||
pub use channel::*;
|
pub use channel::*;
|
||||||
pub use commands::*;
|
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
|
|
Loading…
Reference in a new issue