database

package
v0.0.0-...-38445c1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase() *Database

func (*Database) Create

func (db *Database) Create(id ID, value interface{})

func (*Database) Delete

func (db *Database) Delete(id ID)

func (*Database) List

func (db *Database) List() []ID

func (*Database) Retrieve

func (db *Database) Retrieve(id ID) (interface{}, bool)

func (*Database) Update

func (db *Database) Update(id ID, value interface{})

type ID

type ID string

func NewID

func NewID() ID

Jump to

Keyboard shortcuts

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