Documentation ¶
Overview ¶
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
- Variables
- func CreateStructureNutrientByData(sitecontext applications.Datasource, data xdominion.XRecordDef, ...) base.Structure
- func CreateStructureNutrientByKey(sitecontext applications.Datasource, key string, lang language.Tag) base.Structure
- func GetFoodNutrients(sitecontext *base.Datasource, key string) *xdominion.XRecords
- func GetNutrients(sitecontext *base.Datasource, lang language.Tag) []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 StructureNutrient
- func (sm *StructureNutrient) Clone() base.Structure
- func (sm *StructureNutrient) ComplementData(sitecontext applications.Datasource)
- func (sm *StructureNutrient) GetData() *xdominion.XRecord
- func (sm *StructureNutrient) IsAuthorized(sitecontext applications.Datasource, site string, language string, ...) bool
Constants ¶
View Source
const ( MODULEID = "usda" VERSION = "0.0.1" TRANSLATIONTHEME = "nutrient" )
Variables ¶
View Source
var ModuleUsda = assets.ModuleEntries{}
Functions ¶
func CreateStructureNutrientByData ¶
func CreateStructureNutrientByData(sitecontext applications.Datasource, data xdominion.XRecordDef, lang language.Tag) base.Structure
func CreateStructureNutrientByKey ¶
func CreateStructureNutrientByKey(sitecontext applications.Datasource, key string, lang language.Tag) base.Structure
func GetFoodNutrients ¶
func GetFoodNutrients(sitecontext *base.Datasource, key string) *xdominion.XRecords
func GetNutrients ¶
func GetNutrients(sitecontext *base.Datasource, lang language.Tag) []string
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 sitecontext::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 StructureNutrient ¶
func GetNutrient ¶
func GetNutrient(sitecontext *base.Datasource, key string, lang language.Tag) *StructureNutrient
func (*StructureNutrient) Clone ¶
func (sm *StructureNutrient) Clone() base.Structure
Clone the whole structure
func (*StructureNutrient) ComplementData ¶
func (sm *StructureNutrient) 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 (*StructureNutrient) GetData ¶
func (sm *StructureNutrient) GetData() *xdominion.XRecord
Returns the raw data
func (*StructureNutrient) IsAuthorized ¶
func (sm *StructureNutrient) 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.