14 lines
228 B
Go
14 lines
228 B
Go
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
|
|
}
|