13 lines
153 B
Go
13 lines
153 B
Go
package event
|
|
|
|
import (
|
|
"context"
|
|
"io"
|
|
)
|
|
|
|
type Subscription interface {
|
|
io.Closer
|
|
Connect(ctx context.Context, connStr string) error
|
|
Next() error
|
|
}
|