brokerv1

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_broker_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BrokerPublishConfig

type BrokerPublishConfig struct {

	// topic is the NATS subject to publish to.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// payload is the message body (string or JSON-encoded map).
	Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

BrokerPublishConfig is the typed config for step.broker_publish.

func (*BrokerPublishConfig) Descriptor deprecated

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

Deprecated: Use BrokerPublishConfig.ProtoReflect.Descriptor instead.

func (*BrokerPublishConfig) GetPayload

func (x *BrokerPublishConfig) GetPayload() string

func (*BrokerPublishConfig) GetTopic

func (x *BrokerPublishConfig) GetTopic() string

func (*BrokerPublishConfig) ProtoMessage

func (*BrokerPublishConfig) ProtoMessage()

func (*BrokerPublishConfig) ProtoReflect

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

func (*BrokerPublishConfig) Reset

func (x *BrokerPublishConfig) Reset()

func (*BrokerPublishConfig) String

func (x *BrokerPublishConfig) String() string

type BrokerPublishInput

type BrokerPublishInput struct {
	Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

BrokerPublishInput carries optional runtime overrides for step.broker_publish.

func (*BrokerPublishInput) Descriptor deprecated

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

Deprecated: Use BrokerPublishInput.ProtoReflect.Descriptor instead.

func (*BrokerPublishInput) GetData

func (x *BrokerPublishInput) GetData() *structpb.Struct

func (*BrokerPublishInput) ProtoMessage

func (*BrokerPublishInput) ProtoMessage()

func (*BrokerPublishInput) ProtoReflect

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

func (*BrokerPublishInput) Reset

func (x *BrokerPublishInput) Reset()

func (*BrokerPublishInput) String

func (x *BrokerPublishInput) String() string

type BrokerPublishOutput

type BrokerPublishOutput struct {

	// topic is the NATS subject the message was published to.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// bytes is the number of bytes published.
	Bytes int32 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
	// published is true when the message was successfully delivered to the broker.
	Published bool `protobuf:"varint,3,opt,name=published,proto3" json:"published,omitempty"`
	// contains filtered or unexported fields
}

BrokerPublishOutput is the result of step.broker_publish.

func (*BrokerPublishOutput) Descriptor deprecated

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

Deprecated: Use BrokerPublishOutput.ProtoReflect.Descriptor instead.

func (*BrokerPublishOutput) GetBytes

func (x *BrokerPublishOutput) GetBytes() int32

func (*BrokerPublishOutput) GetPublished

func (x *BrokerPublishOutput) GetPublished() bool

func (*BrokerPublishOutput) GetTopic

func (x *BrokerPublishOutput) GetTopic() string

func (*BrokerPublishOutput) ProtoMessage

func (*BrokerPublishOutput) ProtoMessage()

func (*BrokerPublishOutput) ProtoReflect

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

func (*BrokerPublishOutput) Reset

func (x *BrokerPublishOutput) Reset()

func (*BrokerPublishOutput) String

func (x *BrokerPublishOutput) String() string

type BrokerSubscribeConfig

type BrokerSubscribeConfig struct {

	// topic is the NATS subject filter (wildcards supported).
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// consumer_name is the durable consumer name for JetStream replay.
	ConsumerName string `protobuf:"bytes,2,opt,name=consumer_name,json=consumerName,proto3" json:"consumer_name,omitempty"`
	// contains filtered or unexported fields
}

BrokerSubscribeConfig is the typed config for step.broker_subscribe.

func (*BrokerSubscribeConfig) Descriptor deprecated

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

Deprecated: Use BrokerSubscribeConfig.ProtoReflect.Descriptor instead.

func (*BrokerSubscribeConfig) GetConsumerName

func (x *BrokerSubscribeConfig) GetConsumerName() string

func (*BrokerSubscribeConfig) GetTopic

func (x *BrokerSubscribeConfig) GetTopic() string

func (*BrokerSubscribeConfig) ProtoMessage

func (*BrokerSubscribeConfig) ProtoMessage()

func (*BrokerSubscribeConfig) ProtoReflect

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

func (*BrokerSubscribeConfig) Reset

func (x *BrokerSubscribeConfig) Reset()

func (*BrokerSubscribeConfig) String

func (x *BrokerSubscribeConfig) String() string

type BrokerSubscribeInput

type BrokerSubscribeInput struct {
	Data *structpb.Struct `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

BrokerSubscribeInput carries optional runtime overrides for step.broker_subscribe.

func (*BrokerSubscribeInput) Descriptor deprecated

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

Deprecated: Use BrokerSubscribeInput.ProtoReflect.Descriptor instead.

func (*BrokerSubscribeInput) GetData

func (x *BrokerSubscribeInput) GetData() *structpb.Struct

func (*BrokerSubscribeInput) ProtoMessage

func (*BrokerSubscribeInput) ProtoMessage()

func (*BrokerSubscribeInput) ProtoReflect

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

func (*BrokerSubscribeInput) Reset

func (x *BrokerSubscribeInput) Reset()

func (*BrokerSubscribeInput) String

func (x *BrokerSubscribeInput) String() string

type BrokerSubscribeOutput

type BrokerSubscribeOutput struct {

	// topic is the NATS subject the message was received from.
	Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"`
	// consumer is the durable consumer name used to fetch the message.
	Consumer string `protobuf:"bytes,2,opt,name=consumer,proto3" json:"consumer,omitempty"`
	// payload is the message body received from the broker.
	Payload *structpb.Struct `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

BrokerSubscribeOutput is the result of step.broker_subscribe.

func (*BrokerSubscribeOutput) Descriptor deprecated

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

Deprecated: Use BrokerSubscribeOutput.ProtoReflect.Descriptor instead.

func (*BrokerSubscribeOutput) GetConsumer

func (x *BrokerSubscribeOutput) GetConsumer() string

func (*BrokerSubscribeOutput) GetPayload

func (x *BrokerSubscribeOutput) GetPayload() *structpb.Struct

func (*BrokerSubscribeOutput) GetTopic

func (x *BrokerSubscribeOutput) GetTopic() string

func (*BrokerSubscribeOutput) ProtoMessage

func (*BrokerSubscribeOutput) ProtoMessage()

func (*BrokerSubscribeOutput) ProtoReflect

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

func (*BrokerSubscribeOutput) Reset

func (x *BrokerSubscribeOutput) Reset()

func (*BrokerSubscribeOutput) String

func (x *BrokerSubscribeOutput) String() string

type NATSModuleConfig

type NATSModuleConfig struct {

	// url is the NATS server URL (default: nats://localhost:4222).
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// stream is the JetStream stream name (default: GAME_EVENTS).
	Stream string `protobuf:"bytes,2,opt,name=stream,proto3" json:"stream,omitempty"`
	// contains filtered or unexported fields
}

NATSModuleConfig is the typed config for the broker.nats module. Fields mirror the internal NATSModule config keys.

func (*NATSModuleConfig) Descriptor deprecated

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

Deprecated: Use NATSModuleConfig.ProtoReflect.Descriptor instead.

func (*NATSModuleConfig) GetStream

func (x *NATSModuleConfig) GetStream() string

func (*NATSModuleConfig) GetUrl

func (x *NATSModuleConfig) GetUrl() string

func (*NATSModuleConfig) ProtoMessage

func (*NATSModuleConfig) ProtoMessage()

func (*NATSModuleConfig) ProtoReflect

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

func (*NATSModuleConfig) Reset

func (x *NATSModuleConfig) Reset()

func (*NATSModuleConfig) String

func (x *NATSModuleConfig) String() string

Jump to

Keyboard shortcuts

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