modulepackage
0.4.0
Repository: https://github.com/protonmail/go-proton-api.git
Documentation: pkg.go.dev
# README
Go Proton API
This repository holds Go Proton API, a Go library implementing a client and development server for (a subset of) the Proton REST API.
The license can be found in the LICENSE file.
For the contribution policy, see CONTRIBUTING.
Environment variables
Most of the integration tests run locally. The ones that interact with Proton servers require the following environment variables set:
GO_PROTON_API_TEST_USERNAME
GO_PROTON_API_TEST_PASSWORD
Contribution
The library is maintained by Proton AG, and is not actively looking for contributors.
# Packages
No description provided by the author
# Functions
No description provided by the author
ClientIDFromContext returns true if this context was marked as originating from a client.
No description provided by the author
EncryptRFC822 encrypts the given message literal as a PGP attachment.
No description provided by the author
InsecureTransport returns an http.Transport with InsecureSkipVerify set to true.
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
No description provided by the author
No description provided by the author
No description provided by the author
NewListener returns a new DropListener.
NewNetCtl returns a new ctl with all fields set to true.
No description provided by the author
New returns a new pool.
No description provided by the author
NewTicker returns a new ticker that ticks at a random time between period and period+jitter.
No description provided by the author
No description provided by the author
WithClient marks this context as originating from the client with the given ID.
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
No description provided by the author
No description provided by the author
# Constants
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
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
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
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
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
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
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
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
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
No description provided by the author
DefaultAppVersion is the default app version used to communicate with the API.
DefaultHostURL is the default host of the API.
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
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
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
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
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
No description provided by the author
2^1 = 2 means the key is still in use (i.e.
2^0 = 1 means the key is not compromised (i.e.
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
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
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
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
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
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
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
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
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
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
No description provided by the author
1<<8 - 1 = 255.
1<<0 = 1.
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
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
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
No description provided by the author
No description provided by the author
Deprecated, but still used.
No description provided by the author
No description provided by the author
# Variables
CharsetReader returns a charset decoder for the given charset.
No description provided by the author
No description provided by the author
ErrJobCancelled indicates the job was cancelled.
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
APIError represents an error returned by the API.
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO: Only personal events have MemberID; should we have a different type for that?.
No description provided by the author
No description provided by the author
TODO: Support invitations.
No description provided by the author
No description provided by the author
Client is the proton client.
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
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
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
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
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
Listener wraps a net.Listener.
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
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
No description provided by the author
ctl can be used to control whether a dialer can dial, and whether the resulting connection can read or write.
NetError represents a network error.
No description provided by the author
No description provided by the author
Pool is a worker pool that handles input of type In and returns results of type Out.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SequentialScheduler downloads the attachments one by one.
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
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
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
AttachmentAllocator abstract the attachment download buffer creation.
Option represents a type that can be used to configure the manager.
Scheduler allows the user to specify how the attachment data for the message should be downloaded.
# Type aliases
No description provided by the author
APIBool is the boolean type used by the API (0 or 1).
No description provided by the author
AuthHandler is given any new auths that are returned from the API due to an unexpected auth refresh.
Bool is a convenience type for boolean values; it converts from APIBool to Go's builtin bool type.
TODO: What is this?.
No description provided by the author
No description provided by the author
TODO: What is this?.
No description provided by the author
TODO: What is this?.
TODO: What is this?.
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
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
Handler is a generic function that can be registered for a certain event (e.g.
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
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
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
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
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
No description provided by the author