github.com/imannamdari/v2ray-core/v5@v5.0.5/transport/internet/udp/dispatcher.go (about) 1 package udp 2 3 import ( 4 "context" 5 6 "github.com/imannamdari/v2ray-core/v5/common" 7 "github.com/imannamdari/v2ray-core/v5/common/buf" 8 "github.com/imannamdari/v2ray-core/v5/common/net" 9 ) 10 11 type DispatcherI interface { 12 common.Closable 13 Dispatch(ctx context.Context, destination net.Destination, payload *buf.Buffer) 14 }