objects

package
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: GPL-3.0 Imports: 17 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Object

type Object struct {
	Byte     []byte
	Category string

	Changelog jsondiff.Patch

	Created time.Time
	Updated time.Time
	User    *authentication.User
	// contains filtered or unexported fields
}

func (*Object) AddLocal added in v0.0.110

func (obj *Object) AddLocal(format iformat.Format, data []byte) error

func (*Object) AddLocalKey added in v0.0.137

func (obj *Object) AddLocalKey(key string, data []byte) error

func (*Object) ChangeDetected

func (obj *Object) ChangeDetected() bool

func (*Object) Diff

func (obj *Object) Diff(definition []byte) bool

func (*Object) Exists

func (obj *Object) Exists() bool

func (*Object) Find

func (obj *Object) Find(format iformat.Format) error

func (*Object) FindMany added in v0.0.2

func (obj *Object) FindMany(format iformat.Format) ([]iobjects.ObjectInterface, error)

func (*Object) GetDefinition

func (obj *Object) GetDefinition() map[string]any

func (*Object) GetDefinitionByte

func (obj *Object) GetDefinitionByte() []byte

func (*Object) GetDiff added in v0.0.114

func (obj *Object) GetDiff() jsondiff.Patch

func (*Object) Propose added in v0.0.119

func (obj *Object) Propose(format iformat.Format, data []byte) error

func (*Object) RemoveLocal added in v0.0.114

func (obj *Object) RemoveLocal(format iformat.Format) (bool, error)

func (*Object) RemoveLocalKey added in v0.0.137

func (obj *Object) RemoveLocalKey(key string) (bool, error)

func (*Object) Wait added in v0.0.119

func (obj *Object) Wait(format iformat.Format, data []byte) error

Jump to

Keyboard shortcuts

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