core

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCInfo

type RPCInfo struct {
	Cid      string   `msgpack:"cid" json:"cid"`                               // 调用ID
	Fn       string   `msgpack:"fn" json:"fn"`                                 // 函数名
	ReplyTo  string   `msgpack:"reply_to,omitempty" json:"reply_to,omitempty"` // 回复地址
	Track    string   `msgpack:"track,omitempty" json:"track,omitempty"`       // 跟踪信息
	Expired  int64    `msgpack:"expired" json:"expired"`                       // 过期时间
	Reply    bool     `msgpack:"reply" json:"reply"`                           // 是否需要回复
	ArgsType []string `msgpack:"args_type" json:"args_type"`                   // 参数类型列表
	Args     [][]byte `msgpack:"args" json:"args"`                             // 参数数据
	Caller   string   `msgpack:"caller,omitempty" json:"caller,omitempty"`     // 调用者
	Hostname string   `msgpack:"hostname,omitempty" json:"hostname,omitempty"` // 主机名
}

type ResultInfo

type ResultInfo struct {
	Cid        string `msgpack:"cid" json:"cid"`                                     // 调用ID
	Error      string `msgpack:"error,omitempty" json:"error,omitempty"`             // 错误信息
	ResultType string `msgpack:"result_type,omitempty" json:"result_type,omitempty"` // 结果类型
	Result     []byte `msgpack:"result,omitempty" json:"result,omitempty"`           // 结果数据
}

Jump to

Keyboard shortcuts

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