go-admin: github.com/GoAdminGroup/go-admin/plugins/admin/modules/guard Index | Files

package guard

import "github.com/GoAdminGroup/go-admin/plugins/admin/modules/guard"

Index

Package Files

delete.go edit.go export.go guard.go menu_delete.go menu_edit.go menu_new.go new.go server_login.go update.go

type DeleteParam Uses

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

func GetDeleteParam Uses

func GetDeleteParam(ctx *context.Context) *DeleteParam

type EditFormParam Uses

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

func GetEditFormParam Uses

func GetEditFormParam(ctx *context.Context) *EditFormParam

func (EditFormParam) Value Uses

func (e EditFormParam) Value() form.Values

type ExportParam Uses

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

func GetExportParam Uses

func GetExportParam(ctx *context.Context) *ExportParam

type Guard Uses

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

func New Uses

func New(s service.List, c db.Connection, t table.GeneratorList, b *types.Buttons) *Guard

func (*Guard) CheckPrefix Uses

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

func (*Guard) Delete Uses

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

func (*Guard) EditForm Uses

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

func (*Guard) Export Uses

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

func (*Guard) MenuDelete Uses

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

func (*Guard) MenuEdit Uses

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

func (*Guard) MenuNew Uses

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

func (*Guard) NewForm Uses

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

func (*Guard) ServerLogin Uses

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

func (*Guard) ShowForm Uses

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

func (*Guard) ShowNewForm Uses

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

func (*Guard) Update Uses

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

func GetMenuDeleteParam Uses

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

func GetMenuEditParam Uses

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

func GetMenuNewParam Uses

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

type NewFormParam Uses

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

func GetNewFormParam Uses

func GetNewFormParam(ctx *context.Context) *NewFormParam

func (NewFormParam) Value Uses

func (e NewFormParam) Value() form.Values

type ServerLoginParam Uses

type ServerLoginParam struct {
    Account  string
    Password string
}

func GetServerLoginParam Uses

func GetServerLoginParam(ctx *context.Context) *ServerLoginParam

type ShowFormParam Uses

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

func GetShowFormParam Uses

func GetShowFormParam(ctx *context.Context) *ShowFormParam

type ShowNewFormParam Uses

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

func GetShowNewFormParam Uses

func GetShowNewFormParam(ctx *context.Context) *ShowNewFormParam

type UpdateParam Uses

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

func GetUpdateParam Uses

func GetUpdateParam(ctx *context.Context) *UpdateParam

Package guard imports 22 packages (graph) and is imported by 4 packages. Updated 2020-08-05. Refresh now. Tools for package owners.