page

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Pages = map[string]*Page{}

Pages 已载入页面

Functions

func Load

func Load(cfg config.Config) error

Load 加载页面

func LoadBuildIn

func LoadBuildIn(dir string, prefix string) error

LoadBuildIn 从制品中读取

func LoadFrom

func LoadFrom(dir string, prefix string) error

LoadFrom 从特定目录加载

func ProcessData

func ProcessData(process *gou.Process) interface{}

ProcessData xiang.page.data 查询数据分析页面中定义的数据

func ProcessSetting

func ProcessSetting(process *gou.Process) interface{}

ProcessSetting xiang.page.setting 查询数据分析页面中定义的数据

Types

type Page

type Page struct {
	gou.Flow
	APIs    map[string]share.API    `json:"apis,omitempty"`
	Filters map[string]share.Filter `json:"filters,omitempty"`
	Page    share.Page              `json:"page,omitempty"`
}

Page 页面格式

func LoadPage

func LoadPage(source []byte, name string) (*Page, error)

LoadPage 载入页面

func Select

func Select(name string) *Page

Select 读取已加载页面

func (Page) GetData

func (page Page) GetData(params map[string]interface{}) interface{}

GetData 运行 flow 返回数值

func (*Page) SetupAPIs

func (page *Page) SetupAPIs()

SetupAPIs 设定API数据

Jump to

Keyboard shortcuts

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