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: 2 Imported by: 0

Documentation

Overview

Type EntityFactoryImpl must exist even before first generating models, because they are used in appenv.go and apienv.go

Type EntityType and function Val must exist even before first generating models, because they are used in entityservicesimpl.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityFactoryImpl

type EntityFactoryImpl struct {
}

EntityFactoryImpl create Entities by name

func (EntityFactoryImpl) DoWithAll

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

DoWithAll

	Method ranges over entities and calls entityFunc with each entity. You can serve parameters with each call to entityFunc.
    Attention! Maybe params should be pointers to change things outside entityFunc.

func (EntityFactoryImpl) Get

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

Get return entity struct by name

func (EntityFactoryImpl) GetSlice

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

GetSlice return slice of entity struct by name

type EntityType

type EntityType int

EntityType type of entity

func ParseEntityType

func ParseEntityType(s string) EntityType

ParseEntityType ...

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