Skip to main content

Crate kulfi_utils

Crate kulfi_utils 

Source

Re-exports§

pub use get_endpoint::get_endpoint;
pub use http::ProxyResult;
pub use protocol::APNS_IDENTITY;
pub use protocol::Protocol;
pub use protocol::ProtocolHeader;
pub use secret::ID52_FILE;
pub use secret::SECRET_KEY_FILE;
pub use secret::generate_and_save_key;
pub use secret::generate_secret_key;
pub use secret::get_secret_key;
pub use secret::read_or_create_key;

Modules§

dot_kulfi
The kulfi folder
get_endpoint
http
protocol
secret

Macros§

bad_request
not_found
server_error

Structs§

Graceful
HttpConnectionManager

Constants§

ACK
PONG

Functions§

accept_bi
accept_bi_any
accept_bi_with
get_remote_id52
get_stream
get_stream tries to check if the bidirectional stream is healthy, as simply opening a bidirectional stream, or even simply writing on it does not guarantee that the stream is open. only the read request times out to tell us something is wrong. this is why get_stream takes the protocol as well, as every outgoing bi-direction stream must have a protocol. it sends the protocol and waits for an ack. if the ack is not received within a certain time, it assumes the connection is not healthy, and tries to recreate the connection.
global_iroh_endpoint
http_to_peer
http_to_peer_non_streaming
Use http_to_peer unless you have a clear reason
id52_to_public_key
mkdir
next_json
Read until a newline character is encountered, then deserialize the buffer as JSON
next_string
Read until a newline character is encountered, then deserialize the buffer as JSON
peer_to_http
peer_to_tcp
this is the tcp proxy.
peer_to_udp
UDP proxy over iroh bidirectional streams.
ping
pipe_tcp_stream_over_iroh
public_key_to_id52
read_framed_datagram
Read a length-prefixed datagram from the iroh recv stream.
tcp_to_peer
udp_to_peer
Accept UDP datagrams on a local port and forward them over iroh to a remote peer.
write_framed_datagram
Write a length-prefixed datagram to the iroh send stream.

Type Aliases§

HttpConnectionPool
HttpConnectionPools
IDMap
IDMap stores the fastn port and the endpoint for every identity
PeerStreamSenders
PeerConnections stores the iroh connections for every peer.