glirc-2.39.0.1: Console IRC client
Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Configuration.ServerSettings

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

Instances

Instances details
Show ServerSettings Source # 
Instance details

Defined in Client.Configuration.ServerSettings

data HookConfig Source #

Hook name and configuration arguments

Constructors

HookConfig Text [Text] 

Instances

Instances details
Show HookConfig Source # 
Instance details

Defined in Client.Configuration.ServerSettings

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

SaslScram ScramDigest (Maybe Text) Text Secret

SASL SCRAM-SHA-256 RFC7677 - authzid authcid password

SaslEcdh (Maybe Text) Text Secret

SASL ECDH-X25519-CHALLENGE - authzid authcid private-key

Instances

Instances details
Show SaslMechanism Source # 
Instance details

Defined in Client.Configuration.ServerSettings

Secrets

data Secret Source #

Constructors

SecretText Text

Constant text

SecretCommand (NonEmpty Text)

Command to generate text

Instances

Instances details
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

Instances details
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

Instances

Instances details
Show Fingerprint Source # 
Instance details

Defined in Client.Configuration.ServerSettings

data TlsMode Source #

Constructors

TlsYes 
TlsNo 
TlsStart 

Instances

Instances details
Show TlsMode Source # 
Instance details

Defined in Client.Configuration.ServerSettings

Regex wrapper

data KnownRegex Source #

Regular expression matched with original source to help with debugging.

Constructors

KnownRegex Text Regex 

Instances

Instances details
Show KnownRegex Source # 
Instance details

Defined in Client.Configuration.ServerSettings