Debian Codegraph @

lib/autoconfig/constants.go

raw
1 package autoconfig
2
3 type protocol uint8
4
5 const (
6 // ProtocolUnknown is returned when determining the proper protocol was
7 // not possible
8 ProtocolUnknown protocol = 255
9 // ProtocolJMAP is returned when the given server uses the JMAP protocol
10 ProtocolJMAP protocol = iota
11 // ProtocolIMAP is returned when the given server uses the IMAP protocol
12 ProtocolIMAP
13 )
14
15 type encryption uint8
16
17 const (
18 // EncryptionUnknown is returned when determining the proper encryption
19 // was not possible
20 EncryptionUnknown encryption = 255
21 // EncryptionSTARTTLS is returned when the given connection uses
22 // STARTTLS
23 EncryptionSTARTTLS encryption = iota
24 // EncryptionTLS is returned when the given connection uses a TLS
25 // wrapped connection
26 EncryptionTLS
27 // EncryptionInsecure is returned when a connection is not encrypted
28 EncryptionInsecure
29 )