We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TideDisco<State, Error: net::Error + Into<tide::Error>>
App
Server
new(state: State) -> Self
register_module<ModuleError: Into<Error>>(&mut self, base_url: Url, api: ApiSpec<State, ModuleError>) -> &mut Self
serve(self) -> JoinHandle<Result<()>>
ApiSpec<State, Error>
new(api: toml::Value) -> Result<Self>
route<T: Serialize>(&mut self, name: &str, handler: impl Fn(RequestParams<State>) -> Result<T, Error>) -> &mut Self
register(self, app: &mut tide::App)
RequestParams<State>
state(&self) -> &State
param(&self, name: &str) -> Result<&UrlParam>
The text was updated successfully, but these errors were encountered:
Define the basic server types and interfaces and add a minimal example.
27a8ce4
Closes #13 Closes #14
jbearer
Successfully merging a pull request may close this issue.
TideDisco<State, Error: net::Error + Into<tide::Error>>
(should we call it something more descriptive likeApp
orServer
?)new(state: State) -> Self
register_module<ModuleError: Into<Error>>(&mut self, base_url: Url, api: ApiSpec<State, ModuleError>) -> &mut Self
serve(self) -> JoinHandle<Result<()>>
ApiSpec<State, Error>
new(api: toml::Value) -> Result<Self>
route<T: Serialize>(&mut self, name: &str, handler: impl Fn(RequestParams<State>) -> Result<T, Error>) -> &mut Self
register(self, app: &mut tide::App)
RequestParams<State>
state(&self) -> &State
param(&self, name: &str) -> Result<&UrlParam>
The text was updated successfully, but these errors were encountered: