Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul M Fox committed Jan 1, 2016
2 parents 569bebe + 28dd612 commit 4a63eaa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ type Grapher interface {
Provide(inputs ...interface{}) error
Inject(fn interface{}, args ...interface{})
Assert() (valid bool, errors []string)
AddDatasource(...interface{}) error
}

//////////////////////////////////////////////
Expand Down Expand Up @@ -53,3 +54,8 @@ func Inject(fn interface{}, args ...interface{}) {
func Assert() (valid bool, errors []string) {
return graph.Assert()
}

// Add zero or more datasources to the global graph
func AddDatasource(ds ...interface{}) error {
return graph.AddDatasource(ds)
}

0 comments on commit 4a63eaa

Please sign in to comment.