new injection strategies
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package injection
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Backend represents a text injection method
|
||||
type Backend interface {
|
||||
Name() string
|
||||
Available() error
|
||||
Inject(ctx context.Context, text string, timeout time.Duration) error
|
||||
}
|
||||
Reference in New Issue
Block a user