contact

package
v1.8.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store interface {
	// Add adds the contact to the owner's contact list. This call is idempotent
	// and will not fail on duplicate insertion.
	Add(ctx context.Context, owner *user.DataContainerID, contact string) error

	// BatchAdd adds a batch of contacts to the owner's contact list. This call is
	// idempotent and will not fail on duplicate insertion.
	BatchAdd(ctx context.Context, owner *user.DataContainerID, contacts []string) error

	// Remove removes the contact to the owner's contact list. This call is
	// idempotent and will not fail on deletion of a non-existant entry.
	Remove(ctx context.Context, owner *user.DataContainerID, contact string) error

	// BatchDelete removes a batch of contacts to the owner's contact list. This
	// call is idempotent and will not fail on duplicate insertion.
	BatchRemove(ctx context.Context, owner *user.DataContainerID, contacts []string) error

	// Get gets a page of contacts from an owner's contact list.
	Get(ctx context.Context, owner *user.DataContainerID, limit uint32, pageToken []byte) (contacts []string, nextPageToken []byte, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL