config.go 415 B

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