Files
contracts/gobridge.go
T

23 lines
508 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package contracts
type GoBridgeService interface {
Start() error
Shutdown() error
Restart() error
}
// GoBridge 继承 Controller,可通过 gobridge.WithHandlers 绑定到 Pool
// 所有公开方法自动暴露给 Python 通过 call_go() 调用。
type GoBridge interface {
_gobridge_handler()
Controller
}
// GoBridgeBase 嵌入到用户 struct 以实现 GoBridge 接口
type GoBridgeBase struct {
Controller
}
// _gobridge_handler 签名函数
func (bb *GoBridgeBase) _gobridge_handler() {}