Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: continued refactoring to support dynamic pipelines.
Signed-off-by: Andrew Neudegg <andrew.neudegg@finbourne.com>
- Loading branch information
1 parent
504a486
commit 93efd6e
Showing
3 changed files
with
32 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package configs | ||
|
||
import ( | ||
"github.com/andrewneudegg/delta/pkg/pipelines/definitions" | ||
) | ||
|
||
// AppSettings is application level configuration. | ||
type AppSettings struct{} | ||
|
||
// Container wraps all subconfiguration | ||
type Container struct { | ||
// ApplicationSettings apply to the whole app. | ||
ApplicationSettings AppSettings `yaml:"app"` | ||
// SourceConfigs defines the behaviours of sinks/bridges. | ||
Pipeline []definitions.PipelineNode `yaml:"pipeline"` | ||
} | ||
|
||
// FromBytes will load a container from bytes. | ||
func FromBytes(b []byte) (Container, error) { | ||
return Container{}, nil | ||
} | ||
|
||
// FromFile will load a container from file. | ||
func FromFile(s string) (Container, error) { | ||
return Container{}, nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters