guard

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx *context.Context)

func EditForm

func EditForm(ctx *context.Context)

func Export added in v0.0.11

func Export(ctx *context.Context)
func MenuDelete(ctx *context.Context)
func MenuEdit(ctx *context.Context)
func MenuNew(ctx *context.Context)

func NewForm

func NewForm(ctx *context.Context)

func ShowForm

func ShowForm(ctx *context.Context)

func ShowNewForm

func ShowNewForm(ctx *context.Context)

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
	Previous     string
	Path         string
	MultiForm    *multipart.Form
	PreviousPath string
	Alert        template2.HTML
}

func GetEditFormParam

func GetEditFormParam(ctx *context.Context) *EditFormParam

func (EditFormParam) GetDeleteUrl

func (e EditFormParam) GetDeleteUrl() string

func (EditFormParam) GetEditUrl

func (e EditFormParam) GetEditUrl() string

func (EditFormParam) GetExportUrl added in v0.3.0

func (e EditFormParam) GetExportUrl() string

func (*EditFormParam) GetInfoUrl

func (e *EditFormParam) GetInfoUrl() string

func (EditFormParam) GetNewUrl

func (e EditFormParam) GetNewUrl() string

func (*EditFormParam) GetUrl

func (e *EditFormParam) GetUrl() string

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 added in v0.0.11

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

func GetExportParam added in v0.0.11

func GetExportParam(ctx *context.Context) *ExportParam
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
	Previous     string
	Path         string
	MultiForm    *multipart.Form
	PreviousPath string
	Alert        template.HTML
}

func GetNewFormParam

func GetNewFormParam(ctx *context.Context) *NewFormParam

func (NewFormParam) GetDeleteUrl

func (e NewFormParam) GetDeleteUrl() string

func (NewFormParam) GetEditUrl

func (e NewFormParam) GetEditUrl() string

func (NewFormParam) GetExportUrl added in v0.3.0

func (e NewFormParam) GetExportUrl() string

func (*NewFormParam) GetInfoUrl

func (e *NewFormParam) GetInfoUrl() string

func (NewFormParam) GetNewUrl

func (e NewFormParam) GetNewUrl() string

func (*NewFormParam) GetUrl

func (e *NewFormParam) GetUrl() string

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

func (*ShowFormParam) GetInfoUrl

func (e *ShowFormParam) GetInfoUrl() string

func (*ShowFormParam) GetUrl

func (e *ShowFormParam) GetUrl() string

type ShowNewFormParam

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

func GetShowNewFormParam

func GetShowNewFormParam(ctx *context.Context) *ShowNewFormParam

func (*ShowNewFormParam) GetInfoUrl

func (e *ShowNewFormParam) GetInfoUrl() string

func (*ShowNewFormParam) GetUrl

func (e *ShowNewFormParam) GetUrl() string

Jump to

Keyboard shortcuts

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