Documentation
¶
Index ¶
- Variables
- type Cancel
- type Command
- func (*Command) Descriptor() ([]byte, []int)deprecated
- func (x *Command) GetN() int64
- func (x *Command) GetOp() Command_Op
- func (x *Command) GetReason() string
- func (x *Command) GetTarget() int64
- func (*Command) ProtoMessage()
- func (x *Command) ProtoReflect() protoreflect.Message
- func (x *Command) Reset()
- func (x *Command) String() string
- type Command_Op
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetCancel() *Cancel
- func (x *Order) GetKind() isOrder_Kind
- func (x *Order) GetReserve() *Reserve
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type Order_Cancel
- type Order_Reserve
- type Ping
- type Pong
- type Reserve
- type Reserved
Constants ¶
This section is empty.
Variables ¶
var ( Command_Op_name = map[int32]string{ 0: "OP_UNSPECIFIED", 1: "OP_SEND", 2: "OP_CALL", 3: "OP_MONITOR", 4: "OP_LINK", 5: "OP_EXIT", } Command_Op_value = map[string]int32{ "OP_UNSPECIFIED": 0, "OP_SEND": 1, "OP_CALL": 2, "OP_MONITOR": 3, "OP_LINK": 4, "OP_EXIT": 5, } )
Enum value maps for Command_Op.
var File_testpb_test_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Cancel ¶
type Cancel struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Cancel) Descriptor
deprecated
func (*Cancel) ProtoMessage ¶
func (*Cancel) ProtoMessage()
func (*Cancel) ProtoReflect ¶
func (x *Cancel) ProtoReflect() protoreflect.Message
type Command ¶ added in v0.1.0
type Command struct {
Op Command_Op `protobuf:"varint,1,opt,name=op,proto3,enum=grpcproc.test.v1.Command_Op" json:"op,omitempty"`
// The target: a process of the scenario, by its index.
Target int64 `protobuf:"varint,2,opt,name=target,proto3" json:"target,omitempty"`
N int64 `protobuf:"varint,3,opt,name=n,proto3" json:"n,omitempty"`
Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
// contains filtered or unexported fields
}
Command tells a process of FuzzScenario what to do next. The process does it on its own goroutine, so that everything it sends is sent by it, in order with the rest of what it does, its exit included.
func (*Command) Descriptor
deprecated
added in
v0.1.0
func (*Command) GetOp ¶ added in v0.1.0
func (x *Command) GetOp() Command_Op
func (*Command) ProtoMessage ¶ added in v0.1.0
func (*Command) ProtoMessage()
func (*Command) ProtoReflect ¶ added in v0.1.0
func (x *Command) ProtoReflect() protoreflect.Message
type Command_Op ¶ added in v0.1.0
type Command_Op int32
const ( Command_OP_UNSPECIFIED Command_Op = 0 // Send Ping{n} to the target. Command_OP_SEND Command_Op = 1 // Call the target with Ping{n}, which answers Pong{n+1}. Command_OP_CALL Command_Op = 2 // Monitor the target. Command_OP_MONITOR Command_Op = 3 // Link to the target. Command_OP_LINK Command_Op = 4 // End, with reason. Command_OP_EXIT Command_Op = 5 )
func (Command_Op) Descriptor ¶ added in v0.1.0
func (Command_Op) Descriptor() protoreflect.EnumDescriptor
func (Command_Op) Enum ¶ added in v0.1.0
func (x Command_Op) Enum() *Command_Op
func (Command_Op) EnumDescriptor
deprecated
added in
v0.1.0
func (Command_Op) EnumDescriptor() ([]byte, []int)
Deprecated: Use Command_Op.Descriptor instead.
func (Command_Op) Number ¶ added in v0.1.0
func (x Command_Op) Number() protoreflect.EnumNumber
func (Command_Op) String ¶ added in v0.1.0
func (x Command_Op) String() string
func (Command_Op) Type ¶ added in v0.1.0
func (Command_Op) Type() protoreflect.EnumType
type Order ¶
type Order struct {
// Types that are valid to be assigned to Kind:
//
// *Order_Reserve
// *Order_Cancel
Kind isOrder_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
Order is a one-contract-per-process message: a typed process accepts *testpb.Order and switches on Kind.
func (*Order) Descriptor
deprecated
func (*Order) GetReserve ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type Order_Cancel ¶
type Order_Cancel struct {
Cancel *Cancel `protobuf:"bytes,2,opt,name=cancel,proto3,oneof"`
}
type Order_Reserve ¶
type Order_Reserve struct {
Reserve *Reserve `protobuf:"bytes,1,opt,name=reserve,proto3,oneof"`
}
type Ping ¶
type Ping struct {
N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
// contains filtered or unexported fields
}
func (*Ping) Descriptor
deprecated
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) ProtoReflect ¶
func (x *Ping) ProtoReflect() protoreflect.Message
type Pong ¶
type Pong struct {
N int64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"`
// contains filtered or unexported fields
}
func (*Pong) Descriptor
deprecated
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) ProtoReflect ¶
func (x *Pong) ProtoReflect() protoreflect.Message
type Reserve ¶
type Reserve struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Reserve) Descriptor
deprecated
func (*Reserve) ProtoMessage ¶
func (*Reserve) ProtoMessage()
func (*Reserve) ProtoReflect ¶
func (x *Reserve) ProtoReflect() protoreflect.Message
type Reserved ¶
type Reserved struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*Reserved) Descriptor
deprecated
func (*Reserved) ProtoMessage ¶
func (*Reserved) ProtoMessage()
func (*Reserved) ProtoReflect ¶
func (x *Reserved) ProtoReflect() protoreflect.Message