config.go 321 B

123456789101112131415161718192021
  1. package ws
  2. type Config struct {
  3. ConnectionReuse bool
  4. Path string
  5. Pto string
  6. Cert string
  7. PrivKey string
  8. }
  9. func (this *Config) Apply() {
  10. effectiveConfig = this
  11. }
  12. var (
  13. effectiveConfig = &Config{
  14. ConnectionReuse: true,
  15. Path: "",
  16. Pto: "",
  17. }
  18. )