storage

package
v0.0.0-...-3e40f46 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

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

func NewDriver

func NewDriver(conf ejrnl.Config, password string) (*Driver, error)

NewDriver creates a new storage driver from the specified config and password.

func (*Driver) Init

func (d *Driver) Init() error

Init creates the new journal

func (*Driver) List

func (d *Driver) List() (map[time.Time]string, error)

List returns the index of all the entries stored in the journal

func (*Driver) Read

func (d *Driver) Read(id string) (ejrnl.Entry, error)

func (*Driver) Write

func (d *Driver) Write(entry ejrnl.Entry) error

type NeedsInit

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

func (*NeedsInit) Error

func (s *NeedsInit) Error() string

Jump to

Keyboard shortcuts

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