mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
19 lines
400 B
Go
19 lines
400 B
Go
package adapter
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
|
|
M "github.com/sagernet/sing/common/metadata"
|
|
N "github.com/sagernet/sing/common/network"
|
|
)
|
|
|
|
type Outbound interface {
|
|
Type() string
|
|
Tag() string
|
|
Network() []string
|
|
N.Dialer
|
|
NewConnection(ctx context.Context, conn net.Conn, destination M.Socksaddr) error
|
|
NewPacketConnection(ctx context.Context, conn N.PacketConn, destination M.Socksaddr) error
|
|
}
|