Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionCache ¶
ConnectionCache stores the configurations loaded from the configuration files about the connection cache
func LoadConnectionCache ¶
func LoadConnectionCache() ConnectionCache
LoadConnectionCache returns a connection cache instance to it's calling library.
type Server ¶
type Server struct {
Port string
}
Server is a struct that stores the go server related configuration information
func LoadServer ¶
func LoadServer() Server
LoadServer returns a server instance to it's calling library.
type Session ¶
type Session struct { // defines length of a session Length time.Duration // defines maximum number of session per user MaxPerUser int }
Session holds config for session
type WSClient ¶
type WSClient struct { ReadQBuffer int WriteQBuffer int WriteWait time.Duration PongWait time.Duration PingPeriod time.Duration ReadMessageSize int64 }
WSClient struct holds and provides web socket related configuration information
func LoadWSClient ¶
func LoadWSClient() WSClient
LoadWSClient provides web socket related configuration information
Click to show internal directories.
Click to hide internal directories.