mirror of
https://github.com/Noratrieb/terustform.git
synced 2026-01-16 01:15:10 +01:00
restructure modules
This commit is contained in:
parent
b86292fadb
commit
7e479e7a28
10 changed files with 114 additions and 114 deletions
|
|
@ -1,17 +1,15 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use terustform::{
|
||||
framework::{
|
||||
datasource::{self, DataSource},
|
||||
provider::Provider,
|
||||
AttrPath, DResult, StringValue, ValueModel,
|
||||
},
|
||||
datasource::{self, DataSource},
|
||||
provider::Provider,
|
||||
values::Value,
|
||||
AttrPath, DResult, StringValue, ValueModel,
|
||||
};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
terustform::serve(&ExampleProvider {}).await
|
||||
terustform::start(&ExampleProvider {}).await
|
||||
}
|
||||
|
||||
pub struct ExampleProvider {}
|
||||
|
|
@ -28,7 +26,7 @@ impl Provider for ExampleProvider {
|
|||
|
||||
struct ExampleDataSource {}
|
||||
|
||||
#[derive(terustform::DataSourceModel)]
|
||||
#[derive(terustform::Model)]
|
||||
struct ExampleDataSourceModel {
|
||||
name: StringValue,
|
||||
meow: StringValue,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue