testpb

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 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 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