Type Alias HttpApi

Source
pub type HttpApi = HttpApi;

Aliased Type§

pub struct HttpApi {
    pub bind_address: SocketAddr,
    pub tsl_config: Option<TslConfig>,
    pub access_tokens: HashMap<String, String>,
}

Fields§

§bind_address: SocketAddr

The address the tracker will bind to. The format is ip:port, for example 0.0.0.0:6969. If you want to listen to all interfaces, use 0.0.0.0. If you want the operating system to choose a random port, use port 0.

§tsl_config: Option<TslConfig>

TSL config. Only used if ssl_enabled is true.

§access_tokens: HashMap<String, String>

Access tokens for the HTTP API. The key is a label identifying the token and the value is the token itself. The token is used to authenticate the user. All tokens are valid for all endpoints and have all permissions.