Crate spacegate_kernel

Source
Expand description

§Spacegate kernel crate.

This crate provides the core functionality of spacegate.

Re-exports§

pub use backend_service::ArcHyperService;
pub use body::SgBody;
pub use extractor::Extract;

Modules§

backend_service
https services, ws services, and static file services.
body
a boxed body
extension
extensions for request and response
extractor
extractors for request
helper_layers
helper layers
injector
injectors for reqeust
listener
tcp listener
service
gateway service
utils
util functions and structs

Structs§

BoxLayer
A boxed Layer that can be used as a plugin layer in gateway.
CancellationToken
A token which can be used to signal a cancellation request to one or more tasks.

Traits§

Layer
Decorates a Service, transforming either the request or the response.
SgRequestExt
Provides extension methods for Request.
SgResponseExt
Provides extension methods for Response.

Type Aliases§

BoxError
A boxed error.
BoxResult
SgRequest
Alias for a request with a boxed body.
SgResponse
Alias for a response with a boxed body.