database

package
v0.0.0-...-5388ef9 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDatabase

func NewDatabase() (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Delete

func (db *DB) Delete(name string) error

func (*DB) Save

func (db *DB) Save(sc Script) error

func (*DB) ScriptByName

func (db *DB) ScriptByName(name string) (*Script, bool, error)

func (*DB) Scripts

func (db *DB) Scripts() ([]Script, error)

type Script

type Script struct {
	Name     string
	Category string
	Content  []byte
}

Jump to

Keyboard shortcuts

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