Versions in this module Expand all Collapse all v1 v1.0.18 Oct 26, 2016 Changes in this version + func CheckPrevPointersAndGetUnpreved(thread *chat1.ThreadView) ([]chat1.MessagePreviousPointer, libkb.ChatThreadConsistencyError) + func DownloadAsset(ctx context.Context, log logger.Logger, params chat1.S3Params, ...) error + func NewConversationSource(g *libkb.GlobalContext, typ string, boxer *Boxer, storage *storage.Storage, ...) libkb.ConversationSource + type Boxer struct + func NewBoxer(kbCtx utils.KeybaseContext, tlf keybase1.TlfInterface, ...) *Boxer + func (b *Boxer) BoxMessage(ctx context.Context, msg chat1.MessagePlaintext, ...) (*chat1.MessageBoxed, error) + func (b *Boxer) UnboxMessage(ctx context.Context, finder KeyFinder, boxed chat1.MessageBoxed) (chat1.MessageUnboxed, libkb.ChatUnboxingError) + func (b *Boxer) UnboxMessages(ctx context.Context, boxed []chat1.MessageBoxed) (unboxed []chat1.MessageUnboxed, err error) + func (b *Boxer) UnboxThread(ctx context.Context, boxed chat1.ThreadViewBoxed, convID chat1.ConversationID) (thread chat1.ThreadView, err error) + type Decrypter interface + Decrypt func(ciphertext io.Reader, encKey, verifyKey []byte) (plaintext io.Reader) + type Encrypter interface + Encrypt func(plaintext io.Reader) (ciphertext io.Reader, err error) + EncryptKey func() []byte + EncryptedLen func(size int) int + VerifyKey func() []byte + type HybridConversationSource struct + func NewHybridConversationSource(g *libkb.GlobalContext, b *Boxer, storage *storage.Storage, ...) *HybridConversationSource + func (s *HybridConversationSource) Clear(convID chat1.ConversationID, uid gregor1.UID) error + func (s *HybridConversationSource) Pull(ctx context.Context, convID chat1.ConversationID, uid gregor1.UID, ...) (chat1.ThreadView, []*chat1.RateLimit, error) + func (s *HybridConversationSource) Push(ctx context.Context, convID chat1.ConversationID, uid gregor1.UID, ...) (chat1.MessageUnboxed, error) + type KeyFinder interface + Find func(ctx context.Context, tlf keybase1.TlfInterface, tlfName string, tlfPublic bool) (keybase1.GetTLFCryptKeysRes, error) + func NewKeyFinder() KeyFinder + type KeyFinderImpl struct + func (k *KeyFinderImpl) Find(ctx context.Context, tlf keybase1.TlfInterface, tlfName string, tlfPublic bool) (keybase1.GetTLFCryptKeysRes, error) + type ProgressReporter func(bytesCompleted, bytesTotal int) + type PutS3Result struct + Bucket string + Endpoint string + Path string + Region string + Size int64 + func PutS3(ctx context.Context, log logger.Logger, r io.Reader, size int64, ...) (*PutS3Result, error) + type RemoteConversationSource struct + func NewRemoteConversationSource(g *libkb.GlobalContext, b *Boxer, ri chat1.RemoteInterface) *RemoteConversationSource + func (s *RemoteConversationSource) Clear(convID chat1.ConversationID, uid gregor1.UID) error + func (s *RemoteConversationSource) Pull(ctx context.Context, convID chat1.ConversationID, uid gregor1.UID, ...) (chat1.ThreadView, []*chat1.RateLimit, error) + func (s *RemoteConversationSource) Push(ctx context.Context, convID chat1.ConversationID, uid gregor1.UID, ...) (chat1.MessageUnboxed, error) + type SignDecrypter struct + func NewSignDecrypter() *SignDecrypter + func (s *SignDecrypter) Decrypt(r io.Reader, encKey, verifyKey []byte) io.Reader + type SignEncrypter struct + func NewSignEncrypter() *SignEncrypter + func (s *SignEncrypter) Encrypt(r io.Reader) (io.Reader, error) + func (s *SignEncrypter) EncryptKey() []byte + func (s *SignEncrypter) EncryptedLen(size int) int + func (s *SignEncrypter) VerifyKey() []byte