diff options
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) +} |