mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 02:15:40 +08:00
22 lines
340 B
Go
22 lines
340 B
Go
|
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
|
||
|
}
|