dhomer 0.1.0

Simple and easy to use, a proxy server based on Pingora
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use snafu::Snafu;

#[derive(Snafu, Debug)]
#[snafu(visibility(pub))]
pub enum Error {
    #[snafu(display(
        "Invalid address, s: {s}. Address should contain domain and port. eg: www.bing.com:443"
    ))]
    InvalidAddress { s: String },
    #[snafu(display("Repeated address: s: {s}"))]
    RepeatedAddress { s: String },
    #[snafu(display("Invalid domain, s: {s}."))]
    InvalidDomain { s: String },
    #[snafu(display("Invalid router, s: {s}."))]
    InvalidRouter { s: String },
}