Documentation
¶
Index ¶
- Constants
- Variables
- func CreateDB(filename string) error
- type APIKey
- type APIKeyValue
- type APIValue
- type DB
- func (db *DB) APIClear()
- func (db *DB) APIGet(key string) *APIKeyValue
- func (db *DB) APIGetALL() []*APIKeyValue
- func (db *DB) APIGetALLIF(f func(APIKeyValue) bool) []*APIKeyValue
- func (db *DB) APIGetALLKeys() []*APIKey
- func (db *DB) APIGetALLValues() []*APIValue
- func (db *DB) APIGetIF(f func(APIKeyValue) bool) *APIKeyValue
- func (db *DB) APIGetKey(key string) *APIKey
- func (db *DB) APIGetValue(key string) *APIValue
- func (db *DB) APIRemove(key string) bool
- func (db *DB) APIRemoveAllIF(f func(APIKeyValue) bool) int
- func (db *DB) APIRemoveIF(f func(APIKeyValue) bool) bool
- func (db *DB) APISet(key string, value any)
- func (s *DB) Data() DBdata
- func (s *DB) ExistsKey(key string) bool
- func (db *DB) ImplementAPI()
- func (s *DB) JS() *goja.Runtime
- func (s *DB) Save() error
- type DBdata
- type KeyValue
Constants ¶
View Source
const ApiJS = `` /* 7425-byte string literal not displayed */
Variables ¶
Functions ¶
Types ¶
type APIKeyValue ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewDBFromFile ¶
func (*DB) APIGet ¶
func (db *DB) APIGet(key string) *APIKeyValue
func (*DB) APIGetALL ¶
func (db *DB) APIGetALL() []*APIKeyValue
func (*DB) APIGetALLIF ¶
func (db *DB) APIGetALLIF(f func(APIKeyValue) bool) []*APIKeyValue
func (*DB) APIGetALLKeys ¶
func (*DB) APIGetALLValues ¶
func (*DB) APIGetIF ¶
func (db *DB) APIGetIF(f func(APIKeyValue) bool) *APIKeyValue
func (*DB) APIGetValue ¶
func (*DB) APIRemoveAllIF ¶
func (db *DB) APIRemoveAllIF(f func(APIKeyValue) bool) int
func (*DB) APIRemoveIF ¶
func (db *DB) APIRemoveIF(f func(APIKeyValue) bool) bool
func (*DB) ImplementAPI ¶
func (db *DB) ImplementAPI()
Click to show internal directories.
Click to hide internal directories.