jsonrpc2/transport/transport.go

15 lines
205 B
Go
Raw Normal View History

2022-05-21 20:38:21 +03:00
package transport
import (
"context"
"io"
)
type Transport interface {
Run(ctx context.Context, resolver Resolver) error
}
type Resolver interface {
Resolve(context.Context, io.Reader, io.Writer)
}