plugin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FuncMap template.FuncMap = map[string]interface{}{
	"beegoli":      BeegoLi,
	"admincolumns": AdminColumns,
	"formcolumns":  FormColumns,
	"str2html":     str2html,
}
View Source
var (
	IsDebugLog bool
)

Functions

func AddFuncMap added in v0.0.3

func AddFuncMap(funcName string, funcs interface{})

func AdminColumns

func AdminColumns(data map[string]string) string

func BeegoLi

func BeegoLi(info []map[string]string) string

func DirectJson

func DirectJson(data ...string) (string, error)

func EditFormColumns

func EditFormColumns(data map[string]string, dbinfo map[string][]byte) string

根据查询到的结果映射为对应的form表单及数据

func FormColumns

func FormColumns(data map[string]string) string

[map[Tag:name:"ip" search:"false" Name: Id Vpn Name Ip Id_search:"true" Name_search:"false" Ip_name:"ip" Ip_search:"false" Struct:Vpn Type:string Id_name:"id" Vpn_name:"vpn" Vpn_search:"true" Name_name:"name"] map[Name_search:"true" Struct:Machine Type:time.Time Name: Id Sn Mac Ip Name Create Update Sn_name:"sn" Sn_search:"true" Mac_search:"true" Tag:xorm:"updated" Mac_xorm:"mac" Mac_name:"mac" Update_xorm:"updated" Ip_xorm:"ip" Name_name:"name" Create_xorm:"created" Id_name:"id" Id_search:"true" Sn_xorm:"sn" Ip_name:"ip" Ip_search:"true" Name_xorm:"name"] map[Type:string Name: Id Cdn_name Type Type_name:"type" Struct:Cdn Tag:name:"type" search:"false" Cdn_name_name:"cdn_name" Cdn_name_search:"true" Type_search:"false" Id_name:"id" Id_search:"true"]]

func GetRegisterByName

func GetRegisterByName(name string) map[string]string

func GetRegistered

func GetRegistered() []map[string]string

func GoutClient

func GoutClient(isSkipTls bool) *gout.Client

func NewCacheCli

func NewCacheCli() *cache.Cache

本地缓存Cli

func NewGin

func NewGin() *gin.Engine

func NewLogger

func NewLogger() slog.Logger

func NewOrm

func NewOrm() *xorm.Engine

func Register

func Register(data ...interface{}) error

func RigsterStruct

func RigsterStruct(data interface{}) map[string]string

http://code.lflxp.cn/life/services/src/master/util/db/xormTest.go 收集struct信息

Types

type Columns

type Columns struct {
	Field    string //state
	Title    string
	Checkbox bool
	Rowspan  int
	Colspan  int
	Align    string
	Valign   string
	Sortable bool
	// contains filtered or unexported fields
}

func MutilColumms

func MutilColumms(data ...string) []Columns

func NewColumns

func NewColumns(filed string, checkbox bool) *Columns

Jump to

Keyboard shortcuts

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