Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FunctionStore ¶
type FunctionStore interface {
Get(name string) (*models.Function, error)
Create(models.Function) error
Delete(models.Function) error
GetAll() ([]*models.Function, error)
}
FunctionStore defines database operations for account.
type FunctionStoreSQLite ¶
type FunctionStoreSQLite struct {
// contains filtered or unexported fields
}
func GetFunctionStore ¶
func GetFunctionStore(db *sql.DB) *FunctionStoreSQLite
Returns the singleton Store
func (*FunctionStoreSQLite) Create ¶
func (s *FunctionStoreSQLite) Create(f models.Function) error
Creates a function in the Db
func (*FunctionStoreSQLite) Delete ¶
func (s *FunctionStoreSQLite) Delete(f models.Function) error
Delete removes a function form the DB
Click to show internal directories.
Click to hide internal directories.