goplugin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOT   = "."
	COLON = ":"
	SLASH = "/"
)

Ops

View Source
const (
	PathRoot       = "/"
	PathInit       = "/init"
	PathRunService = "/run/:service"
)

Paths

View Source
const (
	INIT = "init"
	RUN  = "run"
)

Services

View Source
const (
	OK     = "ok"
	EMPTY  = ""
	CTJSON = "application/json;chartset=uft-8"
)
View Source
const (
	ParamService = "service"
)

Variables

This section is empty.

Functions

func DecodeList

func DecodeList(b []byte) []interface{}

func DecodeMap

func DecodeMap(b []byte) map[string]interface{}

func Encode

func Encode(v interface{}) []byte

func FolderName

func FolderName(skip int) string

func Func

func Func(skip int) (string, string, int)

func FuncName

func FuncName(skip int) string

func GetCall

func GetCall(call string) reflect.Value

func GetXCall

func GetXCall(call string) reflect.Value

func Home

func Home(context *gin.Context)

func Init

func Init(m map[string]interface{})

func InitService

func InitService(context *gin.Context)

func Process

func Process(name string, bs [][]byte) []byte

func Run

func Run(name string, b []byte) []byte

func RunService

func RunService(context *gin.Context)

func Serve

func Serve(port int, initFunc, runFunc interface{})

func SetCall

func SetCall(call string, value interface{})

Types

type Config

type Config struct {
	Project string   // 项目名称
	Calls   sync.Map // 函数映射
}

func GetConfig

func GetConfig() *Config

Jump to

Keyboard shortcuts

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