2021-07-24 13:55:42 +00:00
|
|
|
package core
|
|
|
|
|
2021-07-31 18:46:06 +00:00
|
|
|
// source is an entity that can provide a stream, statically or dynamically.
|
2021-07-24 13:55:42 +00:00
|
|
|
type source interface {
|
2021-07-04 16:13:49 +00:00
|
|
|
OnSourceAPIDescribe() interface{}
|
2021-07-24 13:55:42 +00:00
|
|
|
}
|
|
|
|
|
2021-07-31 18:46:06 +00:00
|
|
|
// sourceStatic is an entity that can provide a static stream.
|
|
|
|
type sourceStatic interface {
|
|
|
|
source
|
2021-07-24 13:55:42 +00:00
|
|
|
Close()
|
|
|
|
}
|