Skip to content

Commit

Permalink
code compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Rackmil authored and Harry Rackmil committed Jan 16, 2025
1 parent 38cc7ed commit 9b3abec
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"type": "string",
"const": "skeleton"
}
// TODO: add all other possible fields from your config object
},
"required": ["dataSource"], // TODO: add all other required fields here
"required": ["dataSource"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func TestValidSkeletonConfig(t *testing.T) {

sourceSpecificConfig, err := skeleton.GetSourceSpecificConfig(sourceConfig)
assert.NoError(t, err)
assert.NotNil(t, sourceSpecificConfig)

// TODO: write some asserts to check that the fields on sourceSpecificConfig have the values you'd expect
panic("implement me")
t.Fatalf("implement me")
}
7 changes: 5 additions & 2 deletions apps/lib/data_provider/sources/skeleton/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
)

type skeletonDataSource struct {
SkeletonConfig SkeletonConfig
// TODO: set any necessary parameters
}

Expand All @@ -15,10 +16,12 @@ func newSkeletonDataSource(sourceConfig types.DataProviderSourceConfig) *skeleto
}

// TODO: add any necessary initialization code
panic("implement me")
return &skeletonDataSource{
SkeletonConfig: skeletonConfig,
}
}

func (r skeletonDataSource) RunDataSource(updatesCh chan types.DataSourceUpdateMap) {
// TODO: Write all logic to fetch datapoints and add to updatesCh
// TODO: Write all logic to fetch data points and report them to updatesCh
panic("implement me")
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ import (

func TestSkeletonDataSource(t *testing.T) {
// TODO: write some unit tests for your data source
t.Fatalf("implement me")
}

0 comments on commit 9b3abec

Please sign in to comment.