github.com/xmplusdev/xmcore@v1.8.11-0.20240412132628-5518b55526af/infra/conf/loopback.go (about) 1 package conf 2 3 import ( 4 "github.com/xmplusdev/xmcore/proxy/loopback" 5 "google.golang.org/protobuf/proto" 6 ) 7 8 type LoopbackConfig struct { 9 InboundTag string `json:"inboundTag"` 10 } 11 12 func (l LoopbackConfig) Build() (proto.Message, error) { 13 return &loopback.Config{InboundTag: l.InboundTag}, nil 14 }