BasePython

package
v5.1.46 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//OpenSub 是否启动订阅
	OpenSub = false
)

python处理对接模块 * 1. 本模块用于和python进行无缝对接 2. 方法分为同步和异步,同步会等待处理结果并反馈;异步会在处理完成后调用回调函数 3. 必须配合专用的py模块实现对接

Functions

func GetAndCheck

func GetAndCheck(id int64) (result string, err error)

GetAndCheck 检查并获取结果

func GetAndCheckByFrom

func GetAndCheckByFrom(system string, bindID int64, mark string) (resultFileSrc string, err error)

func Init

func Init()

func Push

func Push(system string, bindID int64, mark string, param []byte, fileSrc string, timeout int) (newID int64, err error)

Push 推送一个数据请求

func PushCall

func PushCall(system string, bindID int64, mark string, param []byte, timeout int, fileSrc string, handle func(resultFileSrc string)) (err error)

PushCall 回调形式处理数据请求

func PushSync

func PushSync(system string, bindID int64, mark string, param []byte, fileSrc string, timeout int) (resultFileSrc string, err error)

PushSync 推送一个同步的数据请求 timeout 超时时间,单位秒

Types

This section is empty.

Jump to

Keyboard shortcuts

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