Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RelayServerConfig RelayConfig `yaml:"relay_config"` WsServerConfig WsConfig `yaml:"wsserver_config"` RedisServerConfig RedisConfig `yaml:"redis_config"` MetricServerConfig MetricConfig `yaml:"metric_config"` }
func LoadConfig ¶
type MetricConfig ¶
type RedisConfig ¶
type RelayConfig ¶
type WsConfig ¶
type WsConfig struct { HeartbeatInterval int `yaml:"heartbeat_interval"` // in seconds CheckSessionExpireInterval int `yaml:"check_session_expire_interval"` // in seconds PendingSessionCacheTime int `yaml:"pending_session_cache_time"` // in seconds MessageCacheTime int `yaml:"message_cache_time"` // AllowedOrigins []string `yaml:"allowed_origins"` }
Click to show internal directories.
Click to hide internal directories.