Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs PostgresProtocolConfig

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module juptune.postgres.protocol.connection;

struct PostgresProtocolConfig
{
    /++ FUNCTIONS ++/
    
    ///
    PostgresProtocolConfig withMaxBufferSize(ulong value);
    ///
    PostgresProtocolConfig withMinBufferSize(ulong value);
    ///
    PostgresProtocolConfig withReadTimeout(Duration value);
    ///
    PostgresProtocolConfig withWriteTimeout(Duration value);
    
    /++ VARIABLES ++/
    
    /// The maximum amount of buffer space (for reading and writing) that's allowed to be dynamically allocated when sending/reading messages. 
    ulong maxBufferSpace;
    /// The minimum amount of buffer space (for reading and writing) to keep allocated at all times. 
    ulong minBufferSpace;
    /// Timeout for any socket read operations. 
    Duration readTimeout;
    /// Timeout for any socket write operations. 
    Duration writeTimeout;
}

Documentation

General configuration for the low-level PostresProtocolstruct.

Functions

Name Description
withMaxBufferSize
withMinBufferSize
withReadTimeout
withWriteTimeout

Variables

Name Description
maxBufferSpace

The maximum amount of buffer space (for reading and writing) that's allowed to be dynamically allocated when sending/reading messages.

minBufferSpace

The minimum amount of buffer space (for reading and writing) to keep allocated at all times.

readTimeout

Timeout for any socket read operations.

writeTimeout

Timeout for any socket write operations.