store

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is the place to record information or keep files about a project

func New

func New(projectPath string) *Store

New returns an instance of Store

func (*Store) Get added in v0.8.0

func (s *Store) Get(key string) ([]byte, error)

Get retrieves a byte slice for a key

func (*Store) GetString added in v0.8.0

func (s *Store) GetString(key string) (string, error)

GetString retrieves a string for a key

func (*Store) HasFileChanged

func (s *Store) HasFileChanged(path string) (bool, error)

HasFileChanged detects whether a path has changed since the last call to RecordFileChange(). Defaults to true if path doesn't exists or RecordFileChange() was never called.

func (*Store) RecordFileChange

func (s *Store) RecordFileChange(path string) error

RecordFileChange stores the modification time of a file.

func (*Store) Set added in v0.8.0

func (s *Store) Set(key string, value []byte) error

Set stores a byte slice for a key

func (*Store) SetString added in v0.8.0

func (s *Store) SetString(key string, value string) error

SetString stores a string for a key

Jump to

Keyboard shortcuts

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