Documentation ¶
Overview ¶
Package echo is a generated protocol buffer package.
It is generated from these files:
echo.proto
It has these top-level messages:
Ping Pang EchoAction PingLog PangLog Query QueryResult
Index ¶
- Constants
- Variables
- type EchoAction
- func (*EchoAction) Descriptor() ([]byte, []int)
- func (m *EchoAction) GetPang() *Pang
- func (m *EchoAction) GetPing() *Ping
- func (m *EchoAction) GetTy() int32
- func (m *EchoAction) GetValue() isEchoAction_Value
- func (*EchoAction) ProtoMessage()
- func (m *EchoAction) Reset()
- func (m *EchoAction) String() string
- func (*EchoAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type EchoAction_Pang
- type EchoAction_Ping
- type Pang
- type PangLog
- type Ping
- type PingLog
- type Query
- type QueryResult
- type Tx
- type Type
Constants ¶
View Source
const ( ActionPing = iota ActionPang )
定义本执行器支持的Action种类
View Source
const ( TyLogPing = 100001 TyLogPang = 100002 )
定义本执行器生成的log类型
Variables ¶
View Source
var (
// EchoX 本执行器名称
EchoX = "echo"
)
Functions ¶
This section is empty.
Types ¶
type EchoAction ¶
type EchoAction struct { // Types that are valid to be assigned to Value: // *EchoAction_Ping // *EchoAction_Pang Value isEchoAction_Value `protobuf_oneof:"value"` Ty int32 `protobuf:"varint,3,opt,name=ty" json:"ty,omitempty"` }
本执行器的统一Action结构
func (*EchoAction) Descriptor ¶
func (*EchoAction) Descriptor() ([]byte, []int)
func (*EchoAction) GetPang ¶
func (m *EchoAction) GetPang() *Pang
func (*EchoAction) GetPing ¶
func (m *EchoAction) GetPing() *Ping
func (*EchoAction) GetTy ¶
func (m *EchoAction) GetTy() int32
func (*EchoAction) GetValue ¶
func (m *EchoAction) GetValue() isEchoAction_Value
func (*EchoAction) ProtoMessage ¶
func (*EchoAction) ProtoMessage()
func (*EchoAction) Reset ¶
func (m *EchoAction) Reset()
func (*EchoAction) String ¶
func (m *EchoAction) String() string
func (*EchoAction) XXX_OneofFuncs ¶
func (*EchoAction) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type EchoAction_Pang ¶
type EchoAction_Pang struct {
Pang *Pang `protobuf:"bytes,2,opt,name=pang,oneof"`
}
type EchoAction_Ping ¶
type EchoAction_Ping struct {
Ping *Ping `protobuf:"bytes,1,opt,name=ping,oneof"`
}
type Pang ¶
type Pang struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
pang操作action
func (*Pang) Descriptor ¶
func (*Pang) ProtoMessage ¶
func (*Pang) ProtoMessage()
type PangLog ¶
type PangLog struct { Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` }
pang操作生成的日志结构
func (*PangLog) Descriptor ¶
func (*PangLog) ProtoMessage ¶
func (*PangLog) ProtoMessage()
type Ping ¶
type Ping struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
ping操作action
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
type PingLog ¶
type PingLog struct { Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` Echo string `protobuf:"bytes,2,opt,name=echo" json:"echo,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count" json:"count,omitempty"` }
ping操作生成的日志结构
func (*PingLog) Descriptor ¶
func (*PingLog) ProtoMessage ¶
func (*PingLog) ProtoMessage()
type Query ¶
type Query struct {
Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"`
}
查询请求结构
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
type QueryResult ¶
type QueryResult struct { Msg string `protobuf:"bytes,1,opt,name=msg" json:"msg,omitempty"` Count int32 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"` }
查询结果结构
func (*QueryResult) Descriptor ¶
func (*QueryResult) Descriptor() ([]byte, []int)
func (*QueryResult) GetCount ¶
func (m *QueryResult) GetCount() int32
func (*QueryResult) GetMsg ¶
func (m *QueryResult) GetMsg() string
func (*QueryResult) ProtoMessage ¶
func (*QueryResult) ProtoMessage()
func (*QueryResult) Reset ¶
func (m *QueryResult) Reset()
func (*QueryResult) String ¶
func (m *QueryResult) String() string
type Type ¶
type Type struct {
types.ExecTypeBase
}
Type 定义本执行器类型
func (*Type) CreateTx ¶
func (e *Type) CreateTx(action string, message json.RawMessage) (*types.Transaction, error)
CreateTx 创建交易
func (*Type) GetTypeMap ¶
GetTypeMap 返回本执行器中的action字典,支持双向查找
Click to show internal directories.
Click to hide internal directories.