Documentation ¶
Overview ¶
Modules dependency: Necesita USDA y METRICS para funcionar
Package user contains the list of administrative user for the system. All users have accesses, into a profile and even extended access based upon table records. It needs base xmodule.
Index ¶
- Constants
- func CompositeNameEnglish(ctx *base.Datasource, quantity string, ingredientkey int, metrickey int, ...) string
- func CompositeNameSpanish(ctx *base.Datasource, quantity string, ingredientkey int, metrickey int, ...) string
- func ConvertToSI(ctx *base.Datasource, ingrediente int, scantidad string, medida int, ...) (float64, int, string)
- func CreateStructureIngredientByData(sitecontext applications.Datasource, data xdominion.XRecordDef, ...) base.Structure
- func CreateStructureIngredientByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
- func CreateStructurePasilloByData(sitecontext applications.Datasource, data xdominion.XRecordDef, ...) base.Structure
- func CreateStructurePasilloByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
- func GetIngredientCompositeName(ctx *base.Datasource, quantity string, ingredientkey int, metrickey int, ...) string
- func Setup(ds applications.Datasource, prefix string) ([]string, error)
- func StartContext(ds applications.Datasource, ctx *context.Context) error
- func Synchronize(ds applications.Datasource, prefix string) ([]string, error)
- type StructureIngredient
- func (sm *StructureIngredient) Clone() base.Structure
- func (sm *StructureIngredient) ComplementData(sitecontext applications.Datasource)
- func (sm *StructureIngredient) GetData() *xdominion.XRecord
- func (sm *StructureIngredient) IsAuthorized(sitecontext applications.Datasource, site string, language string, ...) bool
- type StructurePasillo
- func (sm *StructurePasillo) Clone() base.Structure
- func (sm *StructurePasillo) ComplementData(sitecontext applications.Datasource)
- func (sm *StructurePasillo) GetData() *xdominion.XRecord
- func (sm *StructurePasillo) IsAuthorized(sitecontext applications.Datasource, site string, language string, ...) bool
Constants ¶
const ( MODULEID = "ingredient" VERSION = "0.0.1" TRANSLATIONTHEME = "ingredient" TRANSLATIONTHEMEAISLE = "ingaisle" )
Variables ¶
This section is empty.
Functions ¶
func CompositeNameEnglish ¶
func CompositeNameSpanish ¶
func ConvertToSI ¶
func CreateStructureIngredientByData ¶
func CreateStructureIngredientByData(sitecontext applications.Datasource, data xdominion.XRecordDef, lang language.Tag) base.Structure
func CreateStructureIngredientByKey ¶
func CreateStructureIngredientByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
func CreateStructurePasilloByData ¶
func CreateStructurePasilloByData(sitecontext applications.Datasource, data xdominion.XRecordDef, lang language.Tag) base.Structure
func CreateStructurePasilloByKey ¶
func CreateStructurePasilloByKey(sitecontext applications.Datasource, key int, lang language.Tag) base.Structure
func Setup ¶
func Setup(ds applications.Datasource, prefix string) ([]string, error)
InitModule is called during the init phase to link the module with the system adds tables and caches to ctx::database
func StartContext ¶
func StartContext(ds applications.Datasource, ctx *context.Context) error
func Synchronize ¶
func Synchronize(ds applications.Datasource, prefix string) ([]string, error)
Types ¶
type StructureIngredient ¶
func GetIngredient ¶
func GetIngredient(ctx *base.Datasource, clave int, lang language.Tag) *StructureIngredient
func (*StructureIngredient) Clone ¶
func (sm *StructureIngredient) Clone() base.Structure
Clone the whole structure
func (*StructureIngredient) ComplementData ¶
func (sm *StructureIngredient) ComplementData(sitecontext applications.Datasource)
ComplementData adds all the needed data from other objects /duplicable in the thread since the object will be destroyed at the end
func (*StructureIngredient) GetData ¶
func (sm *StructureIngredient) GetData() *xdominion.XRecord
Returns the raw data
func (*StructureIngredient) IsAuthorized ¶
func (sm *StructureIngredient) IsAuthorized(sitecontext applications.Datasource, site string, language string, device string) bool
IsAuthorized returns true if the structure can be used on this site/language/device
type StructurePasillo ¶
func GetPasillo ¶
func GetPasillo(ctx *base.Datasource, clave int, lang language.Tag) *StructurePasillo
func (*StructurePasillo) Clone ¶
func (sm *StructurePasillo) Clone() base.Structure
Clone the whole structure
func (*StructurePasillo) ComplementData ¶
func (sm *StructurePasillo) ComplementData(sitecontext applications.Datasource)
ComplementData adds all the needed data from other objects /duplicable in the thread since the object will be destroyed at the end
func (*StructurePasillo) GetData ¶
func (sm *StructurePasillo) GetData() *xdominion.XRecord
Returns the raw data
func (*StructurePasillo) IsAuthorized ¶
func (sm *StructurePasillo) IsAuthorized(sitecontext applications.Datasource, site string, language string, device string) bool
IsAuthorized returns true if the structure can be used on this site/language/device