info

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

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoTableName   = "info"
	ConfigTableName = "config"
)

Variables

View Source
var NoResultError = errors.New("no results")

Functions

This section is empty.

Types

type Db

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

func NewDb

func NewDb(dbPath string) *Db

func (*Db) Delete

func (db *Db) Delete(m *Info) error

func (*Db) GetAll

func (db *Db) GetAll() ([]*Info, error)

func (*Db) GetByEncname

func (db *Db) GetByEncname(encname string) (*Info, error)

func (*Db) GetById

func (db *Db) GetById(sid string) (*Info, error)

func (*Db) GetByName

func (db *Db) GetByName(name string) (*Info, error)

func (*Db) GetPrefixName

func (db *Db) GetPrefixName(prefix string) ([]*Info, error)

func (*Db) Insert

func (db *Db) Insert(m *Info) error

func (*Db) Update

func (db *Db) Update(m *Info) error

type Info

type Info struct {
	ID       int64
	Name     string
	Modified time.Time
	Size     int64
	Perms    int
	User     int

	Encname   string
	EncFormat int
	Key       string
	IV        string

	SHA1      string
	SHA256    string
	EncSHA1   string
	EncSHA256 string
}

Jump to

Keyboard shortcuts

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