ygggo/internal/transport/transport.go

19 lines
383 B
Go
Raw Normal View History

2021-07-18 23:03:28 +01:00
/*
* Copyright (c) 2021 Neil Alexander
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
2021-07-07 18:15:07 +01:00
package transport
import (
"net"
)
type Transport interface {
Dial(host string) (net.Conn, error)
Listener() net.Listener
2021-07-07 18:15:07 +01:00
}