glirc-2.36: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Configuration.ServerSettings

Contents

Description

This module defines the settings used for an individual IRC connection. These are static settings that are not expected change over the lifetime of a connection.

Synopsis

Server settings type

data ServerSettings Source #

Static server-level settings

Constructors

ServerSettings 

Fields

data HookConfig Source #

Hook name and configuration arguments

Constructors

HookConfig Text [Text] 

Lenses

SASL Mechanisms

data SaslMechanism Source #

SASL mechanisms and configuration data.

Constructors

SaslPlain (Maybe Text) Text Secret

SASL PLAIN RFC4616 - authzid authcid password

SaslEcdsa (Maybe Text) Text FilePath

SASL NIST - https://github.com/kaniini/ecdsatool - authzid keypath

SaslExternal (Maybe Text)

SASL EXTERNAL RFC4422 - authzid

Secrets

data Secret Source #

Constructors

SecretText Text

Constant text

SecretCommand (NonEmpty Text)

Command to generate text

Instances
Show Secret Source # 
Instance details

Defined in Client.Configuration.ServerSettings

HasSpec Secret Source # 
Instance details

Defined in Client.Configuration.ServerSettings

loadSecrets :: ServerSettings -> IO ServerSettings Source #

Run the secret commands in a server configuration replacing them with secret text. Throws SecretException

Defaults

defaultServerSettings :: ServerSettings Source #

The defaults for server settings.

TLS settings

data UseTls Source #

Security setting for network connection

Constructors

UseTls

TLS connection

UseInsecureTls

TLS connection without certificate checking

UseInsecure

Plain connection

Instances
Show UseTls Source # 
Instance details

Defined in Client.Configuration.ServerSettings

data Fingerprint Source #

Fingerprint used to validate server certificates.

Constructors

FingerprintSha1 ByteString

SHA-1 fingerprint

FingerprintSha256 ByteString

SHA-2 256-bit fingerprint

FingerprintSha512 ByteString

SHA-2 512-bit fingerprint

Regex wrapper

data KnownRegex Source #

Regular expression matched with original source to help with debugging.

Constructors

KnownRegex Text Regex