Documentation ¶
Index ¶
- Constants
- type AfterClickNotify
- type AfterCreate
- type AfterDelete
- type AfterRead
- type AfterUpdate
- type AlternativeValidateAdapter
- type AppInfo
- type BackendBootDataUser
- type BackendHandler
- type BackupHandlerAdapter
- type BeforeAction
- type BootPageData
- type BootResponse
- type ButtonForm
- type CipherAdapter
- type ClickedModuleEventAdapter
- type ContainerViewAdapter
- type CookieExpiration
- type CreateApi
- type CutData
- type CutResponse
- type DataBaseAdapter
- type DataConverter
- type DeleteApi
- type DevicePeripherals
- type DomAdapter
- type FetchAdapter
- type Field
- type FileApi
- type FileDiskRW
- type FormAdapter
- type FormNotify
- type FrontendBootDataUser
- type FrontendHandler
- type FrontendModuleHandlers
- type GamepadClientAdapter
- type Header
- type HtmlAdapter
- type Icon
- type Input
- type ItemViewAdapter
- type KeyEnterAdapter
- type KeyboardClientAdapter
- type KeyboardHandlerObject
- type Logger
- type MainHandler
- type MessageAdapter
- type Module
- func (m *Module) AddObjectsToModule(new_objects ...*Object)
- func (m *Module) GetActualObject() (o *Object, err string)
- func (m Module) GetObject(object_name string) (o *Object, err string)
- func (m Module) GetObjects() []*Object
- func (m Module) ModuleSupports(area string) bool
- func (m Module) ResetFrontendStateObjects()
- func (m *Module) SetActualObject(o *Object)
- type ModuleFrontend
- type NotifyBootData
- type NotifyFileDelete
- type Object
- func (o *Object) AddViewHandlerObject(viewHandlerObject any)
- func (o Object) CheckModuleHtml() (module_html any, err string)
- func (o Object) ClickMenuModule() (err string)
- func (o Object) ClickObjectElement(query_element string) (err string)
- func (o Object) ClickingID(id_param ...string) (err string)
- func (o Object) Columns() (columns []string)
- func (o Object) CountViewElements() (total int, err string)
- func (o Object) DataDecode(cut_data ...CutData) (decoded_data []map[string]string, err string)
- func (o Object) DataEncode(all_data ...map[string]string) (out []CutData, err string)
- func (o *Object) DeleteFormData()
- func (o Object) FieldExist(field_name string) (*Field, bool)
- func (o Object) FieldsToFormValidate() (fiels_out []Field)
- func (o Object) FilterRemoveFields(namesToRemove ...string) (fiels_out []Field)
- func (o Object) FormCheck() (err string)
- func (o Object) GetFieldsByNames(required_names ...string) (fiels_out []Field, err string)
- func (o Object) GetHtmlModuleContent(select_items ...string) (jsValue any, err string)
- func (o Object) GetID() (id, err string)
- func (o Object) GetTablesNames() (out []string)
- func (o Object) JoinFieldNames(add_prefix_table_name bool) (out string)
- func (o Object) MainName() string
- func (o Object) OnlyRequiredDbFieldsThisObject() (db_field []Field)
- func (o Object) PrimaryKeyName(options ...string) string
- func (o Object) RenderFields() (fiels_out []Field)
- func (o Object) RequiredFields() (fiels_out []Field)
- func (o *Object) ResetInputsViewForm(form_jsValue any) (err string)
- func (o Object) Response(data []map[string]string, options ...string) Response
- func (o *Object) SetActualObject()
- func (o Object) TestData(required_objects int, skip_id, wrong_data bool) (out []map[string]string, err string)
- func (o Object) ValidateData(its_new, its_update_or_delete bool, all_data ...map[string]string) (err string)
- type ObjectsHandlerAdapter
- type Package
- type Page
- type Permission
- type ReadApi
- type ReadData
- type Request
- type ResetFrontendObjectStateAdapter
- type ResetViewHandlerObjectAdapter
- type Response
- type Responses
- type SessionBackendAdapter
- type SessionFrontendAdapter
- type SessionHandlerAdapter
- type SourceData
- type Tag
- type TemplateModuleConfig
- type TestData
- type ThemeAdapter
- type TimeAdapter
- type TimeNow
- type TimeWeek
- type UI
- type UnixTimeHandler
- type UpdateApi
- type User
- type UserSessionNumber
- type Validate
- type ViewHandlerObject
Constants ¶
const INPUT_PATTERN = `input\.(\w+)\([^)]*\)`
const PREFIX_ID_NAME = "id_"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterClickNotify ¶ added in v0.0.120
type AfterClickNotify interface {
// data del objeto que fue cliqueado por el usuario
NotifyUserHasClickedObject()
}
type AfterCreate ¶ added in v0.0.46
type AfterDelete ¶ added in v0.0.46
type AfterUpdate ¶ added in v0.0.46
type AlternativeValidateAdapter ¶ added in v0.0.69
type AppInfo ¶ added in v0.0.67
type AppInfo struct { App_name string Business_name string Business_address string Business_phone string }
func (AppInfo) AppVersion ¶ added in v0.0.78
func (AppInfo) TinyGoVersion ¶ added in v0.0.78
type BackendBootDataUser ¶ added in v0.0.76
type BackendBootDataUser interface {
BackendLoadBootData(u *User) BootPageData
}
type BackendHandler ¶ added in v0.0.46
type BackendHandler struct { BootResponse CreateApi ReadApi UpdateApi DeleteApi }
type BackupHandlerAdapter ¶ added in v0.0.112
type BeforeAction ¶ added in v0.0.78
type BeforeAction interface {
ExecuteBeforeAction(h *MainHandler)
}
type BootPageData ¶ added in v0.0.74
type BootPageData struct {
JsonBootActions string
}
type BootResponse ¶ added in v0.0.45
type ButtonForm ¶ added in v0.0.109
type CipherAdapter ¶ added in v0.0.76
type ClickedModuleEventAdapter ¶ added in v0.0.107
type ClickedModuleEventAdapter interface {
ClickedModuleEvent()
}
type ContainerViewAdapter ¶ added in v0.0.70
type ContainerViewAdapter interface {
BuildContainerView(id, field_name string, allow_skip_completed bool) string
}
todo el contenido html por defecto del objeto
type CookieExpiration ¶ added in v0.0.78
default 2 minutes
type CutData ¶ added in v0.0.19
type CutData struct { // ej Modelo Objeto: usuario := Object{Name: "Usuario",Fields: []Field{ // {Name: "name"}, //0 // {Name: "email"},//1 // {Name: "phone"},//2 // },} // ej data normal con todos los campos: {"name":"John Doe","email":"johndoe@example.com","phone":"555"} // version recortada Data: {"John Doe","johndoe@example.com","555"} // Index Objeto al codificar = {"0:0","1:1","2:2"} // ej no mail: {"marcel", "777"} // Index al codificar = {"0:0","1:2"} Index map[int8]int8 `json:"i"` //Data ej en mapa: "Data":[{"id":"222","name":"manzana","valor":"1200"}] // ahora: "Data":["222","manzana","1200"] Data []string `json:"d"` }
type CutResponse ¶ added in v0.0.19
type CutResponse struct { //Action,Object,Module,Message //ej: ["create","user","ModuleUsers","ok"] CutOptions []string `json:"o,omitempty"` CutData []CutData `json:"d,omitempty"` }
func (*CutResponse) CutResponseDecode ¶ added in v0.0.21
func (cr *CutResponse) CutResponseDecode(data []map[string]string) (out Response)
type DataBaseAdapter ¶ added in v0.0.35
type DataBaseAdapter interface { RunDBOnClient() bool //verdadero corren en el cliente ej browser. por defecto falso corre en el servidor // items support in server db: []map[string]string, map[string]string CreateObjectsInDB(table_name string, on_server_too bool, items any) (err string) ReadDataDB(p struct { FROM_TABLE string //ej: "users,products" or: public.reservation, public.patient" SELECT string // "name, phone, address" default * WHERE []map[string]string //ej: "patient.id_patient=reservation.id_patient, (OR) reservation.id_staff = '2'" AND_CONDITION bool // OR default se agrega AND si es true ID string // unique search (usado en indexdb) ORDER_BY string // name,phone,address SORT_DESC bool //default ASC LIMIT int // 10, 5, 100. note: Postgres y MySQL: "LIMIT 10", SQLite: "LIMIT 10 OFFSET 0" OR "" no limit RETURN_ANY bool // default string return []map[string]string, any = []map[string]interface{} }, async_results func(r struct { String []map[string]string Any []map[string]any }, err string)) (sync_results []map[string]string, err string) UpdateObjectsInDB(table_name string, on_server_too bool, data ...map[string]string) (err string) DeleteObjectsInDB(table_name string, on_server_too bool, data ...map[string]string) (err string) CreateTablesInDB(objects []*Object, result func(err string)) ClearAllTableDataInDB(tables ...string) (err string) }
on_server_too ej si se esta en frontend se envía también al backend la solicitud async_results optional (nil) usado en indexdb
type DataConverter ¶ added in v0.0.68
type DataConverter interface { EncodeStruct(in any) (result []byte, err string) // &out is a pointer DecodeStruct(in []byte, out any) (err string) //map_in ej []map[string]string or map[string]string EncodeMaps(map_in any, object_name ...string) (out []byte, err string) DecodeMaps(in []byte, object_name ...string) (out []map[string]string, err string) EncodeResponses(requests ...Response) (out []byte, err string) DecodeResponses(data []byte) (out []Response, err string) }
si nombre del objeto no se ingresa se codifica a json de forma normal
type DevicePeripherals ¶ added in v0.0.107
type DevicePeripherals struct { KeyboardClientAdapter GamepadClientAdapter }
type DomAdapter ¶ added in v0.0.47
type DomAdapter interface { BuildFrontendUI() (err string) InnerHTML(querySelector, html_content string) (err string) InsertAfterBegin(querySelector, html_content string) (err string) InsertBeforeEnd(querySelector, html_content string) (err string) // querySelector ej: "a[name='xxx']" ElementClicking(querySelector string) (err string) ElementFocus(querySelector string) (err string) ElementsDelete(object_name string, on_server_too bool, objects_ids ...map[string]string) (err string) SelectContent(SelectDomOptions struct { QuerySelector string // ej: querySelector "meta[name='JsonBootTests']" GetContent string //ej: GetContent: "content" SetAfter bool // SetAfter ej: true = element.Set("content", "") StringReturn bool //return_as_string retornar como string de lo contrario sera un jsValue }) (jsValue any, err string) CallFunction(NameJsFunc string, Options struct { Params map[string]any // Objecto como parámetro ResultInt bool // resultado en formato int ResultString bool // resultado en string }) (result any, err string) }
type FetchAdapter ¶ added in v0.0.68
type FetchAdapter interface { //method ej: GET,POST // endpoint ej: http://localhost/upload // object ej: imagen // body_rq any ej: []map[string]string, map[string]string SendOneRequest(method, endpoint, object string, body_rq any, response func(result []map[string]string, err string)) // only POST method SendAllRequests(endpoint string, body_rq []Response, response func(result []Response, err string)) }
type Field ¶
type Field struct { // si el campo comienza com id_ se considera como único y perteneciente a una tabla específica ej: id_user su tabla es user // otros ej: id_usuario, apellido, address, city etc Name string Legend string //como se mostrara al usuario el campo en el encabezado ej: "name" por "Nombre Usuario" SourceTable string // tabla origen ej: patient,user,product NotRenderHtml bool // si no se necesita en formulario html *Input NotClearValueOnFormReset bool SkipCompletionAllowed bool //se permite que el campo no este completado. por defecto siempre sera requerido Unique bool //campo único e inalterable en db NotRequiredInDB bool // campo no requerido en base de datos al crear tabla Encrypted bool // si estará encriptado su almacenamiento o no }
func (Field) IsPrimaryKey ¶ added in v0.0.35
type FileApi ¶ added in v0.0.33
type FileApi interface { // FileAddUploadApi(h *MainHandler, source *Object, file_settings any) error //backend file_request ej: r *http.Request, w http.ResponseWriter //frontend file_request ej: blob file js.Value FileUpload(object_name, area_file string, file_request ...any) (out []map[string]string, err string) //params ej: id:123 FilePath(params map[string]string) (file_path, area string, err string) }
type FileDiskRW ¶ added in v0.0.68
type FormAdapter ¶ added in v0.0.66
type FormAdapter interface { // limpia los valores del formulario y campos en el map del objeto // nombre de objeto opcional de lo contrario se usara el actual FormClean(object_name ...string) (err string) //validate valida después de completar,auto_grow hacer crecer los campos según el contenido FormComplete(object_name string, data map[string]string, validate, auto_grow bool) (err string) // si no se envía el nombre el campo se realiza foco en el primer elemento FormInputFocus(object_name string, focus_field_name ...string) (err string) }
type FormNotify ¶ added in v0.0.107
type FormNotify interface { NotifyFormIsOK() NotifyFormERR(err string) }
type FrontendBootDataUser ¶ added in v0.0.76
type FrontendHandler ¶ added in v0.0.46
type FrontendHandler struct { AfterCreate AfterRead AfterUpdate AfterDelete AfterClickNotify NotifyBootData NotifyFileDelete ViewHandlerObject ResetFrontendObjectStateAdapter FormNotify }
type FrontendModuleHandlers ¶ added in v0.0.107
type FrontendModuleHandlers struct {
ClickedModuleEventAdapter
}
type GamepadClientAdapter ¶ added in v0.0.116
type GamepadClientAdapter interface {
GamepadRegister(notifyConnection, pressAnyButton, pressSpecificButtons any)
}
type HtmlAdapter ¶ added in v0.0.70
type Input ¶ added in v0.0.5
type Input struct { InputName string Tag ItemViewAdapter Validate ResetParameters *struct { ResetJsFuncName string // nombre la la función js a llamar para reset Enable bool //parámetro estado por defecto a enviar NotSendQueryObject bool //no envía querySelector Objeto por defecto siempre se envía Params map[string]any // parámetros adicionales } TestData }
type ItemViewAdapter ¶ added in v0.0.70
type KeyEnterAdapter ¶ added in v0.0.107
type KeyEnterAdapter interface {
KeyEnter()
}
type KeyboardClientAdapter ¶ added in v0.0.107
type KeyboardClientAdapter interface {
KeyboardClientDisable(disable bool)
}
type KeyboardHandlerObject ¶ added in v0.0.107
type KeyboardHandlerObject struct {
KeyEnterAdapter
}
type Logger ¶ added in v0.0.60
type Logger interface { // pare usar Log en una lines en funciones de tipo syscall/js se usa interface{} Log(message ...any) }
type MainHandler ¶ added in v0.0.103
type MainHandler struct { ProductionMode bool FrontendExecution bool FileRootFolder string // default "app_files" AppInfo SessionFrontendAdapter SessionBackendAdapter BackendBootDataUser FrontendBootDataUser ThemeAdapter DataBaseAdapter BackupHandlerAdapter TimeAdapter DomAdapter FormAdapter HtmlAdapter CipherAdapter DataConverter FetchAdapter FileApi FileDiskRW DevicePeripherals MessageAdapter Logger // contains filtered or unexported fields }
func (*MainHandler) AddModules ¶ added in v0.0.103
func (h *MainHandler) AddModules(new_modules ...*Module)
func (*MainHandler) GetAllObjects ¶ added in v0.0.106
func (h *MainHandler) GetAllObjects(only_type_db_table bool) []*Object
only_type_db_table de tipo tabla en base de datos ej: user,patient
func (MainHandler) GetModules ¶ added in v0.0.103
func (h MainHandler) GetModules() []*Module
func (MainHandler) GetObjectBY ¶ added in v0.0.112
func (h MainHandler) GetObjectBY(object_name, table_name string) (obj *Object, err string)
optional object_name or table_name ej: file.user,"" or "","user"
type MessageAdapter ¶ added in v0.0.69
type MessageAdapter interface {
UserMessage(message ...any)
}
type Module ¶
type Module struct { //nombre modulo ej: chat,patient,user ModuleName string //Titulo que vera el usuario ej: "Modulo Fotografía" Title string // id icono para utilizar en sprite svg ej: icon-info IconID string //interfaz usuario modulo UI // ej: keyboard,focus FrontendModuleHandlers //areas soportadas por el modulo ej: 'a','t','x' Areas map[string]string *MainHandler // contains filtered or unexported fields }
func (*Module) AddObjectsToModule ¶ added in v0.0.103
func (*Module) GetActualObject ¶ added in v0.0.115
obtener objeto en uso actualmente en el modulo
func (Module) GetObjects ¶ added in v0.0.105
func (Module) ModuleSupports ¶ added in v0.0.74
func (Module) ResetFrontendStateObjects ¶ added in v0.0.86
func (m Module) ResetFrontendStateObjects()
func (*Module) SetActualObject ¶ added in v0.0.115
type ModuleFrontend ¶ added in v0.0.124
type ModuleFrontend interface { }
type NotifyBootData ¶ added in v0.0.50
type NotifyBootData interface {
NotifyBootDataIsLoaded()
}
type NotifyFileDelete ¶ added in v0.0.123
type NotifyFileDelete interface {
NotifyFileDeletion()
}
type Object ¶
type Object struct { // ej: module.client, client.search_footer,user.datalist ObjectName string Table string //tabla origen db ej: users PrincipalFieldsName []string //campos mas representativos ej: name, address, phone NoAddObjectInDB bool Fields []Field //campos *Module // módulo origen BackHandler BackendHandler FrontHandler FrontendHandler KeyboardHandlerObject FormData map[string]string // data temporal formulario AlternativeValidateAdapter }
func (*Object) AddViewHandlerObject ¶ added in v0.0.121
func (Object) CheckModuleHtml ¶ added in v0.0.90
func (Object) ClickMenuModule ¶ added in v0.0.71
func (Object) ClickObjectElement ¶ added in v0.0.71
func (Object) ClickingID ¶ added in v0.0.70
si no se proporciona id_param se buscara en el formulario actual del objeto
func (Object) CountViewElements ¶ added in v0.0.90
func (Object) DataDecode ¶ added in v0.0.19
func (Object) DataEncode ¶ added in v0.0.19
DataEncode quita los nombres de los campos de la data según modelo del objeto
func (*Object) DeleteFormData ¶ added in v0.0.107
func (o *Object) DeleteFormData()
func (Object) FieldExist ¶ added in v0.0.16
func (Object) FieldsToFormValidate ¶ added in v0.0.66
func (Object) FilterRemoveFields ¶
func (Object) GetFieldsByNames ¶ added in v0.0.50
func (Object) GetHtmlModuleContent ¶ added in v0.0.107
select_items ej: div#user, `button[name="login"]`
func (Object) GetTablesNames ¶ added in v0.0.50
func (Object) JoinFieldNames ¶ added in v0.0.48
ej: id_patient,patient_name,patient_run - add_prefix_table_name: true = patient.id_patient,patient.patient_name,patient.patient_run
func (Object) OnlyRequiredDbFieldsThisObject ¶ added in v0.0.63
solo campos requeridos en la base de datos. NOTA: puntero []*Field no funciona con slice
func (Object) PrimaryKeyName ¶
ej: "id_client", options: "add_prefix_table_name" = "client.id_client"
func (Object) RenderFields ¶
func (Object) RequiredFields ¶
func (*Object) ResetInputsViewForm ¶ added in v0.0.107
resetear la vista de los inputs del formulario
func (Object) Response ¶ added in v0.0.35
options ej: update,delete,"mensaje a enviar" default action: create
func (*Object) SetActualObject ¶ added in v0.0.103
func (o *Object) SetActualObject()
actualizar objeto en uso actualmente en el modulo
type ObjectsHandlerAdapter ¶ added in v0.0.106
type Package ¶ added in v0.0.35
type Package struct { SkipMeInResponse bool `json:"-"` // saltarme al difundir Recipients []string `json:"-"` // lista de ip, token o ids según app para el reenvió al finalizar solicitud TargetArea bool `json:"-"` // si es falso el destino por defecto es publico de lo contrario sera para todos quines tengan la misma area del usuario solicitante Response }
type Page ¶ added in v0.0.33
type Page struct { StyleSheet string // url ej style.css AppName string AppVersion string SpriteIcons string Menu string UserName string UserArea string Message string Modules string Script string // ej main.js // JsonBootActions string //index ej <meta name="JsonBootActions" content="{{.JsonBootActions}}"> // JsonBootTests string BootPageData }
index.html ej: {{.StyleSheet}} {{.AppName}} {{.AppVersion}} {{.SpriteIcons}} {{.Menu}} {{.Message}} {{.UserName}} {{.UserArea}} {{.Modules}} {{.Script}} {{.Data}}
type Permission ¶
type ResetFrontendObjectStateAdapter ¶ added in v0.0.85
type ResetFrontendObjectStateAdapter interface {
ResetFrontendObjectState() (err string)
}
type ResetViewHandlerObjectAdapter ¶ added in v0.0.85
type ResetViewHandlerObjectAdapter interface {
ResetViewHandlerObject() (err string)
}
type Response ¶
type Response struct { Action string `json:"a,omitempty"` //acción a realizar con la solicitud: create, read, update, delete o error Object string `json:"o,omitempty"` //nombre de la tabla u objeto controlador hacia donde va la solicitud Message string `json:"g,omitempty"` //mensaje para el usuario de la solicitud Data []map[string]string `json:"d,omitempty"` //data entrada y respuesta json }
type Responses ¶ added in v0.0.72
type Responses struct { NoCut []Response `json:"n,omitempty"` // normal Cut []CutResponse `json:"c,omitempty"` //re cortada }
type SessionBackendAdapter ¶ added in v0.0.103
type SessionBackendAdapter interface { // params ej: r *http BackendCheckUser(r_http any) (u *User, err string) SessionHandlerAdapter }
type SessionFrontendAdapter ¶ added in v0.0.103
type SessionFrontendAdapter interface { FrontendCheckUser(result func(u *User, err string)) SessionHandlerAdapter }
type SessionHandlerAdapter ¶ added in v0.0.103
type SessionHandlerAdapter interface { SessionHandlerName() string UserSessionNumber }
type SourceData ¶ added in v0.0.44
type Tag ¶ added in v0.0.26
type Tag interface { HtmlName() string ContainerViewAdapter }
type TemplateModuleConfig ¶ added in v0.0.74
type TemplateModuleConfig struct { RenderAllSpaceCentered bool // ej para login Module *Module // ej: `<div class="target-module"> // <select name="select"> // <option value="value1">Value 1</option> // <option value="value2" selected>Value 2</option> // </select> // </div>` HeaderInputTarget string Form *Object FormButtons []*ButtonForm AsideList ContainerViewAdapter }
type ThemeAdapter ¶ added in v0.0.47
type ThemeAdapter interface { // MenuButtonTemplate ej: <li class="navbar-item"><a href="#` + module_name + `" tabindex="` + index + `" class="navbar-link" name="` + module_name + `"> // <svg aria-hidden="true" focusable="false" class="fa-primary"><use xlink:href="#` + icon_id + `" /></svg> // <span class="link-text">` + title + `</span></a></li> MenuButtonTemplate(module_name, index, icon_id, title string) string MenuClassName() string // ej: .menu-container MenuItemClass() string // ej: navbar-item RouterJSFuncName() string //ej:"menuRouter" ModuleClassName() string //ej: slider_panel MenuClassSelected() string //ej: hash-selected ModuleTemplate(*TemplateModuleConfig) string FunctionMessageName() string // ej: ShowMessageToUser // ej query: "div#"+o.ModuleName+" [data-id='"+o.ObjectName+"']" QuerySelectorMenuModule(module_name string) string QuerySelectorModule(module_name string) string QuerySelectorObject(module_name, object_name string) string QuerySelectorUserName() string QuerySelectorUserArea() string }
type TimeAdapter ¶ added in v0.0.47
type TimeAdapter interface { TimeNow TimeWeek UnixTimeHandler //esperar en milliseconds ej: 500, 2000 .. WaitFor(milliseconds int, callback func()) // new_date ej: 2003-11-22 o "" para volver al estado normal SetDate(new_date string) }
type TimeNow ¶ added in v0.0.52
type TimeNow interface { //ej true: "30-12-2001", default false: "2006-01-02" DateToDay(DateFormatStructPointer any) string //ej default: "2006-01-02", "15:04" WithSeconds true = 15:04:05 DateToDayHour(DateFormatStructPointer any) (date, hour string) }
DateFormatStructPointer ej type DateFormat struct { LeftDay bool //true ej: "30-12-2001", default false: "2006-01-02" WithSeconds bool //ej: 2006-01-02, 15:04, WithSeconds true = 15:04:05 }
type UnixTimeHandler ¶ added in v0.0.56
type UnixTimeHandler interface {
UnixNano() int64
}
ej: time.Now()
type User ¶
type User struct { Token string // token de sesión solicitante Id string // id usuario Ip string Name string Area string // valor de carácter ej: a,s,p... key "" sin area AreaName string // nombre del area AccessLevel string // aquí valor numérico 0 a 255 LastConnection string //time.Time R any //r *http.Request. W any //w http.ResponseWriter }
type UserSessionNumber ¶ added in v0.0.103
type ViewHandlerObject ¶ added in v0.0.115
type ViewHandlerObject interface { ViewHandlerName() string ContainerViewAdapter ItemViewAdapter ResetViewHandlerObjectAdapter NotifyStatusChangeAfterClicking() }
Source Files ¶
- adapter-action.go
- adapter-api.go
- adapter-app.go
- adapter-backup.go
- adapter-boot-data.go
- adapter-cipher.go
- adapter-data.go
- adapter-db.go
- adapter-dom.go
- adapter-file.go
- adapter-form.go
- adapter-html.go
- adapter-http.go
- adapter-logger.go
- adapter-message.go
- adapter-reset.go
- adapter-theme.go
- adapter-time.go
- adapter-ui.go
- device.go
- field.go
- handler-object.go
- handlers-modules.go
- handlers.go
- icon.go
- input.go
- module-handlers.go
- module-methods.go
- module.go
- object-cut-decode.go
- object-cut-encode.go
- object-form.go
- object-javascript.go
- object-keyboard.go
- object-message.go
- object-sql-string.go
- object-test-data.go
- object-validate.go
- object-view-handler.go
- object.go
- object_methods.go
- page.go
- permission.go
- request.go
- response.go
- session.go
- string.go