package
1.8.12
Repository: https://github.com/protonmail/proton-bridge.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.

# Functions

ComputeMessageFlagsByLabels returns flags based on labels.
No description provided by the author
No description provided by the author
No description provided by the author
CreateTransportWithDialer creates an http.Transport that uses the given dialer to make TLS connections.
HashMailboxPassword expectects 128bit long salt encoded by standard base64.
IsSystemLabel checks if a label is a pre-defined system label.
LeastUsedColor is intended to return color for creating a new inbox or label.
No description provided by the author
NewBasicTLSDialer returns a new BasicTLSDialer.
No description provided by the author
NewConnectionObserver is a helper function to create a new connection observer from two callbacks.
NewMessage initializes a new message.
NewPinningTLSDialer constructs a new dialer which only returns tcp connections to servers which present known certificates.
NewProxyTLSDialer constructs a dialer which provides a proxy-managing layer on top of an underlying dialer.
No description provided by the author
No description provided by the author

# Constants

Message actions.
Message actions.
Message actions.
User status.
Add new labels to current ones.
User status.
Address types.
System labels.
System labels.
System labels.
System labels.
Delinquent values.
No description provided by the author
No description provided by the author
Send message package types.
Send message package types.
Content types.
Content types.
Content types.
Content types.
ConversationIDDomain is used as a placeholder for conversation reference headers to improve compatibility with various clients.
Delinquent values.
Address types.
User status.
Delinquent values.
Address statuses.
User status.
No description provided by the author
No description provided by the author
Draft actions.
Draft actions.
Draft actions.
System labels.
ClientType is required by API.
Address statuses.
Send message package types.
Item has been created.
Item has been deleted.
Flags for event refresh.
Flags for event refresh.
Flags for event refresh.
Item has been updated.
For messages: flags have been updated.
Message flag definitions.
Message flag definitions.
Spam flags.
Spam flags.
Message flag definitions.
Message flag definitions.
Spam flags.
Message flag definitions.
Message flag definitions.
Message flag masks.
INTERNAL, AUTO are immutable.
Message flag masks.
Message flag masks.
Message flag masks.
Message flag definitions.
Spam flags.
Spam flags.
Draft flags.
Draft flags.
Message flag definitions.
Message flag definitions.
Message flag definitions.
Message flag definitions.
Message flag definitions.
Draft flags.
Spam flags.
Spam flags.
Spam flags.
Role values.
System labels.
InternalIDDomain is used as a placeholder for reference/message ID headers to improve compatibility with various clients.
Send message package types.
Do nothing.
Address HasKeys values.
System labels.
System labels.
Address Send values.
No description provided by the author
25 MB total limit.
Header types.
Header types.
Header types.
Header types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Address HasKeys values.
Delinquent values.
Address Send values.
No description provided by the author
Address types.
Delinquent values.
Role values.
Role values.
Send message package types.
Send message package types.
PMSignature values.
PMSignature values.
PMSignature values.
Address types.
Header types.
Header types.
No description provided by the author
No description provided by the author
Remove specified labels from current ones.
Replace current labels with new ones.
Address Send values.
System labels.
Send signature types.
Send signature types.
Send signature types.
Sort types.
Sort types.
Sort types.
Sort types.
Sort types.
Sort types.
Sort types.
Sort types.
System labels.
System labels.
User status.
TLSReportURI is the address where TLS reports should be sent.
No description provided by the author
No description provided by the author
System labels.
No description provided by the author
No description provided by the author
No description provided by the author
Key flags.
Key flags.
User status.
ClientType is required by API.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
ErrNoKeyringAvailable represents an error caused by a keyring being nil or having no entities.
ErrTLSMismatch indicates that no TLS fingerprint match could be found.
No description provided by the author
No description provided by the author
LabelColors provides the RGB values of the available label colors.
nolint[gochecknoglobals].
TrustedAPIPins contains trusted public keys of the protonmail API and proxies.

# Structs

Address represents a user's address.
No description provided by the author
Attachment represents a message attachment.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BasicTLSDialer implements TLSDialer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DraftReq defines paylod for creating drafts.
No description provided by the author
No description provided by the author
Event represents changes since the last check.
EventAddress is an address that has changed.
EventItem is an item that has changed.
EventLabel is a label that has changed.
EventMessage is a message that has changed.
EventMessageUpdated contains changed fields for an updated message.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
KeySalt contains id and salt for key.
Label for message.
No description provided by the author
No description provided by the author
No description provided by the author
Message structure.
No description provided by the author
No description provided by the author
No description provided by the author
MessagesCount contains message counts for one label.
MessagesFilter contains fields to filter messages.
PinningTLSDialer wraps a TLSDialer to check fingerprints after connecting and to report errors if the fingerprint check fails.
No description provided by the author
ProxyTLSDialer wraps a TLSDialer to switch to a proxy if the initial dial fails.
No description provided by the author
ReportBugReq stores data for report.
No description provided by the author
No description provided by the author
No description provided by the author
User holds the user details.

# Interfaces

Client defines the interface of a PMAPI client.
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

AddressList is a list of addresses.
No description provided by the author
No description provided by the author
EventAction is the action that created a change.
No description provided by the author
LabelsOperation is the operation to apply to labels.
PackageFlag for send message package types.
No description provided by the author
No description provided by the author
No description provided by the author
SignatureFlag for send signature types.
No description provided by the author