~bfiedler/go-threema

e1e2805e7fd6220db28ac9665b3c4c63f608f754 — Ben Fiedler 1 year, 7 months ago d4f4531
Note that clients are safe for concurrent use
1 files changed, 4 insertions(+), 0 deletions(-)

M client/client.go
M client/client.go => client/client.go +4 -0
@@ 88,6 88,8 @@ type client struct {

// A simple client has no private key. It can only send text messages, which
// are encrypted using a key held by Threema.
//
// It is safe for concurrent use by multiple goroutines.
type SimpleClient struct {
	client
}


@@ 96,6 98,8 @@ type SimpleClient struct {
//
// It automatically caches ID->PubKey lookups as adivsed in the Threema.Gateway
// documentation.
//
// It is safe for concurrent use by multiple goroutines.
type E2EClient struct {
	client