Documentation
¶
Index ¶
Constants ¶
View Source
const ( CheckPreKeysInterval = 200 * time.Millisecond LowPreKeysLimit = 3 NumPreKeysToRequest = 4 ForwardingTimeout = 2000 * time.Millisecond MinForwardingRetryInterval = 200 * time.Millisecond UserTransferInterval = 100 * time.Millisecond ChatNumberDomain = "lantern.io" )
Variables ¶
This section is empty.
Functions ¶
func NewNoopAttachmentsManager ¶
func NewNoopAttachmentsManager() attachments.Manager
func TestService ¶
func TestService(t *testing.T, testMultiClientMessaging bool, testRateLimiting bool, presenceRepo presence.Repository, buildServiceAndDB func(t *testing.T, serverID int) (service.Service, db.DB))
TestService runs a comprehensive test of the service API. If testMultiClientMessaging is false, it will omit scenarios that involve multiple recipient clients of the same messages. This is primarily used to avoid testing those scenarios on the membroker, which can't support them.
Types ¶
type KeyPair ¶
type KeyPair struct {
Public identity.PublicKey
Private PrivateKey
}
KeyPair is a key pair with a Curve25519 public key and the corresponding Ed25519 private key
func GenerateKeyPair ¶
GenerateKeyPair generates a new random KeyPair
Click to show internal directories.
Click to hide internal directories.