instances

package
v1.1.224 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(id string) error

* * Delete * @param id string * @return error *

func Get added in v1.1.210

func Get(id string, dest any) (bool, error)

* * Get * @param id string, dest any * @return (bool, error) *

func Set added in v1.1.210

func Set(id, tag string, obj any) error

* * Set * @param id string, tag string, obj any * @return error *

Types

type Instance added in v1.1.209

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

func Define

func Define(db *jdb.DB, schema, name string) (*Instance, error)

func (*Instance) Delete added in v1.1.209

func (s *Instance) Delete(id string) error

* * Delete * @param id string * @return error *

func (*Instance) Get added in v1.1.209

func (s *Instance) Get(id string, dest any) (bool, error)

* * Load * @param id string, dest any * @return bool, error *

func (*Instance) Set added in v1.1.209

func (s *Instance) Set(id, tag string, obj any) error

* * Save * @param id string, tag string, definition []byte * @return error *

type Store added in v1.1.209

type Store interface {
	Get(id string, dest any) (bool, error)
	Set(id, tag string, obj any) error
	Delete(id string) error
}

Jump to

Keyboard shortcuts

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