github.com/ipfans/trojan-go@v0.11.0/tunnel/mux/config.go (about) 1 package mux 2 3 import "github.com/ipfans/trojan-go/config" 4 5 type MuxConfig struct { 6 Enabled bool `json:"enabled" yaml:"enabled"` 7 IdleTimeout int `json:"idle_timeout" yaml:"idle-timeout"` 8 Concurrency int `json:"concurrency" yaml:"concurrency"` 9 } 10 11 type Config struct { 12 Mux MuxConfig `json:"mux" yaml:"mux"` 13 } 14 15 func init() { 16 config.RegisterConfigCreator(Name, func() interface{} { 17 return &Config{ 18 Mux: MuxConfig{ 19 Enabled: false, 20 IdleTimeout: 30, 21 Concurrency: 8, 22 }, 23 } 24 }) 25 }