14 lines
213 B
Go
14 lines
213 B
Go
|
package protocol
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
)
|
||
|
|
||
|
type Identifier string
|
||
|
|
||
|
type Protocol interface {
|
||
|
Identifier() Identifier
|
||
|
Available(ctx context.Context, addr string) (bool, error)
|
||
|
Operations(addr string) Operations
|
||
|
}
|