January 2019
Intermediate to advanced
520 pages
14h 32m
English
We need a lot of types for the microservice. Let's talk a little about every type we import here:
use failure::{Error, format_err};use futures::{Future, Stream, future};use gotham::handler::HandlerFuture;use gotham::middleware::state::StateMiddleware;use gotham::pipeline::single::single_pipeline;use gotham::pipeline::single_middleware;use gotham::router::Router;use gotham::router::builder::{DefineSingleRoute, DrawRoutes, build_router};use gotham::state::{FromState, State};use gotham_derive::StateData;use hyper::Response;use hyper::header::{HeaderMap, USER_AGENT};use std::sync::{Arc, Mutex};use tokio::runtime::Runtime;use tokio_postgres::{Client, NoTls};
Most likely, you are familiar with types from failure and futures
Read now
Unlock full access