proc

package
v0.0.0-...-9cf5684 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package proc provided provided interfaces for working with models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoltDB

type BoltDB struct {
	DB *bolt.DB
}

BoltDB store

func NewBoltDB

func NewBoltDB(dbFile string) (*BoltDB, error)

NewBoltDB makes persistent boltdb based store

func (BoltDB) DeleteEntry

func (b BoltDB) DeleteEntry(link string) error

DeleteEntry - delete a record and associated access

func (BoltDB) LoadAccess

func (b BoltDB) LoadAccess(link string) (*[]model.Access, error)

LoadAccess - get all accesses

func (BoltDB) LoadEntry

func (b BoltDB) LoadEntry() (*[]model.Entry, error)

LoadEntry - get all entries

func (BoltDB) SaveAccess

func (b BoltDB) SaveAccess(item model.Access) (*model.Access, error)

SaveAccess - add new or update an existing record

func (BoltDB) SaveEntry

func (b BoltDB) SaveEntry(item model.Entry) (*model.Entry, error)

SaveEntry - add new or update an existing record

type Conf

type Conf struct {
	System struct {
	} `yaml:"system"`
}

Conf defines config

type Processor

type Processor struct {
	Conf  *Conf
	Store *BoltDB
}

Processor is ...

Jump to

Keyboard shortcuts

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