models

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_models_orders_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type IncomingMessage

type IncomingMessage struct{}

IncomingMessage is an empty payload used when the body is irrelevant.

type JSONIncoming

type JSONIncoming struct {
	ID int `json:"id"`
}

JSONIncoming represents a minimal JSON payload used across tests.

type JSONOutgoing

type JSONOutgoing struct {
	ID        int       `json:"id"`
	Processed time.Time `json:"processed"`
}

JSONOutgoing captures the fields emitted by handlers in tests.

type OrderCreated

type OrderCreated struct {
	OrderId  string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Customer string `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderCreated) Descriptor deprecated

func (*OrderCreated) Descriptor() ([]byte, []int)

Deprecated: Use OrderCreated.ProtoReflect.Descriptor instead.

func (*OrderCreated) GetCustomer

func (x *OrderCreated) GetCustomer() string

func (*OrderCreated) GetOrderId

func (x *OrderCreated) GetOrderId() string

func (*OrderCreated) ProtoMessage

func (*OrderCreated) ProtoMessage()

func (*OrderCreated) ProtoReflect

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

func (*OrderCreated) Reset

func (x *OrderCreated) Reset()

func (*OrderCreated) String

func (x *OrderCreated) String() string

type OrderProcessed

type OrderProcessed struct {
	OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	Status  string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderProcessed) Descriptor deprecated

func (*OrderProcessed) Descriptor() ([]byte, []int)

Deprecated: Use OrderProcessed.ProtoReflect.Descriptor instead.

func (*OrderProcessed) GetOrderId

func (x *OrderProcessed) GetOrderId() string

func (*OrderProcessed) GetStatus

func (x *OrderProcessed) GetStatus() string

func (*OrderProcessed) ProtoMessage

func (*OrderProcessed) ProtoMessage()

func (*OrderProcessed) ProtoReflect

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

func (*OrderProcessed) Reset

func (x *OrderProcessed) Reset()

func (*OrderProcessed) String

func (x *OrderProcessed) String() string

type OutgoingMessage

type OutgoingMessage struct{}

OutgoingMessage is an empty payload emitted when only metadata matters.

Jump to

Keyboard shortcuts

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