Forward non-200 status in proxy. Start with event stats reader
This commit is contained in:
+37
-1
@@ -1,6 +1,7 @@
|
||||
use items::numops::NumOps;
|
||||
use items::scalarevents::ScalarEvents;
|
||||
use items::waveevents::WaveEvents;
|
||||
use items::EventsNodeProcessor;
|
||||
use items::{numops::NumOps, statsevents::StatsEvents};
|
||||
use netpod::{AggKind, Shape};
|
||||
use std::marker::PhantomData;
|
||||
|
||||
@@ -23,3 +24,38 @@ where
|
||||
inp
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Stats1Scalar {}
|
||||
|
||||
impl EventsNodeProcessor for Stats1Scalar {
|
||||
type Input = StatsEvents;
|
||||
type Output = StatsEvents;
|
||||
|
||||
fn create(_shape: Shape, _agg_kind: AggKind) -> Self {
|
||||
Self {}
|
||||
}
|
||||
|
||||
fn process(&self, inp: Self::Input) -> Self::Output {
|
||||
inp
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Stats1Wave<NTY> {
|
||||
_m1: PhantomData<NTY>,
|
||||
}
|
||||
|
||||
impl<NTY> EventsNodeProcessor for Stats1Wave<NTY>
|
||||
where
|
||||
NTY: NumOps,
|
||||
{
|
||||
type Input = WaveEvents<NTY>;
|
||||
type Output = StatsEvents;
|
||||
|
||||
fn create(_shape: Shape, _agg_kind: AggKind) -> Self {
|
||||
Self { _m1: PhantomData }
|
||||
}
|
||||
|
||||
fn process(&self, _inp: Self::Input) -> Self::Output {
|
||||
err::todoval()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user