Documentation
¶
Overview ¶
Package addressbook provides CLI commands for address book management operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressBookMergerFunc ¶
AddressBookMergerFunc merges a changeset's address book to the main address book.
type AddressBookMigratorFunc ¶
AddressBookMigratorFunc migrates the address book to the new datastore format.
type AddressBookRemoverFunc ¶
AddressBookRemoverFunc removes a changeset's address book entries from the main address book.
type Config ¶
type Config struct {
// Logger is the logger to use for command output. Required.
Logger logger.Logger
// Domain is the domain context for the commands. Required.
Domain domain.Domain
// Deps holds optional dependencies that can be overridden.
// If fields are nil, production defaults are used.
Deps Deps
}
Config holds the configuration for addressbook commands.
type Deps ¶
type Deps struct {
// AddressBookMerger merges a changeset's address book to the main address book.
// Default: envDir.MergeChangesetAddressBook
AddressBookMerger AddressBookMergerFunc
// AddressBookMigrator migrates the address book to the new datastore format.
// Default: envDir.MigrateAddressBook
AddressBookMigrator AddressBookMigratorFunc
// AddressBookRemover removes a changeset's address book entries.
// Default: envDir.RemoveChangesetAddressBook
AddressBookRemover AddressBookRemoverFunc
}
Deps holds the injectable dependencies for addressbook commands. All fields are optional; nil values will use production defaults.
Click to show internal directories.
Click to hide internal directories.