mobileapi

package
v0.0.0-...-5c87083 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 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 Database

type Database struct {
	FileName string
	// contains filtered or unexported fields
}

Database a go-hash database.

func ReadDatabase

func ReadDatabase(filePath, password string) (*Database, error)

ReadDatabase reads a go-hash database.

func (*Database) Iter

func (db *Database) Iter() *GroupIterator

Iter returns a GroupIterator which can be used to iterate over the groups in this database.

type Entry

type Entry struct {
	// contains filtered or unexported fields
}

Entry is a wrapper around a LoginInfo instance. LoginInfo cannot be exposed directly due to the gomobile tool's limitations.

func (*Entry) Description

func (entry *Entry) Description() string

Description of this Entry.

func (*Entry) Name

func (entry *Entry) Name() string

Name of this Entry.

func (*Entry) Password

func (entry *Entry) Password() string

Password of this Entry.

func (*Entry) UpdatedAt

func (entry *Entry) UpdatedAt() int64

UpdatedAt the instance at which this entry was last updated. As epoch-milliseconds since 1970-01-01T00:00:00.

func (*Entry) Url

func (entry *Entry) Url() string

Url of this Entry.

func (*Entry) Username

func (entry *Entry) Username() string

Username of this Entry.

type EntryIterator

type EntryIterator struct {
	Group string
	// contains filtered or unexported fields
}

EntryIterator allows iterating over all LoginInfo entries in a group.

func (*EntryIterator) Next

func (iter *EntryIterator) Next() *Entry

Next returns the next Entry, if any, or nil if none is available.

type GroupIterator

type GroupIterator struct {
	// contains filtered or unexported fields
}

GroupIterator allows iterating over all groups in the database.

func (*GroupIterator) Next

func (iter *GroupIterator) Next() *EntryIterator

Next returns the next EntryIterator, if any, or nil if none is available.

Jump to

Keyboard shortcuts

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