Documentation ¶
Index ¶
- type Context
- type Contexts
- type Db
- type DirectoryChange
- type Pattern
- type Patterns
- type Session
- type Sessions
- type Storage
- func (o *Storage) BuildFilePath(fileName string) (ret string)
- func (o *Storage) BuildFilePathByName(name string) (ret string)
- func (o *Storage) Configure() (err error)
- func (o *Storage) Delete(name string) (err error)
- func (o *Storage) Exists(name string) (ret bool)
- func (o *Storage) GetNames() (ret []string, err error)
- func (o *Storage) ListNames() (err error)
- func (o *Storage) Load(name string) (ret []byte, err error)
- func (o *Storage) LoadAsJson(name string, item interface{}) (err error)
- func (o *Storage) Rename(oldName, newName string) (err error)
- func (o *Storage) Save(name string, content []byte) (err error)
- func (o *Storage) SaveAsJson(name string, item interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Db ¶
type Db struct { Dir string Patterns *Patterns Sessions *Sessions Contexts *Contexts EnvFilePath string }
func (*Db) IsEnvFileExists ¶
func (*Db) LoadEnvFile ¶
type DirectoryChange ¶
type Patterns ¶
func (*Patterns) GetPattern ¶
GetPattern finds a pattern by name and returns the pattern as an entry or an error
func (*Patterns) PrintLatestPatterns ¶
type Sessions ¶
type Sessions struct {
*Storage
}
func (*Sessions) GetOrCreateSession ¶
func (*Sessions) SaveSession ¶
type Storage ¶
func (*Storage) BuildFilePath ¶
func (*Storage) BuildFilePathByName ¶
func (*Storage) GetNames ¶
GetNames finds all patterns in the patterns directory and enters the id, name, and pattern into a slice of Entry structs. it returns these entries or an error
func (*Storage) LoadAsJson ¶
func (*Storage) SaveAsJson ¶
Click to show internal directories.
Click to hide internal directories.