Documentation
¶
Index ¶
- type Record
- type Records
- func (p *Records) ByGroup(group string) *Records
- func (p *Records) ByTitle(title string) *Records
- func (p *Records) DeleteGroup(group string)
- func (p *Records) DeleteTitle(title string)
- func (p *Records) GetRecords() []*Record
- func (p *Records) GroupLike(groupLike string) *Records
- func (p *Records) Groups() []string
- func (p *Records) Latest() *Record
- func (p *Records) Len() int
- func (p *Records) Less(i, j int) bool
- func (p *Records) Put(record *Record)
- func (p *Records) Sort()
- func (p *Records) Swap(i, j int)
- func (p *Records) TitleLike(titleLike string) *Records
- func (p *Records) Titles() []string
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Records ¶
type Records struct {
// contains filtered or unexported fields
}
func (*Records) DeleteGroup ¶
func (*Records) DeleteTitle ¶
func (*Records) GetRecords ¶ added in v1.3.0
type Store ¶
type Store interface {
GetRecords() []*Record
Save() (string, error)
ListGroups() ([]string, error)
ListTitles() ([]string, error)
ListAll() ([]*Record, error)
Filter(groupLike, titleLike string) ([]*Record, error)
Put(group, title, password, describe string) (*Record, error)
Get(title string) (*Record, error)
GetHistory(title string) ([]*Record, error)
DeleteTitle(title string) error
DeleteGroup(group string) error
}
Click to show internal directories.
Click to hide internal directories.