guard

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteParam

type DeleteParam struct {
	Panel  table.Table
	Id     string
	Prefix string
}

func GetDeleteParam

func GetDeleteParam(ctx *context.Context) *DeleteParam

type EditFormParam

type EditFormParam struct {
	Panel        table.Table
	Id           string
	Prefix       string
	Param        parameter.Parameters
	Path         string
	MultiForm    *multipart.Form
	PreviousPath string
	Alert        template2.HTML
	FromList     bool
}

func GetEditFormParam

func GetEditFormParam(ctx *context.Context) *EditFormParam

func (EditFormParam) HasAlert

func (e EditFormParam) HasAlert() bool

func (EditFormParam) IsManage

func (e EditFormParam) IsManage() bool

func (EditFormParam) IsRole

func (e EditFormParam) IsRole() bool

func (EditFormParam) Value

func (e EditFormParam) Value() form.Values

type ExportParam

type ExportParam struct {
	Panel  table.Table
	Id     []string
	Prefix string
	IsAll  bool
}

func GetExportParam

func GetExportParam(ctx *context.Context) *ExportParam

type Guard

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

func New

func (*Guard) CheckPrefix

func (g *Guard) CheckPrefix(ctx *context.Context)

func (*Guard) Delete

func (g *Guard) Delete(ctx *context.Context)

func (*Guard) EditForm

func (g *Guard) EditForm(ctx *context.Context)

func (*Guard) Export

func (g *Guard) Export(ctx *context.Context)

func (*Guard) MenuDelete

func (g *Guard) MenuDelete(ctx *context.Context)

func (*Guard) MenuEdit

func (g *Guard) MenuEdit(ctx *context.Context)

func (*Guard) MenuNew

func (g *Guard) MenuNew(ctx *context.Context)

func (*Guard) NewForm

func (g *Guard) NewForm(ctx *context.Context)

func (*Guard) ShowForm

func (g *Guard) ShowForm(ctx *context.Context)

func (*Guard) ShowNewForm

func (g *Guard) ShowNewForm(ctx *context.Context)

func (*Guard) Update

func (g *Guard) Update(ctx *context.Context)
type MenuDeleteParam struct {
	Id string
}

func GetMenuDeleteParam

func GetMenuDeleteParam(ctx *context.Context) *MenuDeleteParam
type MenuEditParam struct {
	Id       string
	Title    string
	Header   string
	ParentId int64
	Icon     string
	Uri      string
	Roles    []string
	Alert    template.HTML
}

func GetMenuEditParam

func GetMenuEditParam(ctx *context.Context) *MenuEditParam
func (e MenuEditParam) HasAlert() bool
type MenuNewParam struct {
	Title    string
	Header   string
	ParentId int64
	Icon     string
	Uri      string
	Roles    []string
	Alert    template.HTML
}

func GetMenuNewParam

func GetMenuNewParam(ctx *context.Context) *MenuNewParam
func (e MenuNewParam) HasAlert() bool

type NewFormParam

type NewFormParam struct {
	Panel        table.Table
	Id           string
	Prefix       string
	Param        parameter.Parameters
	Path         string
	MultiForm    *multipart.Form
	PreviousPath string
	FromList     bool
	Alert        template.HTML
}

func GetNewFormParam

func GetNewFormParam(ctx *context.Context) *NewFormParam

func (NewFormParam) HasAlert

func (e NewFormParam) HasAlert() bool

func (NewFormParam) IsManage

func (e NewFormParam) IsManage() bool

func (NewFormParam) IsRole

func (e NewFormParam) IsRole() bool

func (NewFormParam) Value

func (e NewFormParam) Value() form.Values

type ShowFormParam

type ShowFormParam struct {
	Panel  table.Table
	Id     string
	Prefix string
	Param  parameter.Parameters
}

func GetShowFormParam

func GetShowFormParam(ctx *context.Context) *ShowFormParam

type ShowNewFormParam

type ShowNewFormParam struct {
	Panel  table.Table
	Prefix string
	Param  parameter.Parameters
}

func GetShowNewFormParam

func GetShowNewFormParam(ctx *context.Context) *ShowNewFormParam

type UpdateParam

type UpdateParam struct {
	Panel  table.Table
	Prefix string
	Value  form.Values
}

func GetUpdateParam

func GetUpdateParam(ctx *context.Context) *UpdateParam

Jump to

Keyboard shortcuts

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