Documentation ¶
Index ¶
- func GlobalOptions(opts *Options)
- func LuaNumberToFloat32(value interface{}) (float32, error)
- func LuaNumberToFloat64(value interface{}) (float64, error)
- func LuaNumberToInt(value interface{}) (int, error)
- func LuaNumberToInt32(value interface{}) (int32, error)
- func LuaNumberToInt64(value interface{}) (int64, error)
- func RegisterExternMethod(methodName string, method LuaExternFunc) error
- type Action
- func (a *Action) AddFunc(methodName string, method LuaExternFunc) *Action
- func (a *Action) AddParam(params ...interface{}) *Action
- func (a *Action) Execute(ctx context.Context) (interface{}, error)
- func (a *Action) WithEntrypoint(entrypoint string) *Action
- func (a *Action) WithScript(script string) *Action
- func (a *Action) WithScriptMD5(md5 string) *Action
- func (a *Action) WithScriptPath(scriptPath string) *Action
- type LuaExternFunc
- type Metric
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GlobalOptions ¶
func GlobalOptions(opts *Options)
func LuaNumberToFloat32 ¶
func LuaNumberToFloat64 ¶
func LuaNumberToInt ¶
func LuaNumberToInt32 ¶
func LuaNumberToInt64 ¶
func RegisterExternMethod ¶
func RegisterExternMethod(methodName string, method LuaExternFunc) error
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
func (*Action) WithEntrypoint ¶
func (*Action) WithScript ¶
func (*Action) WithScriptMD5 ¶
func (*Action) WithScriptPath ¶
type LuaExternFunc ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func NewOptions ¶
func NewOptions() *Options
func (*Options) SetPreloadScripeMethod ¶
func (*Options) WithMaxVMSize ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.