object_types

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectTypes

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

func NewObjectTypes

func NewObjectTypes(db database.DB) *ObjectTypes

func (*ObjectTypes) AddObjectType

func (ot *ObjectTypes) AddObjectType(objectType universe.ObjectType, updateDB bool) error

func (*ObjectTypes) AddObjectTypes

func (ot *ObjectTypes) AddObjectTypes(objectTypes []universe.ObjectType, updateDB bool) error

func (*ObjectTypes) CreateObjectType

func (ot *ObjectTypes) CreateObjectType(objectTypeID umid.UMID) (universe.ObjectType, error)

func (*ObjectTypes) FilterObjectTypes

func (ot *ObjectTypes) FilterObjectTypes(predicateFn universe.ObjectTypesFilterPredicateFn) map[umid.UMID]universe.ObjectType

func (*ObjectTypes) GetObjectType

func (ot *ObjectTypes) GetObjectType(objectTypeID umid.UMID) (universe.ObjectType, bool)

func (*ObjectTypes) GetObjectTypes

func (ot *ObjectTypes) GetObjectTypes() map[umid.UMID]universe.ObjectType

func (*ObjectTypes) Initialize

func (ot *ObjectTypes) Initialize(ctx types.LoggerContext) error

func (*ObjectTypes) Load

func (ot *ObjectTypes) Load() error

func (*ObjectTypes) RegisterAPI

func (ot *ObjectTypes) RegisterAPI(r *gin.Engine)

func (*ObjectTypes) RemoveObjectType

func (ot *ObjectTypes) RemoveObjectType(objectType universe.ObjectType, updateDB bool) (bool, error)

func (*ObjectTypes) RemoveObjectTypes

func (ot *ObjectTypes) RemoveObjectTypes(objectTypes []universe.ObjectType, updateDB bool) (bool, error)

func (*ObjectTypes) Save

func (ot *ObjectTypes) Save() error

Jump to

Keyboard shortcuts

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