10 lines
207 B
Go
10 lines
207 B
Go
package input
|
|
|
|
type Source interface {
|
|
// Name returns the name of the source.
|
|
Name() string
|
|
|
|
// Events returns a channel that will be used to send events to the source.
|
|
Events() (<-chan Event, error)
|
|
}
|