Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppCfg ¶
type AppCfg struct { Host string Port int ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration HttpTimeout time.Duration CorsAllowedHosts []string StoragePath string RoomList []string RoomListMap map[string]bool UserPrintLimit int }
AppCfg stores app related configs
type DBCfg ¶
type DBCfg struct { Host string Username string Password string Name string Port int MaxIdleConn int MaxOpenConn int MaxConnLifetime time.Duration }
DBCfg holds the database configuration
type SessionCfg ¶
type SessionCfg struct {
SessionKey string
}
SessionCfg stores session related configs
Click to show internal directories.
Click to hide internal directories.