genmodels

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package genmodels contains all entities and must also have a struct which implements entitymodel.EntityFactory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityFactoryImpl

type EntityFactoryImpl struct{}

func NewEntityFactoryImpl added in v0.1.7

func NewEntityFactoryImpl() EntityFactoryImpl

func (EntityFactoryImpl) DoWithAllEntities added in v0.1.7

func (ef EntityFactoryImpl) DoWithAllEntities(entityList interface{}, entityFunc entitymodel.DoWithEntityFunc, params ...interface{})

func (EntityFactoryImpl) GetEntity added in v0.1.7

func (ef EntityFactoryImpl) GetEntity(entityName string) (interface{}, error)

GetEntity return entity struct by name

func (EntityFactoryImpl) GetEntitySlice added in v0.1.7

func (ef EntityFactoryImpl) GetEntitySlice(entityName string) (interface{}, error)

GetEntitySlice return slice of entity struct by name

type EntityType

type EntityType int

EntityType type of entity

const (
	EntityTypeUndefined EntityType = iota
	EntityTypeAccount
	EntityTypeContact
	EntityTypeContactAddress
	EntityTypeMaxi
	EntityTypeUser
)

func EntityTypes

func EntityTypes() []EntityType

EntityTypes ...

func ParseEntityType

func ParseEntityType(s string) EntityType

ParseEntityType ...

func (EntityType) EntityName added in v0.1.6

func (et EntityType) EntityName() string

EntityName the value used in html template

func (EntityType) Val

func (et EntityType) Val() string

Val the value used in html template

Jump to

Keyboard shortcuts

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