aboutsummaryrefslogtreecommitdiff
path: root/transport/transport.go
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-21 20:38:21 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-05-21 20:38:21 +0300
commit81389df9484c28dfcec1cf7592b8d0f8b7e4e8e1 (patch)
tree7a7d0440481e45b999e828b1e5ba2b28129658bc /transport/transport.go
parentd4708a3665e546eea57611b17441ad9b8c89e9a4 (diff)
Improvments. Breaking changes
Diffstat (limited to 'transport/transport.go')
-rw-r--r--transport/transport.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/transport/transport.go b/transport/transport.go
new file mode 100644
index 0000000..2a54295
--- /dev/null
+++ b/transport/transport.go
@@ -0,0 +1,14 @@
+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)
+}