pub struct SessionSignalsRepository { /* private fields */ }Implementations§
Source§impl SessionSignalsRepository
impl SessionSignalsRepository
pub async fn backfill_session_geo( &self, reader: Option<&GeoIpReader>, batch_size: i64, ) -> Result<u64>
Source§impl SessionSignalsRepository
impl SessionSignalsRepository
pub fn new( db: &DbPool, owner: DynSessionStore, events: DynAnalyticsEventStore, content: DynContentCatalogStats, ) -> Self
pub async fn get_endpoint_sequence( &self, session_id: &SessionId, ) -> Result<Vec<String>>
pub async fn get_request_timestamps( &self, session_id: &SessionId, ) -> Result<Vec<DateTime<Utc>>>
pub async fn has_analytics_events(&self, session_id: &SessionId) -> Result<bool>
pub async fn get_total_content_pages(&self) -> Result<i64>
pub async fn count_engagement_events_by_fingerprint( &self, fingerprint_hash: &str, window_days: i64, ) -> Result<i64>
pub async fn count_sessions_missing_geo(&self) -> Result<i64>
Trait Implementations§
Source§impl Clone for SessionSignalsRepository
impl Clone for SessionSignalsRepository
Auto Trait Implementations§
impl !RefUnwindSafe for SessionSignalsRepository
impl !UnwindSafe for SessionSignalsRepository
impl Freeze for SessionSignalsRepository
impl Send for SessionSignalsRepository
impl Sync for SessionSignalsRepository
impl Unpin for SessionSignalsRepository
impl UnsafeUnpin for SessionSignalsRepository
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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