17 lines
339 B
Go
17 lines
339 B
Go
package transport
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Transport interface {
|
|
Detect(ctx context.Context) (bool, error)
|
|
Connect(ctx context.Context) error
|
|
Disconnect() error
|
|
IsConnected() bool
|
|
Send(data []byte) error
|
|
SendLossy(data []byte) error
|
|
DeviceLabel() string
|
|
ClipboardConfig() (int, int, bool) // maxChars, delayMs, supportsBatch
|
|
}
|