github.com/ipfans/trojan-go@v0.11.0/proxy/config.go (about)

     1  package proxy
     2  
     3  import "github.com/ipfans/trojan-go/config"
     4  
     5  type Config struct {
     6  	RunType  string `json:"run_type" yaml:"run-type"`
     7  	LogLevel int    `json:"log_level" yaml:"log-level"`
     8  	LogFile  string `json:"log_file" yaml:"log-file"`
     9  }
    10  
    11  func init() {
    12  	config.RegisterConfigCreator(Name, func() interface{} {
    13  		return &Config{
    14  			LogLevel: 1,
    15  		}
    16  	})
    17  }