Port worker page
This commit is contained in:
parent
36f275c290
commit
3bfae9c0ad
7 changed files with 121 additions and 63 deletions
|
|
@ -11,6 +11,7 @@ use crate::{
|
|||
#[derive(Clone)]
|
||||
pub struct WorkerInfo {
|
||||
pub secret: String,
|
||||
pub first_seen: OffsetDateTime,
|
||||
pub last_seen: OffsetDateTime,
|
||||
pub status: WorkerStatus,
|
||||
}
|
||||
|
|
@ -19,6 +20,7 @@ impl WorkerInfo {
|
|||
pub fn new(secret: String, last_seen: OffsetDateTime, status: WorkerStatus) -> Self {
|
||||
Self {
|
||||
secret,
|
||||
first_seen: OffsetDateTime::now_utc(),
|
||||
last_seen,
|
||||
status,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue