controllers

package
v0.0.0-...-0737446 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeeReplace

func BeeReplace(in string, old string, new string) (out string)

BeeReplace as

func CrudArgs

func CrudArgs(in map[string]string) (out string)

CrudArgs as ?key=val&key=val

func CrudClassSqlite

func CrudClassSqlite(element dico.Element, appid string, record orm.Params, session types.Session) (out string)

CrudClassSqlite retourne le résulat de la requête avec macro

func CrudComputeArgs

func CrudComputeArgs(dataset map[string]string, appid string, record orm.Params, session types.Session, aliasDB string) map[string]string

CrudComputeArgs retourne le dataset valorisé

func CrudComputeDataset

func CrudComputeDataset(dataset map[string]string, appid string, record orm.Params, session types.Session, aliasDB string) map[string]string

CrudComputeDataset retourne le dataset valorisé

func CrudContains

func CrudContains(list string, in string) (out bool)

CrudContains as list : "item1,item2,..." in : "item2" ret : valeur à retourner si OK

func CrudDebug

func CrudDebug(msg string) (out string)

CrudDebug as

func CrudDecrement

func CrudDecrement(in int) int

CrudDecrement as

func CrudFormat

func CrudFormat(in string, v interface{}) (out string)

CrudFormat préféré à text/template/printf car les données fournies sont toujours des strings

func CrudIncrement

func CrudIncrement(in int) int

CrudIncrement as

func CrudIndex

func CrudIndex(record orm.Params, key string) (out string)

CrudIndex équivalent de index mais sans valeur nulle

func CrudIndexAnchor

func CrudIndexAnchor(record orm.Params, key string) (out string)

CrudIndexAnchor Calcul de l'ancre à partir de la clé

func CrudIndexSQL

func CrudIndexSQL(record orm.Params, key string, element dico.Element, session types.Session) (out string)

CrudIndexSQL équivalent de index mais avec ComputeSqlite en +

func CrudIsAnonymous

func CrudIsAnonymous(session types.Session) (out bool)

CrudIsAnonymous as

func CrudIsInGroup

func CrudIsInGroup(group string, session types.Session, appid string) (out bool)

CrudIsInGroup as

func CrudItem

func CrudItem(items []dico.Item, in string) (out string)

CrudItem as

func CrudMacro

func CrudMacro(in string, appid string, record orm.Params, session types.Session) (out string)

CrudMacro remplace les macros

func CrudMacroSQL

func CrudMacroSQL(in string, appid string, record orm.Params, session types.Session) (out string)

CrudMacroSQL retourne le résulat de la requête avec macro in: formule SQLite = select 'grey' where '{task_status}' = 'Terminée'

func CrudNumberToEnglish

func CrudNumberToEnglish(in int) string

CrudNumberToEnglish as

func CrudSQL

func CrudSQL(sql string, aliasDB string) (out string)

CrudSQL retourne le résulat de la requête

func CrudSplit

func CrudSplit(in string, separateur string) (out []string)

CrudSplit CrudSplit strings séparées par une virgule en slice

func CrudStyleSqlite

func CrudStyleSqlite(element dico.Element, appid string, record orm.Params, session types.Session) (out string)

CrudStyleSqlite retourne le résulat de la requête avec macro

func Dictionary

func Dictionary(values ...interface{}) (map[string]interface{}, error)

Dictionary creates a map[string]interface{} from the given parameters by walking the parameters and treating them as key-value pairs. The number of parameters must be even. The keys can be string slices, which will create the needed nested structure. Clone dict du projet https://github.com/gohugoio/hugo/blob/master/tpl/collections/collections.go

func IsAdmin

func IsAdmin(c beego.Controller) (out bool)

IsAdmin as

func IsInGroup

func IsInGroup(c beego.Controller, group string, appid string, id string) (out bool)

IsInGroup as

func IsOwner

func IsOwner(c beego.Controller, key string) (out bool)

IsOwner as

Types

type AboutController

type AboutController struct {
	// contains filtered or unexported fields
}

AboutController as

func (*AboutController) Get

func (c *AboutController) Get()

Get AboutController

func (*AboutController) Prepare

func (c *AboutController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudActionAjaxController

type CrudActionAjaxController struct {
	// contains filtered or unexported fields
}

CrudActionAjaxController as

func (*CrudActionAjaxController) Post

func (c *CrudActionAjaxController) Post()

Post CrudActionElementController

func (*CrudActionAjaxController) Prepare

func (c *CrudActionAjaxController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudActionElementController

type CrudActionElementController struct {
	// contains filtered or unexported fields
}

CrudActionElementController as

func (*CrudActionElementController) Post

func (c *CrudActionElementController) Post()

Post CrudActionElementController

func (*CrudActionElementController) Prepare

func (c *CrudActionElementController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudActionFormController

type CrudActionFormController struct {
	// contains filtered or unexported fields
}

CrudActionFormController as

func (*CrudActionFormController) Post

func (c *CrudActionFormController) Post()

Post CrudActionFormController

func (*CrudActionFormController) Prepare

func (c *CrudActionFormController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudActionPressController

type CrudActionPressController struct {
	// contains filtered or unexported fields
}

CrudActionPressController as

func (*CrudActionPressController) Post

func (c *CrudActionPressController) Post()

Post CrudActionPressController

func (*CrudActionPressController) Prepare

func (c *CrudActionPressController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudActionViewController

type CrudActionViewController struct {
	// contains filtered or unexported fields
}

CrudActionViewController as

func (*CrudActionViewController) Post

func (c *CrudActionViewController) Post()

Post CrudActionViewController

func (*CrudActionViewController) Prepare

func (c *CrudActionViewController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudAddController

type CrudAddController struct {
	// contains filtered or unexported fields
}

CrudAddController as

func (*CrudAddController) Get

func (c *CrudAddController) Get()

Get CrudAddController

func (*CrudAddController) Post

func (c *CrudAddController) Post()

Post CrudAddController

func (*CrudAddController) Prepare

func (c *CrudAddController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudAjaxSqlController

type CrudAjaxSqlController struct {
	// contains filtered or unexported fields
}

CrudActionAjaxController as

func (*CrudAjaxSqlController) Post

func (c *CrudAjaxSqlController) Post()

Post CrudAjaxSqlController

func (*CrudAjaxSqlController) Prepare

func (c *CrudAjaxSqlController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudDashboardController

type CrudDashboardController struct {
	// contains filtered or unexported fields
}

CrudViewController as

func (*CrudDashboardController) Get

func (c *CrudDashboardController) Get()

Get CrudViewController appel du formulaire formView

func (*CrudDashboardController) Prepare

func (c *CrudDashboardController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudDeleteController

type CrudDeleteController struct {
	// contains filtered or unexported fields
}

CrudDeleteController as

func (*CrudDeleteController) Post

func (c *CrudDeleteController) Post()

Post CrudDeleteController

func (*CrudDeleteController) Prepare

func (c *CrudDeleteController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudEditController

type CrudEditController struct {
	// contains filtered or unexported fields
}

CrudEditController as

func (*CrudEditController) Get

func (c *CrudEditController) Get()

Get CrudEditController

func (*CrudEditController) Post

func (c *CrudEditController) Post()

Post CrudEditController

func (*CrudEditController) Prepare

func (c *CrudEditController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudFilterController

type CrudFilterController struct {
	beego.Controller
}

RestController implements global settings for all other routers.

func (*CrudFilterController) Post

func (c *CrudFilterController) Post()

RestIsc IsConnected

func (*CrudFilterController) Prepare

func (c *CrudFilterController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudListController

type CrudListController struct {
	// contains filtered or unexported fields
}

CrudListController as

func (*CrudListController) CrudList

func (c *CrudListController) CrudList()

CrudList CrudListController

func (*CrudListController) Prepare

func (c *CrudListController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudPortailController

type CrudPortailController struct {
	// contains filtered or unexported fields
}

CrudPortailController as

func (*CrudPortailController) Get

func (c *CrudPortailController) Get()

Get CrudPortailController

func (*CrudPortailController) Prepare

func (c *CrudPortailController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudSearchController

type CrudSearchController struct {
	beego.Controller
}

RestController implements global settings for all other routers.

func (*CrudSearchController) Post

func (c *CrudSearchController) Post()

RestIsc IsConnected

func (*CrudSearchController) Prepare

func (c *CrudSearchController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudShareController

type CrudShareController struct {
	beego.Controller
}

CrudShareController implements global settings for all other routers.

func (*CrudShareController) CrudShareApp

func (c *CrudShareController) CrudShareApp()

CrudShareApp appel d'une application partagée par un anonyme

func (*CrudShareController) Prepare

func (c *CrudShareController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudSortController

type CrudSortController struct {
	beego.Controller
}

RestController implements global settings for all other routers.

func (*CrudSortController) Post

func (c *CrudSortController) Post()

RestIsc IsConnected

func (*CrudSortController) Prepare

func (c *CrudSortController) Prepare()

Prepare implements Prepare method for loggedRouter.

type CrudViewController

type CrudViewController struct {
	// contains filtered or unexported fields
}

CrudViewController as

func (*CrudViewController) Get

func (c *CrudViewController) Get()

Get CrudViewController appel du formulaire formView

func (*CrudViewController) Prepare

func (c *CrudViewController) Prepare()

Prepare implements Prepare method for loggedRouter.

type EddyController

type EddyController struct {
	// contains filtered or unexported fields
}

EddyController controleur de l'éditeur de fichier eddy

func (*EddyController) EddyDocument

func (c *EddyController) EddyDocument()

EddyDocument Visualiser Modifier un document

func (*EddyController) EddyLog

func (c *EddyController) EddyLog()

EddyLog Visualiser Modifier un document

func (*EddyController) Prepare

func (c *EddyController) Prepare()

Prepare implements Prepare method for loggedRouter.

type LoginController

type LoginController struct {
	beego.Controller
}

LoginController as

func (*LoginController) Get

func (c *LoginController) Get()

Get of LoginController

func (*LoginController) Post

func (c *LoginController) Post()

Post of LoginController

type LogoutController

type LogoutController struct {
	beego.Controller
}

LogoutController as

func (*LogoutController) Get

func (c *LogoutController) Get()

Get of LogoutController

type RestController

type RestController struct {
	beego.Controller
}

RestController implements global settings for all other routers.

func (*RestController) Prepare

func (c *RestController) Prepare()

Prepare implements Prepare method for loggedRouter.

func (*RestController) RestIsc

func (c *RestController) RestIsc()

RestIsc IsConnected

func (*RestController) RestRefreshDico

func (c *RestController) RestRefreshDico()

RestRefreshDico as

type UIView

type UIView struct {
	Title         string
	AppID         string
	TableID       string
	ViewID        string
	Table         dico.Table
	View          dico.View
	Elements      map[string]dico.Element
	Records       []orm.Params
	Qrecords      int
	Cols          map[int]string
	SortID        string
	SortDirection string
	Search        string            // valeur de la recherche
	Filters       map[string]string // valeur des filtres
	SearchStop    string
	Sum           map[string]float64
}

UIView Vue

type User

type User struct {
	Username string `orm:"pk;column(user_name);size(20)"`
	Password string `orm:"column(user_password);size(100)"`
	Email    string `orm:"column(user_email);size(100)"`
	IsAdmin  int    `orm:"column(user_is_admin)"`
	Groupes  string `orm:"column(user_groupes)"`
}

User as

func GetUser

func GetUser(username string) (User, error)

GetUser fournit le user

func (*User) TableName

func (u *User) TableName() string

TableName de la table User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL