pub struct GatewayServer { /* private fields */ }Expand description
Gateway HTTP server.
Implementations§
Source§impl GatewayServer
impl GatewayServer
Sourcepub fn new(
config: GatewayConfig,
registry: FunctionRegistry,
db_pool: PgPool,
) -> Self
pub fn new( config: GatewayConfig, registry: FunctionRegistry, db_pool: PgPool, ) -> Self
Create a new gateway server.
Sourcepub fn with_observability(
config: GatewayConfig,
registry: FunctionRegistry,
db_pool: PgPool,
observability: ObservabilityState,
) -> Self
pub fn with_observability( config: GatewayConfig, registry: FunctionRegistry, db_pool: PgPool, observability: ObservabilityState, ) -> Self
Create a new gateway server with observability.
Sourcepub fn with_job_dispatcher(self, dispatcher: Arc<dyn JobDispatch>) -> Self
pub fn with_job_dispatcher(self, dispatcher: Arc<dyn JobDispatch>) -> Self
Set the job dispatcher.
Sourcepub fn with_workflow_dispatcher(
self,
dispatcher: Arc<dyn WorkflowDispatch>,
) -> Self
pub fn with_workflow_dispatcher( self, dispatcher: Arc<dyn WorkflowDispatch>, ) -> Self
Set the workflow dispatcher.
Sourcepub fn addr(&self) -> SocketAddr
pub fn addr(&self) -> SocketAddr
Get the socket address to bind to.
Auto Trait Implementations§
impl Freeze for GatewayServer
impl !RefUnwindSafe for GatewayServer
impl Send for GatewayServer
impl Sync for GatewayServer
impl Unpin for GatewayServer
impl !UnwindSafe for GatewayServer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more