jsonstore

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Object

func Object[Ptr Initializer](namespace namespace) Ptr

Types

type Initializer

type Initializer interface {
	Initialize()
}

type MapStore

type MapStore[VT any] struct {
	*xsync.MapOf[string, VT]
}

func Store

func Store[VT any](namespace namespace) MapStore[VT]

func (*MapStore[VT]) Initialize

func (s *MapStore[VT]) Initialize()

func (MapStore[VT]) MarshalJSON

func (s MapStore[VT]) MarshalJSON() ([]byte, error)

func (*MapStore[VT]) UnmarshalJSON

func (s *MapStore[VT]) UnmarshalJSON(data []byte) error

type ObjectStore

type ObjectStore[Pointer Initializer] struct {
	// contains filtered or unexported fields
}

func (*ObjectStore[Ptr]) Initialize

func (obj *ObjectStore[Ptr]) Initialize()

func (ObjectStore[Ptr]) MarshalJSON

func (obj ObjectStore[Ptr]) MarshalJSON() ([]byte, error)

func (*ObjectStore[Ptr]) UnmarshalJSON

func (obj *ObjectStore[Ptr]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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