diff options
author | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-05-21 20:38:21 +0300 |
---|---|---|
committer | Alexander Kiryukhin <a.kiryukhin@mail.ru> | 2022-05-21 20:38:21 +0300 |
commit | 81389df9484c28dfcec1cf7592b8d0f8b7e4e8e1 (patch) | |
tree | 7a7d0440481e45b999e828b1e5ba2b28129658bc /transport/transport.go | |
parent | d4708a3665e546eea57611b17441ad9b8c89e9a4 (diff) |
Improvments. Breaking changes
Diffstat (limited to 'transport/transport.go')
-rw-r--r-- | transport/transport.go | 14 |
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) +} |