Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type HexString ¶
type HexString []byte
func (HexString) MarshalText ¶
func (*HexString) UnmarshalText ¶
type Network ¶
type Network struct { Revision uint64 `toml:"-"` IRC IRC // Time interval after which a session without any activity is terminated // by the server. The client should send a PING every minute. SessionExpiration Duration // Enforced cooloff between two messages sent by a user. Set to 0 to disable throttling. PostMessageCooloff Duration // TrustedBridges is a map from X-Bridge-Auth header to human-readable // name. For all bridges which send a configured header, the // X-Forwarded-For header is respected. TrustedBridges map[string]string // CaptchaURL points to an instance of robustirc/captchasrv CaptchaURL string // CaptchaHMACSecret is a 32 byte secret key (use e.g. openssl // rand -hex 32 to generate) which must match the key specified in // the -hmac_secret_key flag for the robustirc/captchasrv // instance. CaptchaHMACSecret HexString // CaptchaRequiredForLogin forces users to solve a captcha to // solve before they can login to the IRC network. CaptchaRequiredForLogin bool MaxSessions uint64 MaxChannels uint64 // Banned is a map from remote address to ban reason, managed via the GLINE // IRC command. Banned map[string]string // WhitelistedOrigins contains HTTP origins // (e.g. https://webchat.example.com) which are whitelisted for cross-origin // HTTP requests. WhitelistedOrigins map[string]bool }
Network is the network configuration, i.e. the top level.
func FromString ¶
Click to show internal directories.
Click to hide internal directories.