Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBackend ¶
RegisterBackend registers a backend.
Types ¶
type Interface ¶
type Interface interface { // LoadAccount loads the account from the backend store. LoadAccount(domain string) (*types.Account, error) // Name returns the display name of the backend. Name() string // SaveAccount saves the account to the backend store. SaveAccount(*types.Account) error }
Interface represents a backend.
func GetBackend ¶
GetBackend creates an instance of the named backend, or nil if the name is not known. The error return is only used if the named provider was known but failed to initialize.
func InitBackend ¶
InitBackend creates an instance of the named backend.
Click to show internal directories.
Click to hide internal directories.