memory

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository() *Repository

func (*Repository) Add

func (r *Repository) Add(m *module.Module) error

func (*Repository) Get

func (r *Repository) Get(id uuid.UUID) (m *module.Module, err error)

func (*Repository) Reload

func (r *Repository) Reload(id uuid.UUID) (err error)

func (*Repository) Update

func (r *Repository) Update(id uuid.UUID, m *module.Module) (err error)

func (*Repository) UpdateOption

func (r *Repository) UpdateOption(id uuid.UUID, key, value string) (err error)

Jump to

Keyboard shortcuts

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