🎉 init
This commit is contained in:
commit
812c4adb15
16 changed files with 4631 additions and 0 deletions
16
src/sheepd_core/config.rs
Normal file
16
src/sheepd_core/config.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use owl::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct AgentConfig {
|
||||
pub home: String,
|
||||
pub token: String,
|
||||
}
|
||||
|
||||
impl AgentConfig {
|
||||
pub fn new(home_server: &str, token: &str) -> Self {
|
||||
Self {
|
||||
home: home_server.to_string(),
|
||||
token: token.to_string(),
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue