go-emlid/reach/client/protocol/protocol.go

19 lines
320 B
Go
Raw Normal View History

2024-07-30 14:28:39 +02:00
package protocol
import (
"context"
)
type Identifier string
type Protocol interface {
Identifier() Identifier
Available(ctx context.Context, addr string) (Operations, error)
Operations(addr string) Operations
}
type Operations interface {
Connect(ctx context.Context) error
Close(ctx context.Context) error
}