Documentation
¶
Index ¶
- type ObjectTypes
- func (ot *ObjectTypes) AddObjectType(objectType universe.ObjectType, updateDB bool) error
- func (ot *ObjectTypes) AddObjectTypes(objectTypes []universe.ObjectType, updateDB bool) error
- func (ot *ObjectTypes) CreateObjectType(objectTypeID umid.UMID) (universe.ObjectType, error)
- func (ot *ObjectTypes) FilterObjectTypes(predicateFn universe.ObjectTypesFilterPredicateFn) map[umid.UMID]universe.ObjectType
- func (ot *ObjectTypes) GetObjectType(objectTypeID umid.UMID) (universe.ObjectType, bool)
- func (ot *ObjectTypes) GetObjectTypes() map[umid.UMID]universe.ObjectType
- func (ot *ObjectTypes) Initialize(ctx types.LoggerContext) error
- func (ot *ObjectTypes) Load() error
- func (ot *ObjectTypes) RegisterAPI(r *gin.Engine)
- func (ot *ObjectTypes) RemoveObjectType(objectType universe.ObjectType, updateDB bool) (bool, error)
- func (ot *ObjectTypes) RemoveObjectTypes(objectTypes []universe.ObjectType, updateDB bool) (bool, error)
- func (ot *ObjectTypes) Save() error
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
Click to show internal directories.
Click to hide internal directories.