refactor: Modular inbounds/outbounds

This commit is contained in:
世界
2025-01-13 15:14:29 +08:00
parent 9f7683818f
commit e233fd4fe5
152 changed files with 3114 additions and 2924 deletions
+21
View File
@@ -0,0 +1,21 @@
package inbound
type Adapter struct {
inboundType string
inboundTag string
}
func NewAdapter(inboundType string, inboundTag string) Adapter {
return Adapter{
inboundType: inboundType,
inboundTag: inboundTag,
}
}
func (a *Adapter) Type() string {
return a.inboundType
}
func (a *Adapter) Tag() string {
return a.inboundTag
}