Documentation ¶
Overview ¶
Package country contains the list of all countries in the world with some data 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
- Variables
- func CreateStructureCountryByData(sitecontext applications.Datasource, data xdominion.XRecordDef, ...) base.Structure
- func CreateStructureCountryByKey(sitecontext applications.Datasource, key string, lang language.Tag) base.Structure
- 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 StructureCountry
- func (sc *StructureCountry) Clone() base.Structure
- func (sc *StructureCountry) ComplementData(sitecontext applications.Datasource)
- func (sc *StructureCountry) GetData() *xdominion.XRecord
- func (sc *StructureCountry) IsAuthorized(sitecontext applications.Datasource, site string, language string, ...) bool
Constants ¶
const ( MODULEID = "country" VERSION = "0.0.1" TRANSLATIONTHEME = "country" )
Variables ¶
var ModuleCountry = assets.ModuleEntries{}
Functions ¶
func CreateStructureCountryByData ¶
func CreateStructureCountryByData(sitecontext applications.Datasource, data xdominion.XRecordDef, lang language.Tag) base.Structure
func CreateStructureCountryByKey ¶
func CreateStructureCountryByKey(sitecontext applications.Datasource, key string, 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 StructureCountry ¶
func GetCountry ¶
func GetCountry(ctx *base.Datasource, key string, lang language.Tag) *StructureCountry
GetCountry to get the data of a country from cache/db in the specified language
func (*StructureCountry) Clone ¶
func (sc *StructureCountry) Clone() base.Structure
Clone the whole structure
func (*StructureCountry) ComplementData ¶
func (sc *StructureCountry) 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 (*StructureCountry) GetData ¶
func (sc *StructureCountry) GetData() *xdominion.XRecord
Returns the raw data
func (*StructureCountry) IsAuthorized ¶
func (sc *StructureCountry) 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