websocket.go 565 B

1234567891011121314151617
  1. package config
  2. import "time"
  3. type websocket struct {
  4. ConnectSize int `mapstructure:"connect_size"`
  5. MessageSize int `mapstructure:"message_size"`
  6. HeartbeatWait time.Duration `mapstructure:"heartbeat_wait"`
  7. FirstReadWait time.Duration `mapstructure:"first_read_wait"`
  8. // ReadWait time.Duration `mapstructure:"read_wait"`
  9. WriteWait time.Duration `mapstructure:"write_wait"`
  10. ReadBufferSize int `mapstructure:"read_buffer_size"`
  11. WriteBufferSize int `mapstructure:"write_buffer_size"`
  12. NatsUrl string `mapstructure:"nats_url"`
  13. }