zObject

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseObject

type BaseObject struct {
	Id interface{}
}

func (*BaseObject) GetId

func (o *BaseObject) GetId() interface{}

func (*BaseObject) SetId

func (o *BaseObject) SetId(id interface{})

type Object

type Object interface {
	GetId() interface{}
	SetId(id interface{})
}

type ObjectManager

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

func (*ObjectManager) AddObject

func (om *ObjectManager) AddObject(key interface{}, obj Object) error

func (*ObjectManager) ClearAllObject

func (om *ObjectManager) ClearAllObject()

func (*ObjectManager) GetAllObject

func (om *ObjectManager) GetAllObject() []Object

func (*ObjectManager) GetObject

func (om *ObjectManager) GetObject(key interface{}) (interface{}, error)

func (*ObjectManager) GetObjectsCount

func (om *ObjectManager) GetObjectsCount() int32

func (*ObjectManager) ObjectsRange

func (om *ObjectManager) ObjectsRange(f func(key, value interface{}) bool)

func (*ObjectManager) RemoveObject

func (om *ObjectManager) RemoveObject(key interface{}) error

Jump to

Keyboard shortcuts

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