Documentation
¶
Index ¶
- Variables
- func Follow(account *Account, friend *Friend) error
- func RemoveFile(account *Account, file *File) error
- func RemoveFriend(account *Account, friend *Friend) error
- func Unfollow(account *Account, friend *Friend) error
- type Account
- func (a *Account) Email() (string, error)
- func (a *Account) Export() ([]byte, error)
- func (a *Account) Fingerprint() (string, error)
- func (a *Account) Identity() (string, error)
- func (a *Account) Lock()
- func (a *Account) Locked() bool
- func (a *Account) Name() (string, error)
- func (a *Account) String() string
- func (a *Account) Unlock(passphrase string) error
- type File
- func AddFile(account *Account, r io.Reader, name string, recipients []*Friend) (*File, error)
- func GetFile(account *Account, fpr, name string) (*File, error)
- func GetVersion(account *Account, fpr, name, version string) (*File, error)
- func ListFiles(account *Account, fingerprint string, after time.Time, limit int) []*File
- type Friend
- type KeyRing
- type Peer
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPassphraseConfirmation = errors.New("Passphrase confirmation is not identical") ErrPassphraseRequired = errors.New("Passphrase must be specified") ErrIncorrectPassphrase = errors.New("Incorrect passphrase") ErrAccountLocked = errors.New("Account is locked") ErrNoIdentity = errors.New("Can't find identity") )
View Source
var (
AccountsRoot = path.Join(userConfigDir, "mau")
)
Functions ¶
func RemoveFile ¶
func RemoveFriend ¶
Types ¶
type Account ¶
type Account struct { Path string // contains filtered or unexported fields }
func ListAccounts ¶
func NewAccount ¶
func (*Account) Fingerprint ¶
type File ¶
type File struct { Path string // contains filtered or unexported fields }
type Friend ¶
type Friend struct {
// contains filtered or unexported fields
}
func ListFollows ¶
func (*Friend) Fingerprint ¶
type KeyRing ¶
func ListFriends ¶
func (*KeyRing) FindByFingerprint ¶
func (*KeyRing) FriendById ¶
func (*KeyRing) FriendsSet ¶
type Peer ¶
type Peer struct { Account *Account // contains filtered or unexported fields }
func (*Peer) HandlePeerFound ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.