manager

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SrvApi

type SrvApi interface {
	Init(gitUrl string) error
	All() ([]*data.Record, error)
	Olds(time time.Time) ([]*data.Record, error)
	Groups() ([]string, error)
	Titles() ([]string, error)
	Filter(groupLike, titleLike string) ([]*data.Record, error)
	Delete(group, title string) error
	Put(group, title, password, describe string) error
	Get(title string) (*data.Record, error)
	History(title string) ([]*data.Record, error)
	Load() error
	Save() error
	Empty() (bool, error)
	SetStoreCrypto(crypto util.CryptoApi)
	SetRecordKey(key []byte)
	ResetKey(newKey []byte) error
}

func New

func New() SrvApi

Jump to

Keyboard shortcuts

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