testpb

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Cancel.ProtoReflect.Descriptor instead.

func (*Cancel) GetId

func (x *Cancel) GetId() string

func (*Cancel) ProtoMessage

func (*Cancel) ProtoMessage()

func (*Cancel) ProtoReflect

func (x *Cancel) ProtoReflect() protoreflect.Message

func (*Cancel) Reset

func (x *Cancel) Reset()

func (*Cancel) String

func (x *Cancel) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Command.ProtoReflect.Descriptor instead.

func (*Command) GetN added in v0.1.0

func (x *Command) GetN() int64

func (*Command) GetOp added in v0.1.0

func (x *Command) GetOp() Command_Op

func (*Command) GetReason added in v0.1.0

func (x *Command) GetReason() string

func (*Command) GetTarget added in v0.1.0

func (x *Command) GetTarget() int64

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

func (*Command) Reset added in v0.1.0

func (x *Command) Reset()

func (*Command) String added in v0.1.0

func (x *Command) String() string

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

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) Descriptor() ([]byte, []int)

Deprecated: Use Order.ProtoReflect.Descriptor instead.

func (*Order) GetCancel

func (x *Order) GetCancel() *Cancel

func (*Order) GetKind

func (x *Order) GetKind() isOrder_Kind

func (*Order) GetReserve

func (x *Order) GetReserve() *Reserve

func (*Order) ProtoMessage

func (*Order) ProtoMessage()

func (*Order) ProtoReflect

func (x *Order) ProtoReflect() protoreflect.Message

func (*Order) Reset

func (x *Order) Reset()

func (*Order) String

func (x *Order) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Ping.ProtoReflect.Descriptor instead.

func (*Ping) GetN

func (x *Ping) GetN() int64

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) ProtoReflect

func (x *Ping) ProtoReflect() protoreflect.Message

func (*Ping) Reset

func (x *Ping) Reset()

func (*Ping) String

func (x *Ping) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pong.ProtoReflect.Descriptor instead.

func (*Pong) GetN

func (x *Pong) GetN() int64

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) ProtoReflect

func (x *Pong) ProtoReflect() protoreflect.Message

func (*Pong) Reset

func (x *Pong) Reset()

func (*Pong) String

func (x *Pong) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reserve.ProtoReflect.Descriptor instead.

func (*Reserve) GetId

func (x *Reserve) GetId() string

func (*Reserve) ProtoMessage

func (*Reserve) ProtoMessage()

func (*Reserve) ProtoReflect

func (x *Reserve) ProtoReflect() protoreflect.Message

func (*Reserve) Reset

func (x *Reserve) Reset()

func (*Reserve) String

func (x *Reserve) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Reserved.ProtoReflect.Descriptor instead.

func (*Reserved) GetId

func (x *Reserved) GetId() string

func (*Reserved) ProtoMessage

func (*Reserved) ProtoMessage()

func (*Reserved) ProtoReflect

func (x *Reserved) ProtoReflect() protoreflect.Message

func (*Reserved) Reset

func (x *Reserved) Reset()

func (*Reserved) String

func (x *Reserved) String() string

Jump to

Keyboard shortcuts

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