outbound_detour.go 472 B

1234567891011121314151617181920212223
  1. package json
  2. import (
  3. "encoding/json"
  4. )
  5. type OutboundDetourConfig struct {
  6. ProtocolValue string `json:"protocol"`
  7. TagValue string `json:"tag"`
  8. SettingsValue json.RawMessage `json:"settings"`
  9. }
  10. func (this *OutboundDetourConfig) Protocol() string {
  11. return this.ProtocolValue
  12. }
  13. func (this *OutboundDetourConfig) Tag() string {
  14. return this.TagValue
  15. }
  16. func (this *OutboundDetourConfig) Settings() []byte {
  17. return []byte(this.SettingsValue)
  18. }