Versions in this module Expand all Collapse all v1 v1.0.14 Jul 30, 2020 Changes in this version + var ErrMailboxExists = errors.New("mailbox already exists") + type Archive struct + Cid string + Deals []Deal + type Archives struct + Current Archive + History []Archive + type Bucket struct + Archives Archives + CreatedAt int64 + DNSRecord string + EncKey string + Key string + Name string + Path string + UpdatedAt int64 + func (b *Bucket) GetEncKey() []byte + type BucketOption func(*BucketOptions) + func WithNewBucketKey(k []byte) BucketOption + func WithNewBucketName(n string) BucketOption + func WithNewBucketToken(t thread.Token) BucketOption + type BucketOptions struct + Key []byte + Name string + Token thread.Token + type Buckets struct + func NewBuckets(tc *dbc.Client, pgc *powc.Client, col *mdb.FFSInstances, ...) (*Buckets, error) + func (b *Buckets) ArchiveStatus(ctx context.Context, key string) (ffs.JobStatus, string, error) + func (b *Buckets) ArchiveWatch(ctx context.Context, key string, ch chan<- string) error + func (b *Buckets) Close() error + func (b *Buckets) IsArchivingEnabled() bool + func (b *Buckets) New(ctx context.Context, dbID thread.ID, key string, pth path.Path, ...) (*Bucket, error) + func (b *Buckets) SaveSafe(ctx context.Context, dbID thread.ID, bucket *Bucket, opts ...Option) error + type Collection struct + func (c *Collection) Create(ctx context.Context, dbID thread.ID, instance interface{}, opts ...Option) (coredb.InstanceID, error) + func (c *Collection) Delete(ctx context.Context, dbID thread.ID, id string, opts ...Option) error + func (c *Collection) Get(ctx context.Context, dbID thread.ID, key string, instance interface{}, ...) error + func (c *Collection) List(ctx context.Context, dbID thread.ID, query *db.Query, instance interface{}, ...) (interface{}, error) + func (c *Collection) Save(ctx context.Context, dbID thread.ID, instance interface{}, opts ...Option) error + type Deal struct + Miner string + ProposalCid string + type InboxMessage struct + Body string + CreatedAt int64 + From string + ID string + ReadAt int64 + Signature string + To string + type Mail struct + Inbox Collection + Sentbox Collection + func NewMail(tc *dbc.Client) (*Mail, error) + func (m *Mail) NewMailbox(ctx context.Context, opts ...Option) (thread.ID, error) + type Option func(*Options) + func WithToken(t thread.Token) Option + type Options struct + Token thread.Token + type SentboxMessage struct + Body string + CreatedAt int64 + From string + ID string + Signature string + To string Other modules containing this package github.com/textileio/textile/v2